From: Andrew Cooper <andrew.cooper3@citrix.com>
To: Jan Beulich <JBeulich@suse.com>
Cc: xen-devel <xen-devel@lists.xenproject.org>,
Eddie Dong <eddie.dong@intel.com>,
Jun Nakajima <jun.nakajima@intel.com>
Subject: Re: [PATCH 1/2] VMX: also use proper instruction mnemonic for VMREAD
Date: Mon, 16 Sep 2013 13:49:27 +0100 [thread overview]
Message-ID: <5236FE57.9000001@citrix.com> (raw)
In-Reply-To: <523716E702000078000F3A24@nat28.tlf.novell.com>
On 16/09/2013 13:34, Jan Beulich wrote:
>>>> On 16.09.13 at 13:53, Andrew Cooper <andrew.cooper3@citrix.com> wrote:
>> On 16/09/2013 12:06, Jan Beulich wrote:
>>> case x86_seg_ldtr:
>>> - reg->sel = __vmread(GUEST_LDTR_SELECTOR);
>>> - reg->limit = __vmread(GUEST_LDTR_LIMIT);
>>> - reg->base = __vmread(GUEST_LDTR_BASE);
>>> - attr = __vmread(GUEST_LDTR_AR_BYTES);
>>> + __vmread(GUEST_LDTR_SELECTOR, &sel);
>>> + __vmread(GUEST_LDTR_LIMIT, &limit);
>>> + __vmread(GUEST_LDTR_BASE, ®->base);
>>> + __vmread(GUEST_LDTR_AR_BYTES, &attr);
>>> break;
>>> default:
>>> BUG();
>>> + return;
>> This return is dead code.
> But the compiler doesn't know, and hence whines about possibly
> uninitialized variables if you leave this out.
>
> Jan
>
Ah ok, in which case it should be kept.
~Andrew
next prev parent reply other threads:[~2013-09-16 12:49 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-09-16 11:04 [PATCH 0/2] VMX: further code generation improvements Jan Beulich
2013-09-16 11:06 ` [PATCH 1/2] VMX: also use proper instruction mnemonic for VMREAD Jan Beulich
2013-09-16 11:53 ` Andrew Cooper
2013-09-16 12:34 ` Jan Beulich
2013-09-16 12:49 ` Andrew Cooper [this message]
2013-09-16 14:38 ` Nakajima, Jun
2013-09-16 14:43 ` Jan Beulich
2013-09-18 12:52 ` Jan Beulich
2013-09-23 7:58 ` Ping: " Jan Beulich
2013-09-23 15:17 ` Nakajima, Jun
2013-09-16 11:07 ` [PATCH 2/2] VMX: drop memory clobbers from vmread/vmwrite wrappers Jan Beulich
2013-09-16 11:54 ` Andrew Cooper
2013-09-16 14:15 ` Nakajima, Jun
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=5236FE57.9000001@citrix.com \
--to=andrew.cooper3@citrix.com \
--cc=JBeulich@suse.com \
--cc=eddie.dong@intel.com \
--cc=jun.nakajima@intel.com \
--cc=xen-devel@lists.xenproject.org \
/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.