mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-12-22 13:45:38 +00:00
tests: Add test case for the armvtimer timer
Signed-off-by: Andrea Bolognani <abologna@redhat.com> Reviewed-by: Ján Tomko <jtomko@redhat.com>
This commit is contained in:
parent
7c4bc108a9
commit
76121fc9c4
@ -0,0 +1,32 @@
|
||||
LC_ALL=C \
|
||||
PATH=/bin \
|
||||
HOME=/tmp/lib/domain--1-guest \
|
||||
USER=test \
|
||||
LOGNAME=test \
|
||||
XDG_DATA_HOME=/tmp/lib/domain--1-guest/.local/share \
|
||||
XDG_CACHE_HOME=/tmp/lib/domain--1-guest/.cache \
|
||||
XDG_CONFIG_HOME=/tmp/lib/domain--1-guest/.config \
|
||||
QEMU_AUDIO_DRV=none \
|
||||
/usr/bin/qemu-system-aarch64 \
|
||||
-name guest=guest,debug-threads=on \
|
||||
-S \
|
||||
-object secret,id=masterKey0,format=raw,\
|
||||
file=/tmp/lib/domain--1-guest/master-key.aes \
|
||||
-machine virt,accel=kvm,usb=off,dump-guest-core=off,gic-version=3 \
|
||||
-cpu host,kvm-no-adjvtime=on \
|
||||
-m 4096 \
|
||||
-overcommit mem-lock=off \
|
||||
-smp 4,sockets=4,cores=1,threads=1 \
|
||||
-uuid 1ccfd97d-5eb4-478a-bbe6-88d254c16db7 \
|
||||
-display none \
|
||||
-no-user-config \
|
||||
-nodefaults \
|
||||
-chardev socket,id=charmonitor,fd=1729,server,nowait \
|
||||
-mon chardev=charmonitor,id=monitor,mode=control \
|
||||
-rtc base=utc \
|
||||
-no-shutdown \
|
||||
-no-acpi \
|
||||
-boot strict=on \
|
||||
-sandbox on,obsolete=deny,elevateprivileges=deny,spawn=deny,\
|
||||
resourcecontrol=deny \
|
||||
-msg timestamp=on
|
27
tests/qemuxml2argvdata/clock-timer-armvtimer.xml
Normal file
27
tests/qemuxml2argvdata/clock-timer-armvtimer.xml
Normal file
@ -0,0 +1,27 @@
|
||||
<domain type='kvm'>
|
||||
<name>guest</name>
|
||||
<uuid>1ccfd97d-5eb4-478a-bbe6-88d254c16db7</uuid>
|
||||
<memory unit='KiB'>4194304</memory>
|
||||
<currentMemory unit='KiB'>4194304</currentMemory>
|
||||
<vcpu placement='static'>4</vcpu>
|
||||
<os>
|
||||
<type arch='aarch64' machine='virt'>hvm</type>
|
||||
<boot dev='hd'/>
|
||||
</os>
|
||||
<features>
|
||||
<gic version='3'/>
|
||||
</features>
|
||||
<cpu mode='host-passthrough' check='none'/>
|
||||
<clock offset='utc'>
|
||||
<timer name='armvtimer' tickpolicy='discard'/>
|
||||
</clock>
|
||||
<on_poweroff>destroy</on_poweroff>
|
||||
<on_reboot>restart</on_reboot>
|
||||
<on_crash>destroy</on_crash>
|
||||
<devices>
|
||||
<emulator>/usr/bin/qemu-system-aarch64</emulator>
|
||||
<controller type='usb' index='0' model='none'/>
|
||||
<controller type='pci' index='0' model='pcie-root'/>
|
||||
<memballoon model='none'/>
|
||||
</devices>
|
||||
</domain>
|
@ -2729,6 +2729,8 @@ mymain(void)
|
||||
/* SVE aarch64 CPU features work on modern QEMU */
|
||||
DO_TEST_CAPS_ARCH_LATEST("aarch64-features-sve", "aarch64");
|
||||
|
||||
DO_TEST_CAPS_ARCH_LATEST("clock-timer-armvtimer", "aarch64");
|
||||
|
||||
qemuTestSetHostArch(&driver, VIR_ARCH_NONE);
|
||||
|
||||
DO_TEST("kvm-pit-delay", QEMU_CAPS_KVM_PIT_TICK_POLICY);
|
||||
|
@ -0,0 +1 @@
|
||||
../qemuxml2argvdata/clock-timer-armvtimer.xml
|
@ -269,6 +269,7 @@ mymain(void)
|
||||
DO_TEST("clock-catchup", QEMU_CAPS_KVM_PIT_TICK_POLICY);
|
||||
DO_TEST("kvmclock", NONE);
|
||||
DO_TEST("clock-timer-hyperv-rtc", NONE);
|
||||
DO_TEST_CAPS_ARCH_LATEST("clock-timer-armvtimer", "aarch64");
|
||||
|
||||
DO_TEST("cpu-eoi-disabled", NONE);
|
||||
DO_TEST("cpu-eoi-enabled", NONE);
|
||||
|
Loading…
Reference in New Issue
Block a user