]> xenbits.xensource.com Git - libvirt.git/commit
qemu: fix qemu command for pci hostdevs and ramfb='off'
authorJonathon Jongsma <jjongsma@redhat.com>
Thu, 16 May 2024 21:46:04 +0000 (16:46 -0500)
committerJonathon Jongsma <jjongsma@redhat.com>
Mon, 20 May 2024 17:42:18 +0000 (12:42 -0500)
commit7c8e606b64c73ca56d7134cb16d01257f39c53ef
treeca3acb3e23593354d360ba3d62ff115bedc261f4
parent615af05e067aa059feab162894ba1f85a1f6c704
qemu: fix qemu command for pci hostdevs and ramfb='off'

There was no test for this and we mistakenly used 'B' rather than 'T'
when constructing the json value for this parameter. Thus, a value of
'off' was VIR_TRISTATE_SWITCH_OFF=2, which was translated to a boolean
value of 'true'.

Signed-off-by: Jonathon Jongsma <jjongsma@redhat.com>
Reviewed-by: Peter Krempa <pkrempa@redhat.com>
src/qemu/qemu_command.c
tests/qemuxmlconfdata/hostdev-pci-display-ramfb.x86_64-latest.args
tests/qemuxmlconfdata/hostdev-pci-display-ramfb.x86_64-latest.xml
tests/qemuxmlconfdata/hostdev-pci-display-ramfb.xml