From: Avi Kivity <avi@redhat.com>
To: Mohammed Gamal <m.gamal005@gmail.com>
Cc: kvm@vger.kernel.org
Subject: Re: [PATCH non-atomic-injection] KVM: Initialize rip for real mode interrupt injection
Date: Wed, 18 Aug 2010 17:46:44 +0300 [thread overview]
Message-ID: <4C6BF254.1030104@redhat.com> (raw)
In-Reply-To: <AANLkTi=Ne-wVgC7gO1VQ14gzCm5NUg48iJ_mGpP7RuLM@mail.gmail.com>
On 08/18/2010 05:32 PM, Mohammed Gamal wrote:
> On Wed, Aug 18, 2010 at 5:11 PM, Avi Kivity<avi@redhat.com> wrote:
>> On 08/18/2010 05:09 PM, Avi Kivity wrote:
>>> On 08/18/2010 03:46 PM, Mohammed Gamal wrote:
>>>> On Wed, Aug 18, 2010 at 10:36 AM, Avi Kivity<avi@redhat.com> wrote:
>>>>> Signed-off-by: Avi Kivity<avi@redhat.com>
>>>>> ---
>>>>> arch/x86/kvm/x86.c | 1 +
>>>>> 1 files changed, 1 insertions(+), 0 deletions(-)
>>>>>
>>>>> diff --git a/arch/x86/kvm/x86.c b/arch/x86/kvm/x86.c
>>>>> index f6a31a1..e2b0e36 100644
>>>>> --- a/arch/x86/kvm/x86.c
>>>>> +++ b/arch/x86/kvm/x86.c
>>>>> @@ -3967,6 +3967,7 @@ int kvm_inject_realmode_interrupt(struct kvm_vcpu
>>>>> *vcpu, int irq)
>>>>>
>>>>> vcpu->arch.emulate_ctxt.decode.op_bytes = 2;
>>>>> vcpu->arch.emulate_ctxt.decode.ad_bytes = 2;
>>>>> + vcpu->arch.emulate_ctxt.decode.eip = kvm_rip_read(vcpu);
>>>> I think it'd make more sense to make
>>>> vcpu->arch.emulate_ctxt.decode.eip = vcpu->arch.emulate_ctxt.eip, as
>>>> we already initlialize the emulation context eip. It's not going to
>>>> make any real difference, but it's more readable this way I suppose,
>>>> and is symmetric to the assignment of the emulation context eip value
>>>> after the call to emulate_int_real()
>>> Right, patch updated.
>>>
>> btw, with the other fixes in non-atomic-injection the bios is able to boot
>> up to the "no bootable device" message.
> Did u try running it with any actual guests?
I did, the disk is not recognized, so something's still broken.
--
I have a truly marvellous patch that fixes the bug which this
signature is too narrow to contain.
next prev parent reply other threads:[~2010-08-18 14:46 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-08-18 7:36 [PATCH non-atomic-injection] KVM: Initialize rip for real mode interrupt injection Avi Kivity
2010-08-18 8:14 ` Avi Kivity
2010-08-18 12:46 ` Mohammed Gamal
2010-08-18 14:09 ` Avi Kivity
2010-08-18 14:11 ` Avi Kivity
2010-08-18 14:32 ` Mohammed Gamal
2010-08-18 14:46 ` Avi Kivity [this message]
2010-08-18 15:32 ` Mohammed Gamal
2010-08-18 15:45 ` Avi Kivity
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=4C6BF254.1030104@redhat.com \
--to=avi@redhat.com \
--cc=kvm@vger.kernel.org \
--cc=m.gamal005@gmail.com \
/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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.