* [PATCH] KVM: do not de-cache cr4 bits needlessly
@ 2012-10-15 7:49 Gleb Natapov
2012-10-18 12:49 ` Avi Kivity
0 siblings, 1 reply; 2+ messages in thread
From: Gleb Natapov @ 2012-10-15 7:49 UTC (permalink / raw)
To: kvm; +Cc: avi, mtosatti
Signed-off-by: Gleb Natapov <gleb@redhat.com>
diff --git a/arch/x86/kvm/x86.c b/arch/x86/kvm/x86.c
index e9c83b1..3df12c8 100644
--- a/arch/x86/kvm/x86.c
+++ b/arch/x86/kvm/x86.c
@@ -635,7 +635,7 @@ int kvm_set_cr3(struct kvm_vcpu *vcpu, unsigned long cr3)
}
if (is_long_mode(vcpu)) {
- if (kvm_read_cr4(vcpu) & X86_CR4_PCIDE) {
+ if (kvm_read_cr4_bits(vcpu, X86_CR4_PCIDE)) {
if (cr3 & CR3_PCID_ENABLED_RESERVED_BITS)
return 1;
} else
--
Gleb.
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH] KVM: do not de-cache cr4 bits needlessly
2012-10-15 7:49 [PATCH] KVM: do not de-cache cr4 bits needlessly Gleb Natapov
@ 2012-10-18 12:49 ` Avi Kivity
0 siblings, 0 replies; 2+ messages in thread
From: Avi Kivity @ 2012-10-18 12:49 UTC (permalink / raw)
To: Gleb Natapov; +Cc: kvm, mtosatti
On 10/15/2012 09:49 AM, Gleb Natapov wrote:
>
> Signed-off-by: Gleb Natapov <gleb@redhat.com>
> diff --git a/arch/x86/kvm/x86.c b/arch/x86/kvm/x86.c
> index e9c83b1..3df12c8 100644
> --- a/arch/x86/kvm/x86.c
> +++ b/arch/x86/kvm/x86.c
> @@ -635,7 +635,7 @@ int kvm_set_cr3(struct kvm_vcpu *vcpu, unsigned long cr3)
> }
>
> if (is_long_mode(vcpu)) {
> - if (kvm_read_cr4(vcpu) & X86_CR4_PCIDE) {
> + if (kvm_read_cr4_bits(vcpu, X86_CR4_PCIDE)) {
> if (cr3 & CR3_PCID_ENABLED_RESERVED_BITS)
> return 1;
> } else
Applied, thanks.
--
error compiling committee.c: too many arguments to function
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2012-10-18 12:49 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-10-15 7:49 [PATCH] KVM: do not de-cache cr4 bits needlessly Gleb Natapov
2012-10-18 12:49 ` Avi Kivity
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.