]> git.ipfire.org Git - thirdparty/libvirt.git/commit
qemu: agent: Store CCW address in qemuAgentDiskInfo if provided by the guest
authorThomas Huth <thuth@redhat.com>
Wed, 25 Nov 2020 11:06:46 +0000 (12:06 +0100)
committerMichal Privoznik <mprivozn@redhat.com>
Tue, 22 Dec 2020 13:16:31 +0000 (14:16 +0100)
commitf5c8cf9e0ef5376374e83899d6d73f1aaaafc254
treeba87cb25a65add3a539cf984f1ca57018903fad9
parentbed50bcbbb2796aa88f1c85a2424fe9bd7944f89
qemu: agent: Store CCW address in qemuAgentDiskInfo if provided by the guest

Newer versions of the QEMU guest agent will provide the CCW address
of devices on s390x. Store this information in the qemuAgentDiskInfo
so that we can use this later.

We also map the CSSID 0 from the guest to the value 0xfe on the host,
see https://www.qemu.org/docs/master/system/s390x/css.html for details.

Signed-off-by: Thomas Huth <thuth@redhat.com>
Signed-off-by: Michal Privoznik <mprivozn@redhat.com>
Reviewed-by: Michal Privoznik <mprivozn@redhat.com>
src/qemu/qemu_agent.c
src/qemu/qemu_agent.h