RE: [PATCH] KVM: change PT_FIRST_AVAIL_BITS_SHIFT to avoid conflict with EPT Dirty bit

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi, Avi

Do you have comments for this patch?

Thanks,
-Xudong

> -----Original Message-----
> From: Hao, Xudong
> Sent: Thursday, June 07, 2012 6:26 PM
> To: avi@xxxxxxxxxx
> Cc: kvm@xxxxxxxxxxxxxxx; Hao, Xudong; Zhang, Xiantao
> Subject: [PATCH] KVM: change PT_FIRST_AVAIL_BITS_SHIFT to avoid conflict
> with EPT Dirty bit
> 
> EPT Dirty bit use bit 9 as Intel SDM definition, to avoid conflict, change
> PT_FIRST_AVAIL_BITS_SHIFT to 10.
> 
> Signed-off-by: Xudong Hao <xudong.hao@xxxxxxxxx>
> Signed-off-by: Xiantao Zhang <xiantao.zhang@xxxxxxxxx>
> 
> ---
>  arch/x86/kvm/mmu.c |    2 +-
>  1 files changed, 1 insertions(+), 1 deletions(-)
> 
> diff --git a/arch/x86/kvm/mmu.c b/arch/x86/kvm/mmu.c
> index 24dd43d..f5b996a 100644
> --- a/arch/x86/kvm/mmu.c
> +++ b/arch/x86/kvm/mmu.c
> @@ -90,7 +90,7 @@ module_param(dbg, bool, 0644);
> 
>  #define PTE_PREFETCH_NUM		8
> 
> -#define PT_FIRST_AVAIL_BITS_SHIFT 9
> +#define PT_FIRST_AVAIL_BITS_SHIFT 10
>  #define PT64_SECOND_AVAIL_BITS_SHIFT 52
> 
>  #define PT64_LEVEL_BITS 9
> --
> 1.5.5

--
To unsubscribe from this list: send the line "unsubscribe kvm" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [KVM ARM]     [KVM ia64]     [KVM ppc]     [Virtualization Tools]     [Spice Development]     [Libvirt]     [Libvirt Users]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite Questions]     [Linux Kernel]     [Linux SCSI]     [XFree86]
  Powered by Linux