• P
    xen: introduce 'xen-block', 'xen-disk' and 'xen-cdrom' · 1a72d9ae
    Paul Durrant 提交于
    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.htmlSigned-off-by: NPaul Durrant <paul.durrant@citrix.com>
    Reviewed-by: NAnthony Perard <anthony.perard@citrix.com>
    Signed-off-by: NAnthony PERARD <anthony.perard@citrix.com>
    1a72d9ae
trace-events 11.2 KB