2017-12-12 13:03:13 +00:00
|
|
|
<domain type='kvm'>
|
|
|
|
<name>fedora</name>
|
|
|
|
<uuid>63840878-0deb-4095-97e6-fc444d9bc9fa</uuid>
|
|
|
|
<memory unit='KiB'>4194304</memory>
|
|
|
|
<currentMemory unit='KiB'>4194304</currentMemory>
|
|
|
|
<memoryBacking>
|
|
|
|
<hugepages/>
|
|
|
|
<access mode='shared'/>
|
|
|
|
</memoryBacking>
|
|
|
|
<vcpu placement='static'>4</vcpu>
|
|
|
|
<os>
|
2022-01-05 10:52:04 +00:00
|
|
|
<type arch='x86_64' machine='pc'>hvm</type>
|
2022-11-03 09:28:40 +00:00
|
|
|
<boot dev='hd'/>
|
2017-12-12 13:03:13 +00:00
|
|
|
<bootmenu enable='yes'/>
|
|
|
|
</os>
|
2022-11-03 09:28:40 +00:00
|
|
|
<cpu mode='custom' match='exact' check='none'>
|
|
|
|
<model fallback='forbid'>qemu64</model>
|
|
|
|
</cpu>
|
|
|
|
<clock offset='utc'/>
|
2017-12-12 13:03:13 +00:00
|
|
|
<on_poweroff>destroy</on_poweroff>
|
|
|
|
<on_reboot>restart</on_reboot>
|
|
|
|
<on_crash>destroy</on_crash>
|
|
|
|
<devices>
|
|
|
|
<emulator>/usr/bin/qemu-system-x86_64</emulator>
|
2022-11-03 09:28:40 +00:00
|
|
|
<controller type='usb' index='0' model='piix3-uhci'>
|
|
|
|
<address type='pci' domain='0x0000' bus='0x00' slot='0x01' function='0x2'/>
|
|
|
|
</controller>
|
2017-12-12 13:03:13 +00:00
|
|
|
<controller type='pci' index='0' model='pci-root'/>
|
|
|
|
<input type='mouse' bus='ps2'/>
|
|
|
|
<input type='keyboard' bus='ps2'/>
|
2022-11-03 09:28:40 +00:00
|
|
|
<audio id='1' type='none'/>
|
qemu: Validate memory access during validate domain config
Commit 6534b3c4 tried to raise an error when there is no numa
nodes by setting access='shared' in the domain config, but added
a helper called from qemuDomainDeviceDefValidate instead of a
helper called from qemuDomainDefValidate for XML:
<memoryBacking>
<hugepages/>
<access mode='shared'/>
</memoryBacking>
Since there are no memory devices in the test XML, there would
be no validation failure, but the test added was still failing.
Investigating that it turns out that unnecessary XML elements
were causing the failure (no need for <video>, <graphics>,
<pm>, usb controller model "piix3-uhci", disk attribute for
"discard='unmap'", <serial>, <console>, <channel> and a
memballoon model). Removing all those before moving the method
caused the test to succeed.
So this patch moves the validation to the right place and
removes all the unnecessary XML pieces that were causing
a false validation failure.
https://bugzilla.redhat.com/show_bug.cgi?id=1448149#c14
Signed-off-by: Luyao Huang <lhuang@redhat.com>
Reviewed-by: John Ferlan <jferlan@redhat.com>
2018-08-20 09:48:33 +00:00
|
|
|
<memballoon model='none'/>
|
2017-12-12 13:03:13 +00:00
|
|
|
</devices>
|
|
|
|
</domain>
|