public inbox for kvm@vger.kernel.org
 help / color / mirror / Atom feed
From: Avi Kivity <avi@qumranet.com>
To: kvm-devel@lists.sourceforge.net
Cc: linux-kernel@vger.kernel.org, akpm@osdl.org, mingo@elte.hu
Subject: [PATCH 1/5] KVM: Make the GET_SREGS and SET_SREGS ioctls symmetric
Date: Mon, 11 Dec 2006 10:15:13 -0000	[thread overview]
Message-ID: <20061211101513.C38EC2500CF@il.qumranet.com> (raw)
In-Reply-To: <457D2F6B.8070809@qumranet.com>

This makes the SET_SREGS ioctl behave symmetrically to the GET_SREGS
ioctl wrt the segment access rights flag.

From: Uri Lublin <uril@qumranet.com>

Signed-off-by: Uri Lublin <uril@qumranet.com>
Signed-off-by: Avi Kivity <avi@qumranet.com>

Index: linux-2.6/drivers/kvm/vmx.c
===================================================================
--- linux-2.6.orig/drivers/kvm/vmx.c
+++ linux-2.6/drivers/kvm/vmx.c
@@ -884,6 +884,8 @@ static void vmx_set_segment(struct kvm_v
 		ar |= (var->db & 1) << 14;
 		ar |= (var->g & 1) << 15;
 	}
+	if (ar == 0) /* a 0 value means unusable */
+		ar = AR_UNUSABLE_MASK;
 	vmcs_write32(sf->ar_bytes, ar);
 }
 

  reply	other threads:[~2006-12-11 10:15 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-12-11 10:14 KVM: Miscellaneous updates Avi Kivity
2006-12-11 10:15 ` Avi Kivity [this message]
2006-12-11 10:16 ` [PATCH 2/5] KVM: Move find_vmx_entry() to vmx.c Avi Kivity
2006-12-11 10:17 ` [PATCH 3/5] KVM: Remove extranous put_cpu() from vcpu_put() Avi Kivity
2006-12-11 10:18 ` [PATCH 4/5] KVM: MMU: Ignore pcd, pwt, and pat bits on ptes Avi Kivity
2006-12-11 10:19 ` [PATCH 5/5] KVM: Add MAINTAINERS entry 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=20061211101513.C38EC2500CF@il.qumranet.com \
    --to=avi@qumranet.com \
    --cc=akpm@osdl.org \
    --cc=kvm-devel@lists.sourceforge.net \
    --cc=linux-kernel@vger.kernel.org \
    --cc=mingo@elte.hu \
    /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