Skip to content

Test framwork ported to qemu -kernel

Avi Kivity kvm 1 version New

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest34 patches 0 repliesNew

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/34Add test deviceMakefile.target hw/testdev.c+56 -00 replies
2/34test: load image immediately after program headerskvm/user/flat.lds+1 -10 replies
3/34test: Set up a default stackkvm/user/test/x86/cstart64.S+1 -00 replies
4/34test: add multiboot headers to startup fileskvm/user/test/x86/cstart.S kvm/user/test/x86/cstart64.S+18 -00 replies
5/34test: Map 4GB of memorykvm/user/test/x86/cstart64.S+5 -20 replies
6/34test: use real APIC instead of fake APICkvm/user/test/x86/cstart64.S+6 -30 replies
7/34test: switch output format to elfkvm/user/flat.lds+0 -20 replies
8/34test: Remove smp support from access.ckvm/user/test/x86/access.c+2 -20 replies
9/34test: fix realmode test print_serial() direction flagkvm/user/test/x86/realmode.c+1 -10 replies
10/34test: port readmode tests to multibootkvm/user/test/x86/realmode.c kvm/user/test/x86/realmode.lds+43 -150 replies
11/34test: Allow adding mode vmexit latency testskvm/user/test/x86/vmexit.c+28 -40 replies
12/34test: Add vmcall latency testkvm/user/test/x86/vmexit.c+8 -00 replies
13/34test: add cr8 latency testskvm/user/test/x86/vmexit.c+16 -00 replies
14/34test: Mask PIC interrupts before APIC testkvm/user/test/x86/apic.c+13 -00 replies
15/34test-device: add support for irq injectionhw/pc.c hw/testdev.c+11 -00 replies
16/34test: Use function table for APIC accesskvm/user/test/x86/apic.c+39 -20 replies
17/34test: use new apic_icr_write() to issue IPIkvm/user/test/x86/apic.c+2 -20 replies
18/34test: add x2apic testkvm/user/test/x86/apic.c+46 -00 replies
19/34test: add support for the firmware configuration interfacekvm/user/config-x86-common.mak kvm/user/test/lib/x86/fwcfg.c kvm/user/test/lib/x86/fwcfg.h+79 -00 replies
20/34test: Add fwcfg interface for getting the cpu countkvm/user/test/lib/x86/fwcfg.c kvm/user/test/lib/x86/fwcfg.h+7 -00 replies
21/34test: vm: map mmio 1:1kvm/user/test/x86/vm.c+3 -00 replies
22/34test: apic: use 1:1 mapping for apickvm/user/test/x86/apic.c+2 -20 replies
23/34test: Move apic functions to libcflatkvm/user/config-x86-common.mak kvm/user/test/lib/x86/apic-defs.h kvm/user/test/lib/x86/apic.c +3 more+169 -1280 replies
24/34test: switch 64-bit smp startup to real APICkvm/user/test/x86/cstart64.S+43 -310 replies
25/34test: add apic_id() accessorkvm/user/test/lib/x86/apic.c kvm/user/test/lib/x86/apic.h+19 -00 replies
26/34test: Use xapic_write() to enable xapic()kvm/user/test/lib/x86/apic.c+1 -10 replies
27/34test: initialize idt on all processorskvm/user/test/x86/cstart64.S+6 -00 replies
28/34test: initialize apic/x2apic on all processorskvm/user/test/x86/cstart64.S+5 -00 replies
29/34test: wait for all processors to complete initializationkvm/user/test/x86/cstart64.S+7 -00 replies
30/34test: port smp runtime to real apickvm/user/test/lib/x86/smp.c kvm/user/test/lib/x86/smp.h kvm/user/test/x86/smptest.c+12 -680 replies
31/34test: drop irq.flatkvm/user/config-x86-common.mak kvm/user/config-x86_64.mak kvm/user/test/x86/irq.S+1 -1210 replies
32/34test: fix autodependencieskvm/user/config-x86-common.mak+2 -00 replies
33/34test: Fix compilation rule for assembly files wrt autodependencieskvm/user/Makefile+1 -10 replies
34/34test: avoid deleting intermediate .o fileskvm/user/config-x86-common.mak+8 -10 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

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