diff options
author | David S. Miller <davem@davemloft.net> | 2019-09-15 08:17:27 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2019-09-15 08:17:27 -0400 |
commit | aa2eaa8c272a3211dec07ce9c6c863a7e355c10e (patch) | |
tree | 8454a23d36b2ff36133c276ee0ba80eabc00850e /arch/x86/kvm/vmx/nested.c | |
parent | a3d3c74da49c65fc63a937fa559186b0e16adca3 (diff) | |
parent | 1609d7604b847a9820e63393d1a3b6cac7286d40 (diff) |
Merge git://git.kernel.org/pub/scm/linux/kernel/git/netdev/net
Minor overlapping changes in the btusb and ixgbe drivers.
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'arch/x86/kvm/vmx/nested.c')
-rw-r--r-- | arch/x86/kvm/vmx/nested.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/arch/x86/kvm/vmx/nested.c b/arch/x86/kvm/vmx/nested.c index ced9fba32598..a3cba321b5c5 100644 --- a/arch/x86/kvm/vmx/nested.c +++ b/arch/x86/kvm/vmx/nested.c | |||
@@ -4540,6 +4540,7 @@ static int handle_vmread(struct kvm_vcpu *vcpu) | |||
4540 | int len; | 4540 | int len; |
4541 | gva_t gva = 0; | 4541 | gva_t gva = 0; |
4542 | struct vmcs12 *vmcs12; | 4542 | struct vmcs12 *vmcs12; |
4543 | struct x86_exception e; | ||
4543 | short offset; | 4544 | short offset; |
4544 | 4545 | ||
4545 | if (!nested_vmx_check_permission(vcpu)) | 4546 | if (!nested_vmx_check_permission(vcpu)) |
@@ -4588,7 +4589,8 @@ static int handle_vmread(struct kvm_vcpu *vcpu) | |||
4588 | vmx_instruction_info, true, len, &gva)) | 4589 | vmx_instruction_info, true, len, &gva)) |
4589 | return 1; | 4590 | return 1; |
4590 | /* _system ok, nested_vmx_check_permission has verified cpl=0 */ | 4591 | /* _system ok, nested_vmx_check_permission has verified cpl=0 */ |
4591 | kvm_write_guest_virt_system(vcpu, gva, &field_value, len, NULL); | 4592 | if (kvm_write_guest_virt_system(vcpu, gva, &field_value, len, &e)) |
4593 | kvm_inject_page_fault(vcpu, &e); | ||
4592 | } | 4594 | } |
4593 | 4595 | ||
4594 | return nested_vmx_succeed(vcpu); | 4596 | return nested_vmx_succeed(vcpu); |