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>
|
|
|
|
<type arch='x86_64' machine='pc-i440fx-2.9'>hvm</type>
|
|
|
|
<bootmenu enable='yes'/>
|
|
|
|
</os>
|
|
|
|
<cpu mode='host-model' check='partial'>
|
|
|
|
<model fallback='allow'/>
|
|
|
|
</cpu>
|
|
|
|
<on_poweroff>destroy</on_poweroff>
|
|
|
|
<on_reboot>restart</on_reboot>
|
|
|
|
<on_crash>destroy</on_crash>
|
|
|
|
<devices>
|
|
|
|
<emulator>/usr/bin/qemu-system-x86_64</emulator>
|
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
|
|
|
<controller type='usb' index='0'/>
|
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'/>
|
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>
|