diff options
author | Daniel P. Berrange <berrange@redhat.com> | 2009-04-03 12:38:52 +0000 |
---|---|---|
committer | Daniel P. Berrange <berrange@redhat.com> | 2009-04-03 12:38:52 +0000 |
commit | e4073623a6684fbd512bdbac8f58432f3a699906 (patch) | |
tree | 886f8936f8940c0b4655a25adbb5f6a14794da6c /tests/sexpr2xmldata | |
parent | Improve security label error reporting & verification (Dan Walsh) (diff) | |
download | libvirt-e4073623a6684fbd512bdbac8f58432f3a699906.tar.gz libvirt-e4073623a6684fbd512bdbac8f58432f3a699906.tar.bz2 libvirt-e4073623a6684fbd512bdbac8f58432f3a699906.zip |
Support PCI passthrough for Xen
Diffstat (limited to 'tests/sexpr2xmldata')
-rw-r--r-- | tests/sexpr2xmldata/sexpr2xml-pci-devs.sexpr | 2 | ||||
-rw-r--r-- | tests/sexpr2xmldata/sexpr2xml-pci-devs.xml | 37 |
2 files changed, 39 insertions, 0 deletions
diff --git a/tests/sexpr2xmldata/sexpr2xml-pci-devs.sexpr b/tests/sexpr2xmldata/sexpr2xml-pci-devs.sexpr new file mode 100644 index 000000000..cc16e06e0 --- /dev/null +++ b/tests/sexpr2xmldata/sexpr2xml-pci-devs.sexpr @@ -0,0 +1,2 @@ +(domain (domid 6)(name 'pvtest')(memory 420)(maxmem 420)(vcpus 2)(uuid '596a5d2171f48fb2e068e2386a5c413e')(on_poweroff 'destroy')(on_reboot 'destroy')(on_crash 'destroy')(image (linux (kernel '/var/lib/xen/vmlinuz.2Dn2YT')(ramdisk '/var/lib/xen/initrd.img.0u-Vhq')(args ' method=http://download.fedora.devel.redhat.com/pub/fedora/linux/core/test/5.91/x86_64/os ')))(device (pci (backend 0)(dev (domain 0x0001) (bus 0x0c) (slot 0x1b) (func 0x2))(dev (domain 0x0000) (bus 0x01) (slot 0x13) (func 0x0))))(device (vbd (dev 'xvda')(uname 'phy:/dev/MainVG/GuestVG')(mode 'w')))) + diff --git a/tests/sexpr2xmldata/sexpr2xml-pci-devs.xml b/tests/sexpr2xmldata/sexpr2xml-pci-devs.xml new file mode 100644 index 000000000..40e12c014 --- /dev/null +++ b/tests/sexpr2xmldata/sexpr2xml-pci-devs.xml @@ -0,0 +1,37 @@ +<domain type='xen' id='6'> + <name>pvtest</name> + <uuid>596a5d21-71f4-8fb2-e068-e2386a5c413e</uuid> + <memory>430080</memory> + <currentMemory>430080</currentMemory> + <vcpu>2</vcpu> + <os> + <type>linux</type> + <kernel>/var/lib/xen/vmlinuz.2Dn2YT</kernel> + <initrd>/var/lib/xen/initrd.img.0u-Vhq</initrd> + <cmdline> method=http://download.fedora.devel.redhat.com/pub/fedora/linux/core/test/5.91/x86_64/os </cmdline> + </os> + <clock offset='utc'/> + <on_poweroff>destroy</on_poweroff> + <on_reboot>destroy</on_reboot> + <on_crash>destroy</on_crash> + <devices> + <disk type='block' device='disk'> + <driver name='phy'/> + <source dev='/dev/MainVG/GuestVG'/> + <target dev='xvda' bus='xen'/> + </disk> + <console type='pty'> + <target port='0'/> + </console> + <hostdev mode='subsystem' type='pci' managed='no'> + <source> + <address domain='0x0001' bus='0x0c' slot='0x1b' function='0x2'/> + </source> + </hostdev> + <hostdev mode='subsystem' type='pci' managed='no'> + <source> + <address domain='0x0000' bus='0x01' slot='0x13' function='0x0'/> + </source> + </hostdev> + </devices> +</domain> |