Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 248039
b: refs/heads/master
c: be6d05c
h: refs/heads/master
i:
  248037: e6249d6
  248035: a226263
  248031: 52a5105
v: v3
  • Loading branch information
Jan Kiszka authored and Avi Kivity committed May 11, 2011
1 parent b1ef8b8 commit 6e27a35
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 7ae441eac521b2006c9f03c4f2a23582c07fd76d
refs/heads/master: be6d05cfdf1f2ddbdc367a6433d8eac49d6bfe6f
5 changes: 3 additions & 2 deletions trunk/arch/x86/kvm/vmx.c
Original file line number Diff line number Diff line change
Expand Up @@ -4251,8 +4251,8 @@ static struct kvm_vcpu *vmx_create_vcpu(struct kvm *kvm, unsigned int id)
goto free_vcpu;

vmx->guest_msrs = kmalloc(PAGE_SIZE, GFP_KERNEL);
err = -ENOMEM;
if (!vmx->guest_msrs) {
err = -ENOMEM;
goto uninit_vcpu;
}

Expand All @@ -4271,7 +4271,8 @@ static struct kvm_vcpu *vmx_create_vcpu(struct kvm *kvm, unsigned int id)
if (err)
goto free_vmcs;
if (vm_need_virtualize_apic_accesses(kvm))
if (alloc_apic_access_page(kvm) != 0)
err = alloc_apic_access_page(kvm);
if (err)
goto free_vmcs;

if (enable_ept) {
Expand Down

0 comments on commit 6e27a35

Please sign in to comment.