2018-03-02 15:47:32 +00:00
|
|
|
<domstatus state='running' reason='booted' pid='3803518'>
|
|
|
|
<taint flag='high-privileges'/>
|
2019-06-14 19:14:48 +00:00
|
|
|
<monitor path='/var/lib/libvirt/qemu/test.monitor' type='unix'/>
|
2018-03-02 15:47:32 +00:00
|
|
|
<vcpus>
|
|
|
|
<vcpu id='0' pid='3803519'/>
|
|
|
|
</vcpus>
|
|
|
|
<qemuCaps>
|
|
|
|
<flag name='vnet-hdr'/>
|
|
|
|
<flag name='qxl.vgamem_mb'/>
|
|
|
|
<flag name='qxl-vga.vgamem_mb'/>
|
|
|
|
<flag name='pc-dimm'/>
|
|
|
|
</qemuCaps>
|
2018-03-07 14:37:27 +00:00
|
|
|
<lockstate>testtest</lockstate>
|
2018-03-02 15:47:32 +00:00
|
|
|
<devices>
|
|
|
|
<device alias='balloon0'/>
|
|
|
|
<device alias='video0'/>
|
|
|
|
<device alias='serial0'/>
|
|
|
|
<device alias='net0'/>
|
|
|
|
<device alias='usb'/>
|
|
|
|
</devices>
|
|
|
|
<numad nodeset='0-2' cpuset='1,3'/>
|
|
|
|
<libDir path='/tmp'/>
|
|
|
|
<channelTargetDir path='/tmp/channel'/>
|
|
|
|
<allowReboot value='yes'/>
|
2022-07-21 14:06:33 +00:00
|
|
|
<nodename index='0'/>
|
2022-05-05 13:45:55 +00:00
|
|
|
<fdset index='0'/>
|
2018-03-02 15:47:32 +00:00
|
|
|
<blockjobs active='yes'/>
|
Add API to change qemu agent response timeout
Some layered products such as oVirt have requested a way to avoid being
blocked by guest agent commands when querying a loaded vm. For example,
many guest agent commands are polled periodically to monitor changes,
and rather than blocking the calling process, they'd prefer to simply
time out when an agent query is taking too long.
This patch adds a way for the user to specify a custom agent timeout
that is applied to all agent commands.
One special case to note here is the 'guest-sync' command. 'guest-sync'
is issued internally prior to calling any other command. (For example,
when libvirt wants to call 'guest-get-fsinfo', we first call
'guest-sync' and then call 'guest-get-fsinfo').
Previously, the 'guest-sync' command used a 5-second timeout
(VIR_DOMAIN_QEMU_AGENT_COMMAND_DEFAULT), whereas the actual command that
followed always blocked indefinitely
(VIR_DOMAIN_QEMU_AGENT_COMMAND_BLOCK). As part of this patch, if a
custom timeout is specified that is shorter than
5 seconds, this new timeout is also used for 'guest-sync'. If there is
no custom timeout or if the custom timeout is longer than 5 seconds, we
will continue to use the 5-second timeout.
Signed-off-by: Jonathon Jongsma <jjongsma@redhat.com>
Signed-off-by: Michal Privoznik <mprivozn@redhat.com>
Reviewed-by: Michal Privoznik <mprivozn@redhat.com>
2019-11-13 22:06:09 +00:00
|
|
|
<agentTimeout>-2</agentTimeout>
|
2018-03-02 15:47:32 +00:00
|
|
|
<domain type='qemu' id='1'>
|
|
|
|
<name>QEMUGuest1</name>
|
|
|
|
<uuid>c7a5fdbd-edaf-9455-926a-d65c16db1809</uuid>
|
|
|
|
<memory unit='KiB'>219136</memory>
|
|
|
|
<currentMemory unit='KiB'>219136</currentMemory>
|
|
|
|
<vcpu placement='static'>1</vcpu>
|
|
|
|
<os>
|
|
|
|
<type arch='i686' machine='pc'>hvm</type>
|
|
|
|
<boot dev='hd'/>
|
|
|
|
</os>
|
|
|
|
<clock offset='utc'/>
|
|
|
|
<on_poweroff>destroy</on_poweroff>
|
|
|
|
<on_reboot>restart</on_reboot>
|
|
|
|
<on_crash>destroy</on_crash>
|
|
|
|
<devices>
|
2019-11-29 16:33:37 +00:00
|
|
|
<emulator>/usr/bin/qemu-system-i386</emulator>
|
2018-03-02 15:47:32 +00:00
|
|
|
<disk type='block' device='disk'>
|
|
|
|
<driver name='qemu' type='raw'/>
|
|
|
|
<source dev='/dev/HostVG/QEMUGuest1'/>
|
|
|
|
<backingStore/>
|
|
|
|
<mirror type='block' job='copy' ready='yes'>
|
|
|
|
<format type='raw'/>
|
|
|
|
<source dev='/dev/HostVG/QEMUGuest1Copy'/>
|
|
|
|
</mirror>
|
|
|
|
<target dev='hda' bus='ide'/>
|
|
|
|
<address type='drive' controller='0' bus='0' target='0' unit='0'/>
|
|
|
|
</disk>
|
|
|
|
<disk type='block' device='cdrom'>
|
|
|
|
<driver name='qemu' type='raw'/>
|
|
|
|
<source dev='/dev/HostVG/QEMUGuest2'/>
|
|
|
|
<backingStore/>
|
|
|
|
<target dev='hdc' bus='ide'/>
|
|
|
|
<readonly/>
|
|
|
|
<address type='drive' controller='0' bus='1' target='0' unit='0'/>
|
|
|
|
</disk>
|
|
|
|
<disk type='file' device='disk'>
|
|
|
|
<driver name='qemu' type='raw'/>
|
|
|
|
<source file='/tmp/data.img'/>
|
|
|
|
<backingStore/>
|
|
|
|
<mirror type='file' file='/tmp/copy.img' format='qcow2' job='copy'>
|
|
|
|
<format type='qcow2'/>
|
|
|
|
<source file='/tmp/copy.img'/>
|
2019-03-13 15:08:13 +00:00
|
|
|
<backingStore/>
|
2018-03-02 15:47:32 +00:00
|
|
|
</mirror>
|
|
|
|
<target dev='vda' bus='virtio'/>
|
|
|
|
<address type='pci' domain='0x0000' bus='0x00' slot='0x03' function='0x0'/>
|
|
|
|
</disk>
|
|
|
|
<disk type='file' device='disk'>
|
|
|
|
<driver name='qemu' type='raw'/>
|
|
|
|
<source file='/tmp/logs.img'/>
|
|
|
|
<backingStore/>
|
|
|
|
<mirror type='file' file='/tmp/logcopy.img' format='qcow2' job='copy' ready='abort'>
|
|
|
|
<format type='qcow2'/>
|
|
|
|
<source file='/tmp/logcopy.img'/>
|
2019-03-13 15:08:13 +00:00
|
|
|
<backingStore type='block' index='1'>
|
|
|
|
<format type='raw'/>
|
|
|
|
<source dev='/dev/HostVG/backing'>
|
|
|
|
<privateData>
|
|
|
|
<nodenames>
|
|
|
|
<nodename type='storage' name='test-backing-storage'/>
|
|
|
|
<nodename type='format' name='test-backing-format'/>
|
|
|
|
</nodenames>
|
|
|
|
</privateData>
|
|
|
|
</source>
|
|
|
|
<backingStore/>
|
|
|
|
</backingStore>
|
2018-03-02 15:47:32 +00:00
|
|
|
</mirror>
|
|
|
|
<target dev='vdb' bus='virtio'/>
|
|
|
|
<address type='pci' domain='0x0000' bus='0x00' slot='0x04' function='0x0'/>
|
|
|
|
</disk>
|
|
|
|
<controller type='usb' index='0'>
|
|
|
|
<address type='pci' domain='0x0000' bus='0x00' slot='0x01' function='0x2'/>
|
|
|
|
</controller>
|
|
|
|
<controller type='ide' index='0'>
|
|
|
|
<address type='pci' domain='0x0000' bus='0x00' slot='0x01' function='0x1'/>
|
|
|
|
</controller>
|
|
|
|
<controller type='pci' index='0' model='pci-root'/>
|
|
|
|
<input type='mouse' bus='ps2'/>
|
|
|
|
<input type='keyboard' bus='ps2'/>
|
2021-02-24 14:24:10 +00:00
|
|
|
<audio id='1' type='none'/>
|
2018-03-02 15:47:32 +00:00
|
|
|
<memballoon model='virtio'>
|
|
|
|
<address type='pci' domain='0x0000' bus='0x00' slot='0x05' function='0x0'/>
|
|
|
|
</memballoon>
|
|
|
|
</devices>
|
|
|
|
</domain>
|
|
|
|
</domstatus>
|