]> git.proxmox.com Git - mirror_qemu.git/commit
xen: introduce 'xen-block', 'xen-disk' and 'xen-cdrom'
authorPaul Durrant <paul.durrant@citrix.com>
Tue, 8 Jan 2019 14:48:48 +0000 (14:48 +0000)
committerAnthony PERARD <anthony.perard@citrix.com>
Mon, 14 Jan 2019 13:45:40 +0000 (13:45 +0000)
commit1a72d9ae31517b2f83ec7923c820daf1887fde50
tree93fc52be60c041090a3da449c312c74030a52454
parent108f7bba15d6ee4136b543fc22005921e7ce4048
xen: introduce 'xen-block', 'xen-disk' and 'xen-cdrom'

This patch adds new XenDevice-s: 'xen-disk' and 'xen-cdrom', both derived
from a common 'xen-block' parent type. These will eventually replace the
'xen_disk' (note the underscore rather than hyphen) legacy PV backend but
it is illustrative to build up the implementation incrementally, along with
the XenBus/XenDevice framework. Subsequent patches will therefore add to
these devices' implementation as new features are added to the framework.

After this patch has been applied it is possible to instantiate new
'xen-disk' or 'xen-cdrom' devices with a single 'vdev' parameter, which
accepts values adhering to the Xen VBD naming scheme [1]. For example, a
command-line instantiation of a xen-disk can be done with an argument
similar to the following:

-device xen-disk,vdev=hda

The implementation of the vdev parameter formulates the appropriate VBD
number for use in the PV protocol.

[1] https://xenbits.xen.org/docs/unstable/man/xen-vbd-interface.7.html

Signed-off-by: Paul Durrant <paul.durrant@citrix.com>
Reviewed-by: Anthony Perard <anthony.perard@citrix.com>
Signed-off-by: Anthony PERARD <anthony.perard@citrix.com>
MAINTAINERS
hw/block/Makefile.objs
hw/block/trace-events
hw/block/xen-block.c [new file with mode: 0644]
include/hw/xen/xen-block.h [new file with mode: 0644]