diff options
author | Jan Kiszka <jan.kiszka@web.de> | 2009-07-22 17:53:01 -0400 |
---|---|---|
committer | Avi Kivity <avi@redhat.com> | 2009-09-10 01:33:17 -0400 |
commit | 7f582ab6d8116ce8db5792c219a278519deae6ad (patch) | |
tree | 9e56993b6280726f56a25f4833e8fd2c4304cb04 /arch/x86/kvm/vmx.c | |
parent | e601e3be7a5324fcfd34fdb8796688cfe48bd0fe (diff) |
KVM: VMX: Avoid to return ENOTSUPP to userland
Choose some allowed error values for the cases VMX returned ENOTSUPP so
far as these values could be returned by the KVM_RUN IOCTL.
Signed-off-by: Jan Kiszka <jan.kiszka@siemens.com>
Signed-off-by: Marcelo Tosatti <mtosatti@redhat.com>
Diffstat (limited to 'arch/x86/kvm/vmx.c')
-rw-r--r-- | arch/x86/kvm/vmx.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/arch/x86/kvm/vmx.c b/arch/x86/kvm/vmx.c index 686e1abb6816..c5aaa1b5fdbe 100644 --- a/arch/x86/kvm/vmx.c +++ b/arch/x86/kvm/vmx.c | |||
@@ -3133,7 +3133,7 @@ static int handle_apic_access(struct kvm_vcpu *vcpu, struct kvm_run *kvm_run) | |||
3133 | printk(KERN_ERR | 3133 | printk(KERN_ERR |
3134 | "Fail to handle apic access vmexit! Offset is 0x%lx\n", | 3134 | "Fail to handle apic access vmexit! Offset is 0x%lx\n", |
3135 | offset); | 3135 | offset); |
3136 | return -ENOTSUPP; | 3136 | return -ENOEXEC; |
3137 | } | 3137 | } |
3138 | return 1; | 3138 | return 1; |
3139 | } | 3139 | } |
@@ -3202,7 +3202,7 @@ static int handle_ept_violation(struct kvm_vcpu *vcpu, struct kvm_run *kvm_run) | |||
3202 | 3202 | ||
3203 | if (exit_qualification & (1 << 6)) { | 3203 | if (exit_qualification & (1 << 6)) { |
3204 | printk(KERN_ERR "EPT: GPA exceeds GAW!\n"); | 3204 | printk(KERN_ERR "EPT: GPA exceeds GAW!\n"); |
3205 | return -ENOTSUPP; | 3205 | return -EINVAL; |
3206 | } | 3206 | } |
3207 | 3207 | ||
3208 | gla_validity = (exit_qualification >> 7) & 0x3; | 3208 | gla_validity = (exit_qualification >> 7) & 0x3; |