Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
openeuler
libvirt
提交
360aaafc
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看板
体验新版 GitCode,发现更多精彩内容 >>
提交
360aaafc
编写于
9月 05, 2011
作者:
M
Marc-André Lureau
提交者:
Daniel Veillard
9月 05, 2011
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Default USB device is on slot 1 function 2
Fix qemuAssignDevicePCISlots() and the associated regression tests
上级
07901bf2
变更
5
隐藏空白更改
内联
并排
Showing
5 changed file
with
8 addition
and
5 deletion
+8
-5
src/qemu/qemu_command.c
src/qemu/qemu_command.c
+2
-1
tests/qemuxml2argvdata/qemuxml2argv-usb-controller.args
tests/qemuxml2argvdata/qemuxml2argv-usb-controller.args
+1
-1
tests/qemuxml2argvdata/qemuxml2argv-usb-controller.xml
tests/qemuxml2argvdata/qemuxml2argv-usb-controller.xml
+3
-1
tests/qemuxml2argvdata/qemuxml2argv-usb-hub.args
tests/qemuxml2argvdata/qemuxml2argv-usb-hub.args
+1
-1
tests/qemuxml2argvdata/qemuxml2argv-usb-ports.args
tests/qemuxml2argvdata/qemuxml2argv-usb-ports.args
+1
-1
未找到文件。
src/qemu/qemu_command.c
浏览文件 @
360aaafc
...
@@ -1156,7 +1156,8 @@ qemuAssignDevicePCISlots(virDomainDefPtr def, qemuDomainPCIAddressSetPtr addrs)
...
@@ -1156,7 +1156,8 @@ qemuAssignDevicePCISlots(virDomainDefPtr def, qemuDomainPCIAddressSetPtr addrs)
}
}
}
else
if
(
def
->
controllers
[
i
]
->
type
==
VIR_DOMAIN_CONTROLLER_TYPE_USB
&&
}
else
if
(
def
->
controllers
[
i
]
->
type
==
VIR_DOMAIN_CONTROLLER_TYPE_USB
&&
def
->
controllers
[
i
]
->
idx
==
0
&&
def
->
controllers
[
i
]
->
idx
==
0
&&
def
->
controllers
[
i
]
->
model
==
VIR_DOMAIN_CONTROLLER_MODEL_USB_PIIX3_UHCI
)
{
(
def
->
controllers
[
i
]
->
model
==
VIR_DOMAIN_CONTROLLER_MODEL_USB_PIIX3_UHCI
||
def
->
controllers
[
i
]
->
model
==
-
1
))
{
if
(
def
->
controllers
[
i
]
->
info
.
type
==
VIR_DOMAIN_DEVICE_ADDRESS_TYPE_PCI
)
{
if
(
def
->
controllers
[
i
]
->
info
.
type
==
VIR_DOMAIN_DEVICE_ADDRESS_TYPE_PCI
)
{
if
(
def
->
controllers
[
i
]
->
info
.
addr
.
pci
.
domain
!=
0
||
if
(
def
->
controllers
[
i
]
->
info
.
addr
.
pci
.
domain
!=
0
||
def
->
controllers
[
i
]
->
info
.
addr
.
pci
.
bus
!=
0
||
def
->
controllers
[
i
]
->
info
.
addr
.
pci
.
bus
!=
0
||
...
...
tests/qemuxml2argvdata/qemuxml2argv-usb-controller.args
浏览文件 @
360aaafc
LC_ALL=C PATH=/bin HOME=/home/test USER=test LOGNAME=test /usr/bin/qemu -S -M pc -m 214 -smp 1 -nographic -nodefconfig -nodefaults -chardev socket,id=charmonitor,path=/tmp/test-monitor,server,nowait -mon chardev=charmonitor,id=monitor,mode=readline -no-acpi -boot c -usb -device virtio-balloon-pci,id=balloon0,bus=pci.0,addr=0x
4
LC_ALL=C PATH=/bin HOME=/home/test USER=test LOGNAME=test /usr/bin/qemu -S -M pc -m 214 -smp 1 -nographic -nodefconfig -nodefaults -chardev socket,id=charmonitor,path=/tmp/test-monitor,server,nowait -mon chardev=charmonitor,id=monitor,mode=readline -no-acpi -boot c -usb -device virtio-balloon-pci,id=balloon0,bus=pci.0,addr=0x
3
tests/qemuxml2argvdata/qemuxml2argv-usb-controller.xml
浏览文件 @
360aaafc
...
@@ -10,7 +10,9 @@
...
@@ -10,7 +10,9 @@
</os>
</os>
<devices>
<devices>
<emulator>
/usr/bin/qemu
</emulator>
<emulator>
/usr/bin/qemu
</emulator>
<controller
type=
'usb'
index=
'0'
/>
<controller
type=
'usb'
index=
'0'
>
<address
type=
'pci'
domain=
'0x0000'
bus=
'0x00'
slot=
'0x01'
function=
'0x2'
/>
</controller>
<memballoon
model=
'virtio'
/>
<memballoon
model=
'virtio'
/>
</devices>
</devices>
</domain>
</domain>
tests/qemuxml2argvdata/qemuxml2argv-usb-hub.args
浏览文件 @
360aaafc
LC_ALL=C PATH=/bin HOME=/home/test USER=test LOGNAME=test /usr/bin/qemu -S -M pc -m 214 -smp 1 -nographic -nodefconfig -nodefaults -chardev socket,id=charmonitor,path=/tmp/test-monitor,server,nowait -mon chardev=charmonitor,id=monitor,mode=readline -no-acpi -boot c -usb -device usb-hub,id=hub0,bus=usb.0,port=1 -device virtio-balloon-pci,id=balloon0,bus=pci.0,addr=0x
4
LC_ALL=C PATH=/bin HOME=/home/test USER=test LOGNAME=test /usr/bin/qemu -S -M pc -m 214 -smp 1 -nographic -nodefconfig -nodefaults -chardev socket,id=charmonitor,path=/tmp/test-monitor,server,nowait -mon chardev=charmonitor,id=monitor,mode=readline -no-acpi -boot c -usb -device usb-hub,id=hub0,bus=usb.0,port=1 -device virtio-balloon-pci,id=balloon0,bus=pci.0,addr=0x
3
tests/qemuxml2argvdata/qemuxml2argv-usb-ports.args
浏览文件 @
360aaafc
LC_ALL=C PATH=/bin HOME=/home/test USER=test LOGNAME=test /usr/bin/qemu -S -M pc -m 214 -smp 1 -nographic -nodefconfig -nodefaults -chardev socket,id=charmonitor,path=/tmp/test-monitor,server,nowait -mon chardev=charmonitor,id=monitor,mode=readline -no-acpi -boot c -usb -device usb-hub,id=hub0,bus=usb.0,port=1 -device usb-hub,id=hub1,bus=usb.0,port=1.2 -device usb-mouse,id=input0,bus=usb.0,port=1.1 -device usb-mouse,id=input1,bus=usb.0,port=1.2.1 -device usb-mouse,id=input2,bus=usb.0,port=1.2.2 -device virtio-balloon-pci,id=balloon0,bus=pci.0,addr=0x
4
LC_ALL=C PATH=/bin HOME=/home/test USER=test LOGNAME=test /usr/bin/qemu -S -M pc -m 214 -smp 1 -nographic -nodefconfig -nodefaults -chardev socket,id=charmonitor,path=/tmp/test-monitor,server,nowait -mon chardev=charmonitor,id=monitor,mode=readline -no-acpi -boot c -usb -device usb-hub,id=hub0,bus=usb.0,port=1 -device usb-hub,id=hub1,bus=usb.0,port=1.2 -device usb-mouse,id=input0,bus=usb.0,port=1.1 -device usb-mouse,id=input1,bus=usb.0,port=1.2.1 -device usb-mouse,id=input2,bus=usb.0,port=1.2.2 -device virtio-balloon-pci,id=balloon0,bus=pci.0,addr=0x
3
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录