[kvm-unit-tests PATCH 0/9] SMP Support for x86 UEFI Tests

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



This series brings multi-vcpu support to UEFI tests on x86.

Most of the necessary AP bringup code already exists within kvm-unit-tests'
cstart64.S, and has now been either rewritten in C or moved to a common location
to be shared between EFI and non-EFI test builds.

A call gate is used to transition from 16-bit to 32-bit mode, since EFI may
not load the 32-bit entrypoint low enough to be reachable from the SIPI vector.

Git branch: https://github.com/varadgautam/kvm-unit-tests/commits/ap-boot-v1

Varad Gautam (9):
  x86: Move ap_init() to smp.c
  x86: Move load_idt() to desc.c
  x86: desc: Split IDT entry setup into a generic helper
  x86: efi, smp: Transition APs from 16-bit to 32-bit mode
  x86: Move 32-bit bringup routines to start32.S
  x86: efi, smp: Transition APs from 32-bit to 64-bit mode
  x86: Move load_gdt_tss() to desc.c
  x86: Provide a common 64-bit AP entrypoint for EFI and non-EFI
  x86: setup: Serialize ap_start64 with a spinlock

 lib/x86/asm/setup.h       |   3 ++
 lib/x86/desc.c            |  39 +++++++++++---
 lib/x86/desc.h            |   3 ++
 lib/x86/setup.c           |  65 +++++++++++++++++-----
 lib/x86/smp.c             |  89 +++++++++++++++++++++++++++++-
 lib/x86/smp.h             |   1 +
 x86/cstart64.S            | 111 ++------------------------------------
 x86/efi/crt0-efi-x86_64.S |   3 ++
 x86/efi/efistart64.S      |  73 ++++++++++++++++++++-----
 x86/start32.S             | 102 +++++++++++++++++++++++++++++++++++
 10 files changed, 348 insertions(+), 141 deletions(-)
 create mode 100644 x86/start32.S

-- 
2.32.0




[Index of Archives]     [KVM ARM]     [KVM ia64]     [KVM ppc]     [Virtualization Tools]     [Spice Development]     [Libvirt]     [Libvirt Users]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite Questions]     [Linux Kernel]     [Linux SCSI]     [XFree86]

  Powered by Linux