login
Login
/
Register
Search
Search this site:
Forums
News
Blogs
Features
Site
Home
»
Mailing list archives
»
linux-kernel
»
2010
»
March
»
23
Re: [PATCH v3] KVM MMU: check reserved bits only if CR4.PSE=1 or CR4.PAE=1
view
thread
Previous message: [
thread
] [
date
] [
author
]
Next message: [
thread
] [
date
] [
author
]
[view in full thread]
From: Marcelo Tosatti
Subject:
Re: [PATCH v3] KVM MMU: check reserved bits only if CR4.PSE=1 or CR4.PAE=1
Date: Tuesday, March 23, 2010 - 8:32 am
On Fri, Mar 19, 2010 at 05:58:53PM +0800, Xiao Guangrong wrote:
quoted text
> - Check reserved bits only if CR4.PAE=1 or CR4.PSE=1 when guest #PF occurs > - Fix a typo in reset_rsvds_bits_mask() > > Signed-off-by: Xiao Guangrong <xiaoguangrong@cn.fujitsu.com>
Reviewed-by: Marcelo Tosatti <mtosatti@redhat.com>
quoted text
> --- > arch/x86/kvm/mmu.c | 12 +++++++++--- > 1 files changed, 9 insertions(+), 3 deletions(-) > > diff --git a/arch/x86/kvm/mmu.c b/arch/x86/kvm/mmu.c > index b137515..d6c1f03 100644 > --- a/arch/x86/kvm/mmu.c > +++ b/arch/x86/kvm/mmu.c > @@ -2293,13 +2293,19 @@ static void reset_rsvds_bits_mask(struct kvm_vcpu *vcpu, int level) > /* no rsvd bits for 2 level 4K page table entries */ > context->rsvd_bits_mask[0][1] = 0; > context->rsvd_bits_mask[0][0] = 0; > + context->rsvd_bits_mask[1][0] = context->rsvd_bits_mask[0][0]; > + > + if (!is_pse(vcpu)) { > + context->rsvd_bits_mask[1][1] = 0; > + break; > + } > + > if (is_cpuid_PSE36()) > /* 36bits PSE 4MB page */ > context->rsvd_bits_mask[1][1] = rsvd_bits(17, 21); > else > /* 32 bits PSE 4MB page */ > context->rsvd_bits_mask[1][1] = rsvd_bits(13, 21); > - context->rsvd_bits_mask[1][0] = context->rsvd_bits_mask[1][0]; > break; > case PT32E_ROOT_LEVEL: > context->rsvd_bits_mask[0][2] = > @@ -2312,7 +2318,7 @@ static void reset_rsvds_bits_mask(struct kvm_vcpu *vcpu, int level) > context->rsvd_bits_mask[1][1] = exb_bit_rsvd | > rsvd_bits(maxphyaddr, 62) | > rsvd_bits(13, 20); /* large page */ > - context->rsvd_bits_mask[1][0] = context->rsvd_bits_mask[1][0]; > + context->rsvd_bits_mask[1][0] = context->rsvd_bits_mask[0][0]; > break; > case PT64_ROOT_LEVEL: > context->rsvd_bits_mask[0][3] = exb_bit_rsvd | > @@ -2330,7 +2336,7 @@ static void reset_rsvds_bits_mask(struct kvm_vcpu *vcpu, int level) > context->rsvd_bits_mask[1][1] = exb_bit_rsvd | > rsvd_bits(maxphyaddr, 51) | > rsvd_bits(13, 20); /* large page */ > - context->rsvd_bits_mask[1][0] = context->rsvd_bits_mask[1][0]; > + context->rsvd_bits_mask[1][0] = context->rsvd_bits_mask[0][0]; > break; > } > } > -- > 1.6.6.1
--
unsubscribe notice
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to
majordomo@vger.kernel.org
More majordomo info at
http://vger.kernel.org/majordomo-info.html
Please read the FAQ at
http://www.tux.org/lkml/
Previous message: [
thread
] [
date
] [
author
]
Next message: [
thread
] [
date
] [
author
]
Messages in current thread:
[PATCH v3] KVM MMU: check reserved bits only if CR4.PSE= ...
, Xiao Guangrong
, (Fri Mar 19, 2:58 am)
Re: [PATCH v3] KVM MMU: check reserved bits only if CR4. ...
, Marcelo Tosatti
, (Tue Mar 23, 8:32 am)
Re: [PATCH v3] KVM MMU: check reserved bits only if CR4. ...
, Avi Kivity
, (Wed Mar 24, 2:25 am)
Navigation
Create content
Mailing list archives
Recent posts
Popular discussions
linux-kernel
:
Alan Cox
Re: Please add ZFS support (from GPL sources)
Rafael J. Wysocki
[Bug #11287] Regression in 2.6.27-rc2 in acpi_processor_init()
Ingo Molnar
Re: [PATCH] x86: silence section mismatch warning - uv_cpu_init
Ingo Molnar
Re: [GIT PULL] time.c - respin
Lennart Poettering
Re: [PATCH] exit: PR_SET_ANCHOR for marking processes as reapers for child proce...
git
:
Mark Junker
git on MacOSX and files with decomposed utf-8 file names
Junio C Hamano
Re: git-svnimport
Junio C Hamano
Re: [PATCH] Detached HEAD (experimental)
Johannes Schindelin
Re: [PATCH] Fix approxidate("never") to always return 0
Johannes Schindelin
Re: [WIP PATCH] Add 'git fast-export', the sister of 'git fast-import'
linux-netdev
:
Arnaldo Carvalho de Melo
Re: [PATCH 06/37] dccp: Limit feature negotiation to connection setup phase
Gerrit Renker
[PATCH 1/5] dccp: Initialisation framework for feature negotiation
Daniel Lezcano
getsockopt(TCP_DEFER_ACCEPT) value change
David Miller
Re: 2.6.27.18: bnx2/tg3: BUG: "scheduling while atomic" trying to ifenslave a seco...
Gerrit Renker
[PATCH 37/37] dccp: Debugging functions for feature negotiation
openbsd-misc
:
Christophe Rioux
Implementation example of snmp
Nick Holland
Re: booting openbsd on eee without cd-rom
Cabillot Julien
Re: OpenBSD isakmpd and pf vs Cisco PIX or ASA
Stephen J. Bevan
GRE over IPsec
Guido Tschakert
Re: what exactly is enc0?
git-commits-head
:
Linux Kernel Mailing List
ath9k_htc: Allocate URBs properly
Linux Kernel Mailing List
[ARM] 4691/1: add missing i2c_board_info struct for at91rm9200
Linux Kernel Mailing List
powerpc/kexec: Add support for FSL-BookE
Linux Kernel Mailing List
V4L/DVB (8976): af9015: Add USB ID for AVerMedia A309
Linux Kernel Mailing List
ARM: 5670/1: bcmring: add default configuration for bcmring arch
Colocation donated by:
Syndicate