diff options
Diffstat (limited to 'drivers/kvm/kvm_main.c')
-rw-r--r-- | drivers/kvm/kvm_main.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/kvm/kvm_main.c b/drivers/kvm/kvm_main.c index 9f24f22e4cb2..38375e2bb703 100644 --- a/drivers/kvm/kvm_main.c +++ b/drivers/kvm/kvm_main.c | |||
@@ -398,7 +398,7 @@ void set_cr4(struct kvm_vcpu *vcpu, unsigned long cr4) | |||
398 | return; | 398 | return; |
399 | } | 399 | } |
400 | 400 | ||
401 | if (kvm_arch_ops->is_long_mode(vcpu)) { | 401 | if (is_long_mode(vcpu)) { |
402 | if (!(cr4 & CR4_PAE_MASK)) { | 402 | if (!(cr4 & CR4_PAE_MASK)) { |
403 | printk(KERN_DEBUG "set_cr4: #GP, clearing PAE while " | 403 | printk(KERN_DEBUG "set_cr4: #GP, clearing PAE while " |
404 | "in long mode\n"); | 404 | "in long mode\n"); |
@@ -425,7 +425,7 @@ EXPORT_SYMBOL_GPL(set_cr4); | |||
425 | 425 | ||
426 | void set_cr3(struct kvm_vcpu *vcpu, unsigned long cr3) | 426 | void set_cr3(struct kvm_vcpu *vcpu, unsigned long cr3) |
427 | { | 427 | { |
428 | if (kvm_arch_ops->is_long_mode(vcpu)) { | 428 | if (is_long_mode(vcpu)) { |
429 | if ( cr3 & CR3_L_MODE_RESEVED_BITS) { | 429 | if ( cr3 & CR3_L_MODE_RESEVED_BITS) { |
430 | printk(KERN_DEBUG "set_cr3: #GP, reserved bits\n"); | 430 | printk(KERN_DEBUG "set_cr3: #GP, reserved bits\n"); |
431 | inject_gp(vcpu); | 431 | inject_gp(vcpu); |