Test framwork ported to qemu -kernel
Get series with b4
b4 am [email protected]Versions newest first
- v1 Latest34 patches 0 repliesNew
Patches in v1 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/34 | Add test deviceMakefile.target hw/ | +56 | 0 replies | |
| 2/34 | test: load image immediately after program headerskvm/ | +1 | 0 replies | |
| 3/34 | test: Set up a default stackkvm/ | +1 | 0 replies | |
| 4/34 | test: add multiboot headers to startup fileskvm/ kvm/ | +18 | 0 replies | |
| 5/34 | test: Map 4GB of memorykvm/ | +5 | 0 replies | |
| 6/34 | test: use real APIC instead of fake APICkvm/ | +6 | 0 replies | |
| 7/34 | test: switch output format to elfkvm/ | +0 | 0 replies | |
| 8/34 | test: Remove smp support from access.ckvm/ | +2 | 0 replies | |
| 9/34 | test: fix realmode test print_serial() direction flagkvm/ | +1 | 0 replies | |
| 10/34 | test: port readmode tests to multibootkvm/ kvm/ | +43 | 0 replies | |
| 11/34 | test: Allow adding mode vmexit latency testskvm/ | +28 | 0 replies | |
| 12/34 | test: Add vmcall latency testkvm/ | +8 | 0 replies | |
| 13/34 | test: add cr8 latency testskvm/ | +16 | 0 replies | |
| 14/34 | test: Mask PIC interrupts before APIC testkvm/ | +13 | 0 replies | |
| 15/34 | test-device: add support for irq injectionhw/ hw/ | +11 | 0 replies | |
| 16/34 | test: Use function table for APIC accesskvm/ | +39 | 0 replies | |
| 17/34 | test: use new apic_icr_write() to issue IPIkvm/ | +2 | 0 replies | |
| 18/34 | test: add x2apic testkvm/ | +46 | 0 replies | |
| 19/34 | test: add support for the firmware configuration interfacekvm/ kvm/ kvm/ | +79 | 0 replies | |
| 20/34 | test: Add fwcfg interface for getting the cpu countkvm/ kvm/ | +7 | 0 replies | |
| 21/34 | test: vm: map mmio 1:1kvm/ | +3 | 0 replies | |
| 22/34 | test: apic: use 1:1 mapping for apickvm/ | +2 | 0 replies | |
| 23/34 | test: Move apic functions to libcflatkvm/ kvm/ kvm/ +3 more | +169 | 0 replies | |
| 24/34 | test: switch 64-bit smp startup to real APICkvm/ | +43 | 0 replies | |
| 25/34 | test: add apic_id() accessorkvm/ kvm/ | +19 | 0 replies | |
| 26/34 | test: Use xapic_write() to enable xapic()kvm/ | +1 | 0 replies | |
| 27/34 | test: initialize idt on all processorskvm/ | +6 | 0 replies | |
| 28/34 | test: initialize apic/x2apic on all processorskvm/ | +5 | 0 replies | |
| 29/34 | test: wait for all processors to complete initializationkvm/ | +7 | 0 replies | |
| 30/34 | test: port smp runtime to real apickvm/ kvm/ kvm/ | +12 | 0 replies | |
| 31/34 | test: drop irq.flatkvm/ kvm/ kvm/ | +1 | 0 replies | |
| 32/34 | test: fix autodependencieskvm/ | +2 | 0 replies | |
| 33/34 | test: Fix compilation rule for assembly files wrt autodependencieskvm/ | +1 | 0 replies | |
| 34/34 | test: avoid deleting intermediate .o fileskvm/ | +8 | 0 replies |
Reviews trailers per patch
No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.
Cover letter [PATCH QEMU-KVM 00/34] Test framwork ported to qemu -kernel
This patchset ports the test framework to qemu's multiboot support with -kernel. You can now run tests using the following command:
qemu -chardev stdio,id=test -device testdev,chardev=test
-kernel kvm/user/test/x86/apic.flat
the test device is transitional an I plan to remove it in the future, replacing it with native qemu devices.
Avi Kivity (33):
test: load image immediately after program headers
test: Set up a default stack
test: add multiboot headers to startup files
test: Map 4GB of memory
test: use real APIC instead of fake APIC
test: switch output format to elf
test: Remove smp support from access.c
test: fix realmode test print_serial() direction flag
test: port readmode tests to multiboot
test: Allow adding mode vmexit latency tests
test: Add vmcall latency test
test: add cr8 latency tests
test: Mask PIC interrupts before APIC test
test-device: add support for irq injection
test: Use function table for APIC access
test: use new apic_icr_write() to issue IPI
test: add x2apic test
test: add support for the firmware configuration interface
test: Add fwcfg interface for getting the cpu count
test: vm: map mmio 1:1
test: apic: use 1:1 mapping for apic
test: Move apic functions to libcflat
test: switch 64-bit smp startup to real APIC
test: add apic_id() accessor
test: Use xapic_write() to enable xapic()
test: initialize idt on all processors
test: initialize apic/x2apic on all processors
test: wait for all processors to complete initialization
test: port smp runtime to real apic
test: drop irq.flat
test: fix autodependencies
test: Fix compilation rule for assembly files wrt autodependencies
test: avoid deleting intermediate .o files
Gerd Hoffmann (1):
Add test device
Makefile.target | 1 +
hw/pc.c | 3 +
hw/testdev.c | 63 +++++++++
kvm/user/Makefile | 2 +-
kvm/user/config-x86-common.mak | 16 ++-
kvm/user/config-x86_64.mak | 2 +-
kvm/user/flat.lds | 4 +-
kvm/user/test/{x86/apic.h => lib/x86/apic-defs.h} | 0
kvm/user/test/lib/x86/apic.c | 149 +++++++++++++++++++++
kvm/user/test/lib/x86/apic.h | 34 +++++
kvm/user/test/lib/x86/fwcfg.c | 40 ++++++
kvm/user/test/lib/x86/fwcfg.h | 44 ++++++
kvm/user/test/lib/x86/smp.c | 68 ++--------
kvm/user/test/lib/x86/smp.h | 2 +-
kvm/user/test/x86/access.c | 4 +-
kvm/user/test/x86/apic.c | 70 +++-------
kvm/user/test/x86/cstart.S | 9 ++
kvm/user/test/x86/cstart64.S | 114 +++++++++++-----
kvm/user/test/x86/irq.S | 118 ----------------
kvm/user/test/x86/realmode.c | 54 ++++++--
kvm/user/test/x86/realmode.lds | 6 +-
kvm/user/test/x86/smptest.c | 10 +-
kvm/user/test/x86/vm.c | 3 +
kvm/user/test/x86/vmexit.c | 56 +++++++-
24 files changed, 573 insertions(+), 299 deletions(-)
create mode 100644 hw/testdev.c
rename kvm/user/test/{x86/apic.h => lib/x86/apic-defs.h} (100%)
create mode 100644 kvm/user/test/lib/x86/apic.c
create mode 100644 kvm/user/test/lib/x86/apic.h
create mode 100644 kvm/user/test/lib/x86/fwcfg.c
create mode 100644 kvm/user/test/lib/x86/fwcfg.h
delete mode 100644 kvm/user/test/x86/irq.S