Merge branch 'kvm-updates/2.6.37' of git://git.kernel.org/pub/scm/virt/kvm/kvm
* 'kvm-updates/2.6.37' of git://git.kernel.org/pub/scm/virt/kvm/kvm: KVM: i8259: initialize isr_ack KVM: MMU: Fix incorrect direct gfn for unpaged mode shadow
This commit is contained in:
commit
9109f4eb84
|
@ -575,6 +575,8 @@ struct kvm_pic *kvm_create_pic(struct kvm *kvm)
|
||||||
s->pics[1].elcr_mask = 0xde;
|
s->pics[1].elcr_mask = 0xde;
|
||||||
s->pics[0].pics_state = s;
|
s->pics[0].pics_state = s;
|
||||||
s->pics[1].pics_state = s;
|
s->pics[1].pics_state = s;
|
||||||
|
s->pics[0].isr_ack = 0xff;
|
||||||
|
s->pics[1].isr_ack = 0xff;
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Initialize PIO device
|
* Initialize PIO device
|
||||||
|
|
|
@ -2394,7 +2394,8 @@ static int mmu_alloc_direct_roots(struct kvm_vcpu *vcpu)
|
||||||
ASSERT(!VALID_PAGE(root));
|
ASSERT(!VALID_PAGE(root));
|
||||||
spin_lock(&vcpu->kvm->mmu_lock);
|
spin_lock(&vcpu->kvm->mmu_lock);
|
||||||
kvm_mmu_free_some_pages(vcpu);
|
kvm_mmu_free_some_pages(vcpu);
|
||||||
sp = kvm_mmu_get_page(vcpu, i << 30, i << 30,
|
sp = kvm_mmu_get_page(vcpu, i << (30 - PAGE_SHIFT),
|
||||||
|
i << 30,
|
||||||
PT32_ROOT_LEVEL, 1, ACC_ALL,
|
PT32_ROOT_LEVEL, 1, ACC_ALL,
|
||||||
NULL);
|
NULL);
|
||||||
root = __pa(sp->spt);
|
root = __pa(sp->spt);
|
||||||
|
|
Loading…
Reference in New Issue