diff options
author | Ingo Molnar <mingo@kernel.org> | 2024-02-26 11:06:48 +0100 |
---|---|---|
committer | Ingo Molnar <mingo@kernel.org> | 2024-02-26 11:10:35 +0100 |
commit | 2e5fc4786b7ad311393a70894c773aa106c6dbb3 (patch) | |
tree | 5eb9d382795a6739f1c556eaf69fdcfa6b265b7e /arch/x86/kvm/lapic.c | |
parent | 29cd85557d8b8b3d068b5c29fdd9a0fa9ca7ef7a (diff) | |
parent | ee8ff8768735edc3e013837c4416f819543ddc17 (diff) |
Merge branch 'x86/sev' into x86/boot, to resolve conflicts and to pick up dependent tree
We are going to queue up a number of patches that depend
on fresh changes in x86/sev - merge in that branch to
reduce the number of conflicts going forward.
Also resolve a current conflict with x86/sev.
Conflicts:
arch/x86/include/asm/coco.h
Signed-off-by: Ingo Molnar <mingo@kernel.org>
Diffstat (limited to 'arch/x86/kvm/lapic.c')
-rw-r--r-- | arch/x86/kvm/lapic.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/arch/x86/kvm/lapic.c b/arch/x86/kvm/lapic.c index 3242f3da2457..1edf93ee3395 100644 --- a/arch/x86/kvm/lapic.c +++ b/arch/x86/kvm/lapic.c @@ -2815,7 +2815,10 @@ int kvm_create_lapic(struct kvm_vcpu *vcpu, int timer_advance_ns) vcpu->arch.apic = apic; - apic->regs = (void *)get_zeroed_page(GFP_KERNEL_ACCOUNT); + if (kvm_x86_ops.alloc_apic_backing_page) + apic->regs = static_call(kvm_x86_alloc_apic_backing_page)(vcpu); + else + apic->regs = (void *)get_zeroed_page(GFP_KERNEL_ACCOUNT); if (!apic->regs) { printk(KERN_ERR "malloc apic regs error for vcpu %x\n", vcpu->vcpu_id); |