Bug 1982600

Summary: qemu-kvm -help reports -spice despite not being compiled
Product: Red Hat Enterprise Linux 9 Reporter: Daniel Berrangé <berrange>
Component: qemu-kvmAssignee: Marc-Andre Lureau <marcandre.lureau>
qemu-kvm sub component: General QA Contact: Guo, Zhiyi <zhguo>
Status: CLOSED ERRATA Docs Contact:
Severity: unspecified    
Priority: unspecified CC: coli, jinzhao, juzhang, mrezanin, virt-maint, yfu
Version: 9.0Keywords: Documentation, Triaged
Target Milestone: betaFlags: pm-rhel: mirror+
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: qemu-kvm-7.0.0-1.el9 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2022-11-15 09:53:23 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Daniel Berrangé 2021-07-15 09:08:03 UTC
Description of problem:
# /usr/libexec/qemu-kvm  --help 2>&1 | grep spice
-spice [port=port][,tls-port=secured-port][,x509-dir=<dir>]
   enable spice

#  /usr/libexec/qemu-kvm  --spice port=5900
qemu-kvm: --spice port=5900: There is no option group 'spice'
qemu-kvm: --spice port=5900: spice support is disabled

This looks like a bug in qemu-options.hx - this file supports 
conditional builds based on CONFIG_XXXX, and indeed some
SPICE pieces are conditionally removed already, but the main
-spice option is still present.

Version-Release number of selected component (if applicable):
qemu-kvm-6.0.0-7.el9.x86_64

Comment 1 Marc-Andre Lureau 2021-09-09 08:47:23 UTC
upstream patch: "[PATCH] qemu-options.hx: remove -spice options from --help"

Comment 2 Marc-Andre Lureau 2022-03-23 08:09:38 UTC
Merged in for qemu 7.0-rc1:

commit 5324e3e958e87083c87e2965b6c87db24c6afa90
Author: Marc-André Lureau <marcandre.lureau>
Date:   Thu Sep 9 12:44:11 2021 +0400

    qemu-options: define -spice only #ifdef CONFIG_SPICE

Comment 3 Yanan Fu 2022-04-25 12:37:07 UTC
QE bot(pre verify): Set 'Verified:Tested,SanityOnly' as gating/tier1 test pass.

Comment 5 Guo, Zhiyi 2022-05-11 12:42:02 UTC
Reproduce this issue against qemu-kvm-6.2.0-11.el9_0.2.x86_64:
# /usr/libexec/qemu-kvm --help | grep spice
-spice [port=port][,tls-port=secured-port][,x509-dir=<dir>]
   enable spice
# /usr/libexec/qemu-kvm --spice 5900
qemu-kvm: --spice 5900: spice support is disabled

Verify this issue against qemu-kvm-7.0.0-2.el9.x86_64
# /usr/libexec/qemu-kvm --help | grep spice
(nothing)
# /usr/libexec/qemu-kvm --spice 5900
qemu-kvm: --spice: invalid option

Comment 8 Guo, Zhiyi 2022-05-23 10:22:20 UTC
Verified per comment 5

Comment 10 errata-xmlrpc 2022-11-15 09:53:23 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory (Moderate: qemu-kvm security, bug fix, and enhancement update), and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://access.redhat.com/errata/RHSA-2022:7967