diff options
author | Thomas Gleixner <tglx@linutronix.de> | 2010-10-12 16:40:34 +0200 |
---|---|---|
committer | Thomas Gleixner <tglx@linutronix.de> | 2010-10-12 16:40:42 +0200 |
commit | 5e62feabcc3e4127a084701ec54ffe891985b7e8 (patch) | |
tree | 9246462da99ef4eb53c9c89a137d0a88c897f3d6 /arch/x86/kvm/lapic.c | |
parent | Merge branch 'x86/x2apic' into irq/sparseirq (diff) | |
parent | x86, cleanups: Use clear_page/copy_page rather than memset/memcpy (diff) | |
download | linux-5e62feabcc3e4127a084701ec54ffe891985b7e8.tar.xz linux-5e62feabcc3e4127a084701ec54ffe891985b7e8.zip |
Merge branch 'x86/cleanups' into irq/sparseirq
Reason: Avoid conflicts with removal of boot_cpu_id
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Diffstat (limited to 'arch/x86/kvm/lapic.c')
-rw-r--r-- | arch/x86/kvm/lapic.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/arch/x86/kvm/lapic.c b/arch/x86/kvm/lapic.c index 77d8c0f4817d..22b06f7660f4 100644 --- a/arch/x86/kvm/lapic.c +++ b/arch/x86/kvm/lapic.c @@ -1056,14 +1056,13 @@ int kvm_create_lapic(struct kvm_vcpu *vcpu) vcpu->arch.apic = apic; - apic->regs_page = alloc_page(GFP_KERNEL); + apic->regs_page = alloc_page(GFP_KERNEL|__GFP_ZERO); if (apic->regs_page == NULL) { printk(KERN_ERR "malloc apic regs error for vcpu %x\n", vcpu->vcpu_id); goto nomem_free_apic; } apic->regs = page_address(apic->regs_page); - memset(apic->regs, 0, PAGE_SIZE); apic->vcpu = vcpu; hrtimer_init(&apic->lapic_timer.timer, CLOCK_MONOTONIC, |