Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
openeuler
libvirt
提交
a95c9406
L
libvirt
项目概览
openeuler
/
libvirt
通知
3
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
L
libvirt
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
提交
a95c9406
编写于
11月 05, 2012
作者:
M
Michal Privoznik
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
tests: Add test for controller order
上级
0f720ab3
变更
3
隐藏空白更改
内联
并排
Showing
3 changed file
with
123 addition
and
0 deletion
+123
-0
tests/qemuxml2argvdata/qemuxml2argv-controller-order.args
tests/qemuxml2argvdata/qemuxml2argv-controller-order.args
+28
-0
tests/qemuxml2argvdata/qemuxml2argv-controller-order.xml
tests/qemuxml2argvdata/qemuxml2argv-controller-order.xml
+89
-0
tests/qemuxml2argvtest.c
tests/qemuxml2argvtest.c
+6
-0
未找到文件。
tests/qemuxml2argvdata/qemuxml2argv-controller-order.args
0 → 100644
浏览文件 @
a95c9406
LC_ALL=C PATH=/bin HOME=/home/test USER=test LOGNAME=test \
QEMU_AUDIO_DRV=spice /usr/libexec/qemu-kvm -S -M rhel6.1.0 -enable-kvm -m \
4096 -smp 4 -nodefaults -chardev \
socket,id=charmonitor,path=/tmp/test-monitor,server,nowait -mon \
chardev=charmonitor,id=monitor,mode=readline -boot order=cna,menu=off \
-device piix3-usb-uhci,id=usb,bus=pci.0,addr=0x1.0x2 -device \
virtio-serial-pci,id=virtio-serial0,bus=pci.0,addr=0x7 -device \
usb-ccid,id=ccid0 -drive \
file=/tmp/fdr.img,if=none,id=drive-virtio-disk0,cache=off,aio=native \
-device \
virtio-blk-pci,bus=pci.0,addr=0x5,drive=drive-virtio-disk0,id=virtio-disk0 \
-drive \
file=/tmp/Fedora-17-x86_64-Live-Desktop.iso,if=none,media=cdrom,id=drive-ide0-1-0 \
-device ide-drive,bus=ide.1,unit=0,drive=drive-ide0-1-0,id=ide0-1-0 -device \
virtio-net-pci,vlan=0,id=net0,mac=52:54:00:4d:4b:19,bus=pci.0,addr=0x3 -net \
user,vlan=0,name=hostnet0 -chardev \
spicevmc,id=charsmartcard0,name=smartcard -device \
ccid-card-passthru,chardev=charsmartcard0,id=smartcard0,bus=ccid0.0 \
-chardev pty,id=charserial0 -device \
isa-serial,chardev=charserial0,id=serial0 -chardev \
spicevmc,id=charchannel0,name=vdagent -device \
virtserialport,bus=virtio-serial0.0,nr=1,chardev=charchannel0,id=channel0,name=com.redhat.spice.0 \
-device usb-tablet,id=input0 -spice \
port=0,addr=0.0.0.0,x509-dir=/etc/pki/libvirt-spice -device \
intel-hda,id=sound0,bus=pci.0,addr=0x4 -device \
hda-duplex,id=sound0-codec0,bus=sound0.0,cad=0 -device \
usb-host,hostbus=14,hostaddr=6,id=hostdev0 -device \
virtio-balloon-pci,id=balloon0,bus=pci.0,addr=0x6
tests/qemuxml2argvdata/qemuxml2argv-controller-order.xml
0 → 100644
浏览文件 @
a95c9406
<domain
type=
'kvm'
>
<name>
fdr
</name>
<uuid>
d091ea82-29e6-2e34-3005-f02617b36e87
</uuid>
<memory
unit=
'KiB'
>
4194304
</memory>
<currentMemory
unit=
'KiB'
>
4194304
</currentMemory>
<vcpu
placement=
'static'
>
4
</vcpu>
<os>
<type
arch=
'x86_64'
machine=
'rhel6.1.0'
>
hvm
</type>
<boot
dev=
'hd'
/>
<boot
dev=
'network'
/>
<boot
dev=
'fd'
/>
<bootmenu
enable=
'no'
/>
</os>
<features>
<acpi/>
<apic/>
<pae/>
</features>
<clock
offset=
'utc'
/>
<on_poweroff>
destroy
</on_poweroff>
<on_reboot>
restart
</on_reboot>
<on_crash>
restart
</on_crash>
<devices>
<emulator>
/usr/libexec/qemu-kvm
</emulator>
<disk
type=
'file'
device=
'disk'
>
<driver
name=
'qemu'
type=
'raw'
cache=
'none'
io=
'native'
/>
<source
file=
'/tmp/fdr.img'
/>
<target
dev=
'vda'
bus=
'virtio'
/>
<shareable/>
<address
type=
'pci'
domain=
'0x0000'
bus=
'0x00'
slot=
'0x05'
function=
'0x0'
/>
</disk>
<disk
type=
'file'
device=
'cdrom'
>
<driver
name=
'qemu'
type=
'raw'
/>
<source
file=
'/tmp/Fedora-17-x86_64-Live-Desktop.iso'
/>
<target
dev=
'hdc'
bus=
'ide'
/>
<readonly/>
<address
type=
'drive'
controller=
'0'
bus=
'1'
target=
'0'
unit=
'0'
/>
</disk>
<controller
type=
'ide'
index=
'0'
>
<address
type=
'pci'
domain=
'0x0000'
bus=
'0x00'
slot=
'0x01'
function=
'0x1'
/>
</controller>
<controller
type=
'virtio-serial'
index=
'0'
>
<address
type=
'pci'
domain=
'0x0000'
bus=
'0x00'
slot=
'0x07'
function=
'0x0'
/>
</controller>
<controller
type=
'usb'
index=
'0'
>
<address
type=
'pci'
domain=
'0x0000'
bus=
'0x00'
slot=
'0x01'
function=
'0x2'
/>
</controller>
<controller
type=
'ccid'
index=
'0'
/>
<interface
type=
'user'
>
<mac
address=
'52:54:00:4d:4b:19'
/>
<model
type=
'virtio'
/>
<address
type=
'pci'
domain=
'0x0000'
bus=
'0x00'
slot=
'0x03'
function=
'0x0'
/>
</interface>
<smartcard
mode=
'passthrough'
type=
'spicevmc'
>
<address
type=
'ccid'
controller=
'0'
slot=
'0'
/>
</smartcard>
<serial
type=
'pty'
>
<target
port=
'0'
/>
</serial>
<console
type=
'pty'
>
<target
type=
'serial'
port=
'0'
/>
</console>
<channel
type=
'spicevmc'
>
<target
type=
'virtio'
name=
'com.redhat.spice.0'
/>
<address
type=
'virtio-serial'
controller=
'0'
bus=
'0'
port=
'1'
/>
</channel>
<input
type=
'tablet'
bus=
'usb'
/>
<input
type=
'mouse'
bus=
'ps2'
/>
<graphics
type=
'spice'
autoport=
'yes'
listen=
'0.0.0.0'
>
<listen
type=
'address'
address=
'0.0.0.0'
/>
</graphics>
<sound
model=
'ich6'
>
<address
type=
'pci'
domain=
'0x0000'
bus=
'0x00'
slot=
'0x04'
function=
'0x0'
/>
</sound>
<video>
<model
type=
'cirrus'
vram=
'9216'
heads=
'1'
/>
<address
type=
'pci'
domain=
'0x0000'
bus=
'0x00'
slot=
'0x02'
function=
'0x0'
/>
</video>
<hostdev
mode=
'subsystem'
type=
'usb'
managed=
'yes'
>
<source>
<address
bus=
'14'
device=
'6'
/>
</source>
</hostdev>
<memballoon
model=
'virtio'
>
<address
type=
'pci'
domain=
'0x0000'
bus=
'0x00'
slot=
'0x06'
function=
'0x0'
/>
</memballoon>
</devices>
<seclabel
type=
'dynamic'
model=
'selinux'
relabel=
'yes'
/>
</domain>
tests/qemuxml2argvtest.c
浏览文件 @
a95c9406
...
...
@@ -408,6 +408,12 @@ mymain(void)
DO_TEST
(
"cpu-eoi-disabled"
,
QEMU_CAPS_ENABLE_KVM
);
DO_TEST
(
"cpu-eoi-enabled"
,
QEMU_CAPS_ENABLE_KVM
);
DO_TEST
(
"controller-order"
,
QEMU_CAPS_DRIVE
,
QEMU_CAPS_PCIDEVICE
,
QEMU_CAPS_KVM
,
QEMU_CAPS_DEVICE
,
QEMU_CAPS_ENABLE_KVM
,
QEMU_CAPS_BOOT_MENU
,
QEMU_CAPS_PIIX3_USB_UHCI
,
QEMU_CAPS_PCI_MULTIFUNCTION
,
QEMU_CAPS_DRIVE_AIO
,
QEMU_CAPS_CCID_PASSTHRU
,
QEMU_CAPS_CHARDEV
,
QEMU_CAPS_CHARDEV_SPICEVMC
,
QEMU_CAPS_SPICE
,
QEMU_CAPS_HDA_DUPLEX
);
DO_TEST
(
"eoi-disabled"
,
NONE
);
DO_TEST
(
"eoi-enabled"
,
NONE
);
DO_TEST
(
"kvmclock+eoi-disabled"
,
QEMU_CAPS_ENABLE_KVM
);
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录