From: Zhao Jin <cronozhj@gmail.com>
To: avi@redhat.com, mtosatti@redhat.com
Cc: linux-kernel@vger.kernel.org, kvm@vger.kernel.org
Subject: [PATCH] KVM: VMX: fix incorrect operand
Date: Mon, 24 Oct 2011 15:21:20 +0800 [thread overview]
Message-ID: <1319440880-2610-3-git-send-email-cronozhj@gmail.com> (raw)
In-Reply-To: <1319440880-2610-1-git-send-email-cronozhj@gmail.com>
Should test save->ar for access rights.
Signed-off-by: Zhao Jin <cronozhj@gmail.com>
---
arch/x86/kvm/vmx.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/arch/x86/kvm/vmx.c b/arch/x86/kvm/vmx.c
index e65a158..62086da 100644
--- a/arch/x86/kvm/vmx.c
+++ b/arch/x86/kvm/vmx.c
@@ -2544,7 +2544,7 @@ static void fix_pmode_dataseg(int seg, struct kvm_save_segment *save)
{
struct kvm_vmx_segment_field *sf = &kvm_vmx_segment_fields[seg];
- if (vmcs_readl(sf->base) == save->base && (save->base & AR_S_MASK)) {
+ if (vmcs_readl(sf->base) == save->base && (save->ar & AR_S_MASK)) {
vmcs_write16(sf->selector, save->selector);
vmcs_writel(sf->base, save->base);
vmcs_write32(sf->limit, save->limit);
--
1.7.5.4
next prev parent reply other threads:[~2011-10-24 7:22 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-10-24 7:21 [PATCH] KVM: MMU: initialize sptes early Zhao Jin
2011-10-24 7:21 ` [PATCH] KVM: MMU: fix the condition of syncing a new shadow page Zhao Jin
2011-10-24 7:46 ` Xiao Guangrong
2011-10-24 9:04 ` Zhao Jin
2011-10-24 7:21 ` Zhao Jin [this message]
2011-10-24 7:41 ` [PATCH] KVM: MMU: initialize sptes early Xiao Guangrong
2011-10-24 9:01 ` Zhao Jin
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=1319440880-2610-3-git-send-email-cronozhj@gmail.com \
--to=cronozhj@gmail.com \
--cc=avi@redhat.com \
--cc=kvm@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=mtosatti@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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
Powered by JetHome