Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
openeuler
libvirt
提交
0b7860ec
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看板
提交
0b7860ec
编写于
3月 03, 2009
作者:
D
Daniel P. Berrange
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Public API for sVirt support (James Morris & Dan Walsh)
上级
8f1912c5
变更
5
隐藏空白更改
内联
并排
Showing
5 changed file
with
145 addition
and
0 deletion
+145
-0
AUTHORS
AUTHORS
+2
-0
ChangeLog
ChangeLog
+7
-0
include/libvirt/libvirt.h
include/libvirt/libvirt.h
+67
-0
include/libvirt/libvirt.h.in
include/libvirt/libvirt.h.in
+67
-0
src/libvirt_public.syms
src/libvirt_public.syms
+2
-0
未找到文件。
AUTHORS
浏览文件 @
0b7860ec
...
...
@@ -60,6 +60,8 @@ Patches have also been contributed by:
Dave Allan <dallan@redhat.com>
Markus Armbruster <armbru@redhat.com>
Ryota Ozaki <ozaki.ryota@gmail.com>
James Morris <jmorris@namei.org>
Daniel J Walsh <dwalsh@redhat.com>
[....send patches to get your name here....]
...
...
ChangeLog
浏览文件 @
0b7860ec
Tue Mar 3 09:10:13 GMT 2009 Daniel P. Berrange <berrange@redhat.com>
Public API for sVirt support (James Morris & Dan Walsh)
* include/libvirt/libvirt.h.in, src/libvirt_public.syms: added
virNodeGetSecurityModel() and virDomainGetSecurityLabel() APIs
* include/libvirt/libvirt.h: Regenerated
Tue Mar 3 08:55:13 GMT 2009 Daniel P. Berrange <berrange@redhat.com>
Don't try to detach & reset PCI devices while running test
...
...
include/libvirt/libvirt.h
浏览文件 @
0b7860ec
...
...
@@ -110,6 +110,68 @@ typedef enum {
VIR_DOMAIN_NONE
=
0
}
virDomainCreateFlags
;
/**
* VIR_SECURITY_LABEL_BUFLEN:
*
* Macro providing the maximum length of the virSecurityLabel label string.
* Note that this value is based on that used by Labeled NFS.
*/
#define VIR_SECURITY_LABEL_BUFLEN (4096 + 1)
/**
* virSecurityLabel:
*
* a virSecurityLabel is a structure filled by virDomainGetSecurityLabel(),
* providing the security label and associated attributes for the specified
* domain.
*
*/
typedef
struct
_virSecurityLabel
{
char
label
[
VIR_SECURITY_LABEL_BUFLEN
];
/* security label string */
int
enforcing
;
/* 1 if security policy is being enforced for domain */
}
virSecurityLabel
;
/**
* virSecurityLabelPtr:
*
* a virSecurityLabelPtr is a pointer to a virSecurityLabel.
*/
typedef
virSecurityLabel
*
virSecurityLabelPtr
;
/**
* VIR_SECURITY_MODEL_BUFLEN:
*
* Macro providing the maximum length of the virSecurityModel model string.
*/
#define VIR_SECURITY_MODEL_BUFLEN (256 + 1)
/**
* VIR_SECURITY_DOI_BUFLEN:
*
* Macro providing the maximum length of the virSecurityModel doi string.
*/
#define VIR_SECURITY_DOI_BUFLEN (256 + 1)
/**
* virSecurityModel:
*
* a virSecurityModel is a structure filled by virNodeGetSecurityModel(),
* providing the per-hypervisor security model and DOI attributes for the
* specified domain.
*
*/
typedef
struct
_virSecurityModel
{
char
model
[
VIR_SECURITY_MODEL_BUFLEN
];
/* security model string */
char
doi
[
VIR_SECURITY_DOI_BUFLEN
];
/* domain of interpetation */
}
virSecurityModel
;
/**
* virSecurityModelPtr:
*
* a virSecurityModelPtr is a pointer to a virSecurityModel.
*/
typedef
virSecurityModel
*
virSecurityModelPtr
;
/**
* virNodeInfoPtr:
*
...
...
@@ -417,6 +479,9 @@ char * virConnectGetCapabilities (virConnectPtr conn);
unsigned
long
long
virNodeGetFreeMemory
(
virConnectPtr
conn
);
int
virNodeGetSecurityModel
(
virConnectPtr
conn
,
virSecurityModelPtr
secmodel
);
/*
* Gather list of running domains
*/
...
...
@@ -506,6 +571,8 @@ int virDomainSetMaxMemory (virDomainPtr domain,
int
virDomainSetMemory
(
virDomainPtr
domain
,
unsigned
long
memory
);
int
virDomainGetMaxVcpus
(
virDomainPtr
domain
);
int
virDomainGetSecurityLabel
(
virDomainPtr
domain
,
virSecurityLabelPtr
seclabel
);
/*
* XML domain description
...
...
include/libvirt/libvirt.h.in
浏览文件 @
0b7860ec
...
...
@@ -110,6 +110,68 @@ typedef enum {
VIR_DOMAIN_NONE
=
0
}
virDomainCreateFlags
;
/**
* VIR_SECURITY_LABEL_BUFLEN:
*
* Macro providing the maximum length of the virSecurityLabel label string.
* Note that this value is based on that used by Labeled NFS.
*/
#define VIR_SECURITY_LABEL_BUFLEN (4096 + 1)
/**
* virSecurityLabel:
*
* a virSecurityLabel is a structure filled by virDomainGetSecurityLabel(),
* providing the security label and associated attributes for the specified
* domain.
*
*/
typedef
struct
_virSecurityLabel
{
char
label
[
VIR_SECURITY_LABEL_BUFLEN
];
/* security label string */
int
enforcing
;
/* 1 if security policy is being enforced for domain */
}
virSecurityLabel
;
/**
* virSecurityLabelPtr:
*
* a virSecurityLabelPtr is a pointer to a virSecurityLabel.
*/
typedef
virSecurityLabel
*
virSecurityLabelPtr
;
/**
* VIR_SECURITY_MODEL_BUFLEN:
*
* Macro providing the maximum length of the virSecurityModel model string.
*/
#define VIR_SECURITY_MODEL_BUFLEN (256 + 1)
/**
* VIR_SECURITY_DOI_BUFLEN:
*
* Macro providing the maximum length of the virSecurityModel doi string.
*/
#define VIR_SECURITY_DOI_BUFLEN (256 + 1)
/**
* virSecurityModel:
*
* a virSecurityModel is a structure filled by virNodeGetSecurityModel(),
* providing the per-hypervisor security model and DOI attributes for the
* specified domain.
*
*/
typedef
struct
_virSecurityModel
{
char
model
[
VIR_SECURITY_MODEL_BUFLEN
];
/* security model string */
char
doi
[
VIR_SECURITY_DOI_BUFLEN
];
/* domain of interpetation */
}
virSecurityModel
;
/**
* virSecurityModelPtr:
*
* a virSecurityModelPtr is a pointer to a virSecurityModel.
*/
typedef
virSecurityModel
*
virSecurityModelPtr
;
/**
* virNodeInfoPtr:
*
...
...
@@ -417,6 +479,9 @@ char * virConnectGetCapabilities (virConnectPtr conn);
unsigned
long
long
virNodeGetFreeMemory
(
virConnectPtr
conn
);
int
virNodeGetSecurityModel
(
virConnectPtr
conn
,
virSecurityModelPtr
secmodel
);
/*
* Gather list of running domains
*/
...
...
@@ -506,6 +571,8 @@ int virDomainSetMaxMemory (virDomainPtr domain,
int
virDomainSetMemory
(
virDomainPtr
domain
,
unsigned
long
memory
);
int
virDomainGetMaxVcpus
(
virDomainPtr
domain
);
int
virDomainGetSecurityLabel
(
virDomainPtr
domain
,
virSecurityLabelPtr
seclabel
);
/*
* XML domain description
...
...
src/libvirt_public.syms
浏览文件 @
0b7860ec
...
...
@@ -254,6 +254,8 @@ LIBVIRT_0.6.1 {
virNodeDeviceDettach;
virNodeDeviceReAttach;
virNodeDeviceReset;
virDomainGetSecurityLabel;
virNodeGetSecurityModel;
} LIBVIRT_0.6.0;
# .... define new API here using predicted next version number ....
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录