Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
openeuler
libvirt
提交
329f907b
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看板
提交
329f907b
编写于
9月 02, 2011
作者:
M
Marc-André Lureau
提交者:
Daniel Veillard
9月 02, 2011
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Add various USB devices QEMU_CAPS
上级
c554f6e1
变更
3
隐藏空白更改
内联
并排
Showing
3 changed file
with
45 addition
and
4 deletion
+45
-4
src/qemu/qemu_capabilities.c
src/qemu/qemu_capabilities.c
+26
-1
src/qemu/qemu_capabilities.h
src/qemu/qemu_capabilities.h
+8
-0
tests/qemuhelptest.c
tests/qemuhelptest.c
+11
-3
未找到文件。
src/qemu/qemu_capabilities.c
浏览文件 @
329f907b
...
...
@@ -125,7 +125,16 @@ VIR_ENUM_IMPL(qemuCaps, QEMU_CAPS_LAST,
"sga"
,
"virtio-blk-pci.event_idx"
,
"virtio-net-pci.event_idx"
,
"cache-directsync"
,
"cache-directsync"
,
/* 65 */
"piix3-usb-uhci"
,
"piix4-usb-uhci"
,
"usb-ehci"
,
"ich9-usb-ehci1"
,
"vt82c686b-usb-uhci"
,
/* 70 */
"pci-ohci"
,
"usb-redir"
,
);
struct
qemu_feature_flags
{
...
...
@@ -1200,6 +1209,22 @@ qemuCapsParseDeviceStr(const char *str, virBitmapPtr flags)
qemuCapsSet
(
flags
,
QEMU_CAPS_CCID_EMULATED
);
if
(
strstr
(
str
,
"name
\"
ccid-card-passthru
\"
"
))
qemuCapsSet
(
flags
,
QEMU_CAPS_CCID_PASSTHRU
);
if
(
strstr
(
str
,
"name
\"
piix3-usb-uhci
\"
"
))
qemuCapsSet
(
flags
,
QEMU_CAPS_PIIX3_USB_UHCI
);
if
(
strstr
(
str
,
"name
\"
piix4-usb-uhci
\"
"
))
qemuCapsSet
(
flags
,
QEMU_CAPS_PIIX4_USB_UHCI
);
if
(
strstr
(
str
,
"name
\"
usb-ehci
\"
"
))
qemuCapsSet
(
flags
,
QEMU_CAPS_USB_EHCI
);
if
(
strstr
(
str
,
"name
\"
ich9-usb-ehci1
\"
"
))
qemuCapsSet
(
flags
,
QEMU_CAPS_ICH9_USB_EHCI1
);
if
(
strstr
(
str
,
"name
\"
vt82c686b-usb-uhci
\"
"
))
qemuCapsSet
(
flags
,
QEMU_CAPS_VT82C686B_USB_UHCI
);
if
(
strstr
(
str
,
"name
\"
pci-ohci
\"
"
))
qemuCapsSet
(
flags
,
QEMU_CAPS_PCI_OHCI
);
if
(
strstr
(
str
,
"name
\"
usb-redir
\"
"
))
qemuCapsSet
(
flags
,
QEMU_CAPS_USB_REDIR
);
/* Prefer -chardev spicevmc (detected earlier) over -device spicevmc */
if
(
!
qemuCapsGet
(
flags
,
QEMU_CAPS_CHARDEV_SPICEVMC
)
&&
strstr
(
str
,
"name
\"
spicevmc
\"
"
))
...
...
src/qemu/qemu_capabilities.h
浏览文件 @
329f907b
...
...
@@ -102,6 +102,14 @@ enum qemuCapsFlags {
QEMU_CAPS_VIRTIO_NET_EVENT_IDX
=
64
,
/* virtio-net-pci.event_idx */
QEMU_CAPS_DRIVE_CACHE_DIRECTSYNC
=
65
,
/* Is cache=directsync supported? */
QEMU_CAPS_PIIX3_USB_UHCI
=
65
,
/* -device piix3-usb-uhci */
QEMU_CAPS_PIIX4_USB_UHCI
=
66
,
/* -device piix4-usb-uhci */
QEMU_CAPS_USB_EHCI
=
67
,
/* -device usb-ehci */
QEMU_CAPS_ICH9_USB_EHCI1
=
68
,
/* -device ich9-usb-ehci1 and companions */
QEMU_CAPS_VT82C686B_USB_UHCI
=
69
,
/* -device vt82c686b-usb-uhci */
QEMU_CAPS_PCI_OHCI
=
70
,
/* -device pci-ohci */
QEMU_CAPS_USB_REDIR
=
71
,
/* -device usb-redir */
QEMU_CAPS_LAST
,
/* this must always be the last item */
};
...
...
tests/qemuhelptest.c
浏览文件 @
329f907b
...
...
@@ -347,7 +347,9 @@ mymain(void)
QEMU_CAPS_VGA_NONE
,
QEMU_CAPS_MIGRATE_QEMU_FD
,
QEMU_CAPS_DRIVE_AIO
,
QEMU_CAPS_DEVICE_SPICEVMC
);
QEMU_CAPS_DEVICE_SPICEVMC
,
QEMU_CAPS_PIIX3_USB_UHCI
,
QEMU_CAPS_PIIX4_USB_UHCI
);
DO_TEST
(
"qemu-kvm-0.12.3"
,
12003
,
1
,
0
,
QEMU_CAPS_VNC_COLON
,
QEMU_CAPS_NO_REBOOT
,
...
...
@@ -431,7 +433,11 @@ mymain(void)
QEMU_CAPS_MIGRATE_QEMU_FD
,
QEMU_CAPS_DRIVE_AIO
,
QEMU_CAPS_DEVICE_SPICEVMC
,
QEMU_CAPS_PCI_MULTIFUNCTION
);
QEMU_CAPS_PCI_MULTIFUNCTION
,
QEMU_CAPS_PIIX3_USB_UHCI
,
QEMU_CAPS_PIIX4_USB_UHCI
,
QEMU_CAPS_VT82C686B_USB_UHCI
,
QEMU_CAPS_PCI_OHCI
);
DO_TEST
(
"qemu-kvm-0.12.1.2-rhel61"
,
12001
,
1
,
0
,
QEMU_CAPS_VNC_COLON
,
QEMU_CAPS_NO_REBOOT
,
...
...
@@ -476,7 +482,9 @@ mymain(void)
QEMU_CAPS_CHARDEV_SPICEVMC
,
QEMU_CAPS_DEVICE_QXL_VGA
,
QEMU_CAPS_VIRTIO_TX_ALG
,
QEMU_CAPS_VIRTIO_IOEVENTFD
);
QEMU_CAPS_VIRTIO_IOEVENTFD
,
QEMU_CAPS_PIIX3_USB_UHCI
,
QEMU_CAPS_PIIX4_USB_UHCI
);
return
ret
==
0
?
EXIT_SUCCESS
:
EXIT_FAILURE
;
}
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录