mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Paolo Bonzini <pbonzini@redhat.com>
To: Jim Mattson <jmattson@google.com>
Cc: LKML <linux-kernel@vger.kernel.org>,
	kvm list <kvm@vger.kernel.org>,
	Wanpeng Li <wanpeng.li@hotmail.com>
Subject: Re: [RFC/RFT PATCH] KVM: nVMX: fixes to nested virt interrupt injection
Date: Wed, 26 Jul 2017 16:48:04 +0200	[thread overview]
Message-ID: <fee0d25d-1194-00ef-abc1-66b5ec8b8017@redhat.com> (raw)
In-Reply-To: <CALMp9eT4Ubm07om72vJhjWT5K7f1-D1oionGLB6uxcQ3XmPTUQ@mail.gmail.com>

On 25/07/2017 23:08, Jim Mattson wrote:
> 
>     +
>     +       if (vcpu->arch.exception.has_error_code) {
>     +               vmcs_write32(VM_EXIT_INTR_ERROR_CODE,
>     vcpu->arch.exception.error_code);
> 
>  
> Should this be vmcs12->vm_exit_intr_error_code
> = vcpu->arch.exception.error_code?

No, this writes to the vmcs02 and prepare_vmcs12 copies it to the vmcs12.

Paolo

  parent reply	other threads:[~2017-07-26 14:48 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-07-24 14:20 Paolo Bonzini
2017-07-24 14:44 ` Wanpeng Li
2017-07-24 14:44   ` Paolo Bonzini
2017-07-24 14:46     ` Wanpeng Li
     [not found] ` <CALMp9eT4Ubm07om72vJhjWT5K7f1-D1oionGLB6uxcQ3XmPTUQ@mail.gmail.com>
2017-07-26 14:48   ` Paolo Bonzini [this message]
     [not found]     ` <CALMp9eTm9bsgZhFTKAA0BDFPiFiAyMoF6HRYqhJB8aRWkKQsKQ@mail.gmail.com>
2017-07-26 15:23       ` Paolo Bonzini
2017-07-27  2:45 ` Wanpeng Li

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=fee0d25d-1194-00ef-abc1-66b5ec8b8017@redhat.com \
    --to=pbonzini@redhat.com \
    --cc=jmattson@google.com \
    --cc=kvm@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=wanpeng.li@hotmail.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®