Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
openeuler
libvirt
提交
9fda2f5c
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看板
提交
9fda2f5c
编写于
4月 10, 2013
作者:
O
Osier Yang
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Cleanup: Change datatype of hostdev->managed to boolean
上级
2fff3801
变更
7
隐藏空白更改
内联
并排
Showing
7 changed file
with
10 addition
and
10 deletion
+10
-10
src/conf/domain_conf.c
src/conf/domain_conf.c
+1
-1
src/conf/domain_conf.h
src/conf/domain_conf.h
+1
-1
src/qemu/qemu_command.c
src/qemu/qemu_command.c
+2
-2
src/util/virpci.c
src/util/virpci.c
+3
-3
src/util/virpci.h
src/util/virpci.h
+1
-1
src/xenxs/xen_sxpr.c
src/xenxs/xen_sxpr.c
+1
-1
src/xenxs/xen_xm.c
src/xenxs/xen_xm.c
+1
-1
未找到文件。
src/conf/domain_conf.c
浏览文件 @
9fda2f5c
...
...
@@ -3569,7 +3569,7 @@ virDomainHostdevDefParseXMLSubsys(xmlNodePtr node,
*/
if ((managed = virXMLPropString(node, "managed"))!= NULL) {
if (STREQ(managed, "yes"))
def->managed =
1
;
def->managed =
true
;
}
/* @type is passed in from the caller rather than read from the
...
...
src/conf/domain_conf.h
浏览文件 @
9fda2f5c
...
...
@@ -435,7 +435,7 @@ struct _virDomainHostdevDef {
virDomainDeviceDef
parent
;
/* higher level Def containing this */
int
mode
;
/* enum virDomainHostdevMode */
int
startupPolicy
;
/* enum virDomainStartupPolicy */
unsigned
int
managed
:
1
;
bool
managed
;
unsigned
int
missing
:
1
;
union
{
virDomainHostdevSubsys
subsys
;
...
...
src/qemu/qemu_command.c
浏览文件 @
9fda2f5c
...
...
@@ -8558,7 +8558,7 @@ qemuParseCommandLinePCI(const char *val)
}
def
->
mode
=
VIR_DOMAIN_HOSTDEV_MODE_SUBSYS
;
def
->
managed
=
1
;
def
->
managed
=
true
;
def
->
source
.
subsys
.
type
=
VIR_DOMAIN_HOSTDEV_SUBSYS_TYPE_PCI
;
def
->
source
.
subsys
.
u
.
pci
.
bus
=
bus
;
def
->
source
.
subsys
.
u
.
pci
.
slot
=
slot
;
...
...
@@ -8619,7 +8619,7 @@ qemuParseCommandLineUSB(const char *val)
}
def
->
mode
=
VIR_DOMAIN_HOSTDEV_MODE_SUBSYS
;
def
->
managed
=
0
;
def
->
managed
=
false
;
def
->
source
.
subsys
.
type
=
VIR_DOMAIN_HOSTDEV_SUBSYS_TYPE_USB
;
if
(
*
end
==
'.'
)
{
def
->
source
.
subsys
.
u
.
usb
.
bus
=
first
;
...
...
src/util/virpci.c
浏览文件 @
9fda2f5c
...
...
@@ -65,7 +65,7 @@ struct _virPCIDevice {
unsigned
pci_pm_cap_pos
;
unsigned
has_flr
:
1
;
unsigned
has_pm_reset
:
1
;
unsigned
managed
:
1
;
bool
managed
;
/* used by reattach function */
unsigned
unbind_from_stub
:
1
;
...
...
@@ -1453,9 +1453,9 @@ virPCIDeviceGetName(virPCIDevicePtr dev)
return
dev
->
name
;
}
void
virPCIDeviceSetManaged
(
virPCIDevicePtr
dev
,
unsigned
managed
)
void
virPCIDeviceSetManaged
(
virPCIDevicePtr
dev
,
bool
managed
)
{
dev
->
managed
=
!!
managed
;
dev
->
managed
=
managed
;
}
unsigned
virPCIDeviceGetManaged
(
virPCIDevicePtr
dev
)
...
...
src/util/virpci.h
浏览文件 @
9fda2f5c
...
...
@@ -61,7 +61,7 @@ int virPCIDeviceReset(virPCIDevicePtr dev,
virPCIDeviceListPtr
inactiveDevs
);
void
virPCIDeviceSetManaged
(
virPCIDevice
*
dev
,
unsigned
managed
);
bool
managed
);
unsigned
virPCIDeviceGetManaged
(
virPCIDevice
*
dev
);
void
virPCIDeviceSetUsedBy
(
virPCIDevice
*
dev
,
const
char
*
used_by
);
...
...
src/xenxs/xen_sxpr.c
浏览文件 @
9fda2f5c
...
...
@@ -1087,7 +1087,7 @@ xenParseSxprPCI(virDomainDefPtr def,
goto
error
;
dev
->
mode
=
VIR_DOMAIN_HOSTDEV_MODE_SUBSYS
;
dev
->
managed
=
0
;
dev
->
managed
=
false
;
dev
->
source
.
subsys
.
type
=
VIR_DOMAIN_HOSTDEV_SUBSYS_TYPE_PCI
;
dev
->
source
.
subsys
.
u
.
pci
.
domain
=
domainID
;
dev
->
source
.
subsys
.
u
.
pci
.
bus
=
busID
;
...
...
src/xenxs/xen_xm.c
浏览文件 @
9fda2f5c
...
...
@@ -875,7 +875,7 @@ xenParseXM(virConfPtr conf, int xendConfigVersion,
if
(
!
(
hostdev
=
virDomainHostdevDefAlloc
()))
goto
cleanup
;
hostdev
->
managed
=
0
;
hostdev
->
managed
=
false
;
hostdev
->
source
.
subsys
.
type
=
VIR_DOMAIN_HOSTDEV_SUBSYS_TYPE_PCI
;
hostdev
->
source
.
subsys
.
u
.
pci
.
domain
=
domainID
;
hostdev
->
source
.
subsys
.
u
.
pci
.
bus
=
busID
;
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录