* [PATCH kvm-unit-tests] x86/run: Specify "-display none" instead of "-vnc none"
@ 2025-07-08 15:06 Paolo Bonzini
2025-07-08 17:20 ` Sean Christopherson
0 siblings, 1 reply; 2+ messages in thread
From: Paolo Bonzini @ 2025-07-08 15:06 UTC (permalink / raw)
To: kvm; +Cc: seanjc, andrew.jones
"-display none" is a more generic option that is always available,
unlike "-vnc none", so use it instead of probing for the existence
of -vnc.
This mostly reverts commit 0f982a8c1e2242483a9bf53b15f825d1ff0bccc6,
"x86/run: Specify "-vnc none" for QEMU if and only if QEMU supports VNC",
though without reintroducing the bug and with some conflicts that
happened in the meanwhile.
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
---
x86/run | 10 +---------
1 file changed, 1 insertion(+), 9 deletions(-)
diff --git a/x86/run b/x86/run
index 2e2afbe0..dd38f14c 100755
--- a/x86/run
+++ b/x86/run
@@ -37,20 +37,12 @@ else
pc_testdev="-device testdev,chardev=testlog -chardev file,id=testlog,path=msr.out"
fi
-if
- ${qemu} -vnc '?' 2>&1 | grep -F "vnc options" > /dev/null;
-then
- vnc_none="-vnc none"
-else
- vnc_none=""
-fi
-
# Discard lost ticks from the Programmable Interval Timer (PIT, a.k.a 8254), as
# enabling KVM's re-injection mode inhibits (x2)AVIC, i.e. prevents validating
# (x2)AVIC. Note, the realmode test relies on the PIT, but not re-injection.
pit="-global kvm-pit.lost_tick_policy=discard"
-command="${qemu} --no-reboot -nodefaults $pit $pc_testdev $vnc_none -serial stdio $pci_testdev"
+command="${qemu} --no-reboot -nodefaults $pit $pc_testdev -display none -serial stdio $pci_testdev"
command+=" -machine accel=$ACCEL$ACCEL_PROPS"
if [ "${CONFIG_EFI}" != y ]; then
command+=" -kernel"
--
2.50.0
^ permalink raw reply related [flat|nested] 2+ messages in thread* Re: [PATCH kvm-unit-tests] x86/run: Specify "-display none" instead of "-vnc none"
2025-07-08 15:06 [PATCH kvm-unit-tests] x86/run: Specify "-display none" instead of "-vnc none" Paolo Bonzini
@ 2025-07-08 17:20 ` Sean Christopherson
0 siblings, 0 replies; 2+ messages in thread
From: Sean Christopherson @ 2025-07-08 17:20 UTC (permalink / raw)
To: Paolo Bonzini; +Cc: kvm, andrew.jones
On Tue, Jul 08, 2025, Paolo Bonzini wrote:
> "-display none" is a more generic option that is always available,
> unlike "-vnc none", so use it instead of probing for the existence
> of -vnc.
>
> This mostly reverts commit 0f982a8c1e2242483a9bf53b15f825d1ff0bccc6,
> "x86/run: Specify "-vnc none" for QEMU if and only if QEMU supports VNC",
> though without reintroducing the bug and with some conflicts that
> happened in the meanwhile.
>
> Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
> ---
Reviewed-by: Sean Christopherson <seanjc@google.com>
Tested-by: Sean Christopherson <seanjc@google.com>
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2025-07-08 17:20 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-07-08 15:06 [PATCH kvm-unit-tests] x86/run: Specify "-display none" instead of "-vnc none" Paolo Bonzini
2025-07-08 17:20 ` Sean Christopherson
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.