From: Sean Christopherson <sean.j.christopherson@intel.com>
To: Jan Beulich <JBeulich@suse.com>
Cc: Paolo Bonzini <pbonzini@redhat.com>,
Radim Krm <rkrcmar@redhat.com>, KVM <kvm@vger.kernel.org>
Subject: Re: [PATCH] x86/kvm/VMX: drop bad asm() clobber from nested_vmx_check_vmentry_hw()
Date: Thu, 30 May 2019 11:30:58 -0700 [thread overview]
Message-ID: <20190530183058.GC23930@linux.intel.com> (raw)
In-Reply-To: <5CEBA3B80200007800232856@prv1-mh.provo.novell.com>
On Mon, May 27, 2019 at 02:45:44AM -0600, Jan Beulich wrote:
> While upstream gcc doesn't detect conflicts on cc (yet), it really
> should, and hence "cc" should not be specified for asm()-s also having
> "=@cc<cond>" outputs. (It is quite pointless anyway to specify a "cc"
> clobber in x86 inline assembly, since the compiler assumes it to be
> always clobbered, and has no means [yet] to suppress this behavior.)
>
> Signed-off-by: Jan Beulich <jbeulich@suse.com>
FWIW (mostly to satisfy my curiosity):
Fixes: bbc0b8239257 ("KVM: nVMX: Capture VM-Fail via CC_{SET,OUT} in nested early checks")
Reviewed-by: Sean Christopherson <sean.j.christopherson@intel.com>
>
> --- a/arch/x86/kvm/vmx/nested.c
> +++ b/arch/x86/kvm/vmx/nested.c
> @@ -2781,7 +2781,7 @@ static int nested_vmx_check_vmentry_hw(s
> [launched]"i"(offsetof(struct loaded_vmcs, launched)),
> [host_state_rsp]"i"(offsetof(struct loaded_vmcs, host_state.rsp)),
> [wordsize]"i"(sizeof(ulong))
> - : "cc", "memory"
> + : "memory"
> );
>
> if (vmx->msr_autoload.host.nr)
>
>
next prev parent reply other threads:[~2019-05-30 18:31 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-05-27 8:45 [PATCH] x86/kvm/VMX: drop bad asm() clobber from nested_vmx_check_vmentry_hw() Jan Beulich
2019-05-30 18:30 ` Sean Christopherson [this message]
2019-06-04 17:20 ` Paolo Bonzini
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=20190530183058.GC23930@linux.intel.com \
--to=sean.j.christopherson@intel.com \
--cc=JBeulich@suse.com \
--cc=kvm@vger.kernel.org \
--cc=pbonzini@redhat.com \
--cc=rkrcmar@redhat.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.