Signed off by: Sean Dague xm.pod.1 | 58 ++++++++++++++++++++++++++++++++++++++++++++++++++++++---- 1 files changed, 54 insertions(+), 4 deletions(-) # HG changeset patch # User sean@xxxxxxxxx # Node ID 1607effa1bc6a56abc035ca7d3168f982d0d270d # Parent 1f243458ace6339bbab8d246ee5904deff924910 added block device content, including finding a few more bugs in xen diff -r 1f243458ace6 -r 1607effa1bc6 docs/man/xm.pod.1 --- a/docs/man/xm.pod.1 Wed Nov 16 17:55:57 2005 -0500 +++ b/docs/man/xm.pod.1 Thu Nov 17 14:50:45 2005 -0500 @@ -626,12 +626,62 @@ =item B I I I I I<[bedomain-id]> -Create a new virtual block device +Create a new virtual block device. This will trigger a hotplug event +for the guest. + +B + +=over 4 + +=item I + +The domain id of the guest domain that the device will be attached to. + +=item I + +The device in the backend domain (usually domain 0) to be exported. +This can be specified as a physical partition (phy:sda7) or as a file +mounted as loopback (file://path/to/loop.iso). + +=item I + +How the device should be presented to the guest domain. It can be +specified as either a symbolic name, such as /dev/hdc, for common +devices, or by device id, such as 0x1400 (/dev/hdc device id in hex). + +=item I + +The access mode for the device from the guest domain. Supported modes +are I (read/write) or I (read-only). + +=item I + +The back end domain hosting the device. This defaults to domain 0. + +=back + +B + +=over 4 + +=item I + +xm block-attach guestdomain file://path/to/dsl-2.0RC2.iso /dev/hdc ro + +This will mount the dsl iso as /dev/hdc in the guestdomain as a read +only device. This will probably not be detected as a cdrom by the +guest, but mounting /dev/hdc manually will work. + +=back =item B I I -Destroy a domain's virtual block device. DevId may either be a device -ID or the device name as mounted in the guest. +Destroy a domain's virtual block device. devid B be the device +id given to the device by domain 0. You will need to run I to determine that number. + +FIXME: this is currently B. Even though a block device is +removed from domU, it appears to still be allocated in the domain 0. =item B I @@ -722,7 +772,7 @@ =head1 SEE ALSO -B(5) +B(5), B(1) BVT scheduling paper: K.J. Duda and D.R. Cheriton. Borrowed Virtual Time (BVT) scheduling: supporting latency-sensitive threads in a