From: Paolo Bonzini <pbonzini@redhat.com>
To: Alexander Boettcher <alexander.boettcher@genode-labs.com>
Cc: rth@twiddle.net, qemu-devel@nongnu.org, ehabkost@redhat.com
Subject: Re: [Qemu-devel] [PATCH] x86 tlb_fill in memory_helper.c
Date: Thu, 16 Feb 2017 14:45:21 +0100 [thread overview]
Message-ID: <fabdeb07-513b-7cb5-5364-62729f5b9a5a@redhat.com> (raw)
In-Reply-To: <d5d84caf-3669-7be7-29ac-85d3e3ea8621@genode-labs.com>
On 16/02/2017 14:27, Alexander Boettcher wrote:
> On 16.02.2017 13:57, Paolo Bonzini wrote:
>>
>>
>> On 16/02/2017 13:57, Alexander Boettcher wrote:
>>> Hello Paolo,
>>>
>>> On 16.02.2017 12:53, Paolo Bonzini wrote:
>>>> As you noticed, the problem is that now cpu_vmexit is called without a
>>>> cpu_restore_state before.
>>>>
>>>> The right fix is to pass the retaddr to cpu_vmexit (via
>>>> cpu_svm_check_intercept_param); something like this untested patch:
>>>
>>> ...
>>>
>>>>
>>>> If it works for you we can include it.
>>>
>>> thank you for the quick patch. It works like a charm.
>>>
>>> Do you take care of adding the patch, please ? (I can of course also do.)
>>
>> Great, I will look at it. Have you debugged the exact failure mode to
>> include something in the commit message?
>
> I'm not familiar with the SVM model, but what I did was to
>
> compare mainly the output of the svm exceptions on Qemu 2.4.1 and
> 2.5.0++ as reported by the Nova hypervisor runing in Qemu.
>
> There one gets mysterious SVM exception 0x4e (PF), where
>
> virtaddr = cr2 = VMCB::exitinfo2
>
> cr2 is around the 0 address - where actually is nothing in the guest VM.
>
> Later on one gets a SVM exception of 0x7f, and then your VM is gone.
>
> Hope it helps to make up a useful commit message,
Not really, but thanks for trying! :) I'll just write down what I said
in my first message to you.
Paolo
prev parent reply other threads:[~2017-02-16 13:45 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-02-16 10:57 [Qemu-devel] [PATCH] x86 tlb_fill in memory_helper.c Alexander Boettcher
2017-02-16 11:53 ` Paolo Bonzini
2017-02-16 12:57 ` Alexander Boettcher
2017-02-16 12:57 ` Paolo Bonzini
2017-02-16 13:27 ` Alexander Boettcher
2017-02-16 13:45 ` Paolo Bonzini [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=fabdeb07-513b-7cb5-5364-62729f5b9a5a@redhat.com \
--to=pbonzini@redhat.com \
--cc=alexander.boettcher@genode-labs.com \
--cc=ehabkost@redhat.com \
--cc=qemu-devel@nongnu.org \
--cc=rth@twiddle.net \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).