Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
openeuler
libvirt
提交
e193b5dd
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看板
提交
e193b5dd
编写于
5月 22, 2008
作者:
D
Daniel P. Berrange
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Apply CPU pinning at startup for QEMU guests
上级
6d372bd4
变更
40
隐藏空白更改
内联
并排
Showing
40 changed file
with
153 addition
and
64 deletion
+153
-64
ChangeLog
ChangeLog
+10
-0
src/qemu_conf.c
src/qemu_conf.c
+43
-5
src/qemu_conf.h
src/qemu_conf.h
+3
-0
src/qemu_driver.c
src/qemu_driver.c
+57
-22
src/xml.c
src/xml.c
+3
-2
src/xml.h
src/xml.h
+3
-1
tests/qemuxml2argvdata/qemuxml2argv-boot-cdrom.args
tests/qemuxml2argvdata/qemuxml2argv-boot-cdrom.args
+1
-1
tests/qemuxml2argvdata/qemuxml2argv-boot-floppy.args
tests/qemuxml2argvdata/qemuxml2argv-boot-floppy.args
+1
-1
tests/qemuxml2argvdata/qemuxml2argv-boot-network.args
tests/qemuxml2argvdata/qemuxml2argv-boot-network.args
+1
-1
tests/qemuxml2argvdata/qemuxml2argv-bootloader.args
tests/qemuxml2argvdata/qemuxml2argv-bootloader.args
+1
-1
tests/qemuxml2argvdata/qemuxml2argv-clock-localtime.args
tests/qemuxml2argvdata/qemuxml2argv-clock-localtime.args
+1
-1
tests/qemuxml2argvdata/qemuxml2argv-clock-utc.args
tests/qemuxml2argvdata/qemuxml2argv-clock-utc.args
+1
-1
tests/qemuxml2argvdata/qemuxml2argv-console-compat.args
tests/qemuxml2argvdata/qemuxml2argv-console-compat.args
+1
-1
tests/qemuxml2argvdata/qemuxml2argv-disk-cdrom.args
tests/qemuxml2argvdata/qemuxml2argv-disk-cdrom.args
+1
-1
tests/qemuxml2argvdata/qemuxml2argv-disk-floppy.args
tests/qemuxml2argvdata/qemuxml2argv-disk-floppy.args
+1
-1
tests/qemuxml2argvdata/qemuxml2argv-disk-many.args
tests/qemuxml2argvdata/qemuxml2argv-disk-many.args
+1
-1
tests/qemuxml2argvdata/qemuxml2argv-disk-virtio.args
tests/qemuxml2argvdata/qemuxml2argv-disk-virtio.args
+1
-1
tests/qemuxml2argvdata/qemuxml2argv-disk-xenvbd.args
tests/qemuxml2argvdata/qemuxml2argv-disk-xenvbd.args
+1
-1
tests/qemuxml2argvdata/qemuxml2argv-graphics-sdl.args
tests/qemuxml2argvdata/qemuxml2argv-graphics-sdl.args
+1
-1
tests/qemuxml2argvdata/qemuxml2argv-graphics-vnc.args
tests/qemuxml2argvdata/qemuxml2argv-graphics-vnc.args
+1
-1
tests/qemuxml2argvdata/qemuxml2argv-input-usbmouse.args
tests/qemuxml2argvdata/qemuxml2argv-input-usbmouse.args
+1
-1
tests/qemuxml2argvdata/qemuxml2argv-input-usbtablet.args
tests/qemuxml2argvdata/qemuxml2argv-input-usbtablet.args
+1
-1
tests/qemuxml2argvdata/qemuxml2argv-input-xen.args
tests/qemuxml2argvdata/qemuxml2argv-input-xen.args
+1
-1
tests/qemuxml2argvdata/qemuxml2argv-minimal.args
tests/qemuxml2argvdata/qemuxml2argv-minimal.args
+1
-1
tests/qemuxml2argvdata/qemuxml2argv-minimal.xml
tests/qemuxml2argvdata/qemuxml2argv-minimal.xml
+1
-1
tests/qemuxml2argvdata/qemuxml2argv-misc-acpi.args
tests/qemuxml2argvdata/qemuxml2argv-misc-acpi.args
+1
-1
tests/qemuxml2argvdata/qemuxml2argv-misc-no-reboot.args
tests/qemuxml2argvdata/qemuxml2argv-misc-no-reboot.args
+1
-1
tests/qemuxml2argvdata/qemuxml2argv-net-user.args
tests/qemuxml2argvdata/qemuxml2argv-net-user.args
+1
-1
tests/qemuxml2argvdata/qemuxml2argv-net-virtio.args
tests/qemuxml2argvdata/qemuxml2argv-net-virtio.args
+1
-1
tests/qemuxml2argvdata/qemuxml2argv-parallel-tcp.args
tests/qemuxml2argvdata/qemuxml2argv-parallel-tcp.args
+1
-1
tests/qemuxml2argvdata/qemuxml2argv-serial-dev.args
tests/qemuxml2argvdata/qemuxml2argv-serial-dev.args
+1
-1
tests/qemuxml2argvdata/qemuxml2argv-serial-file.args
tests/qemuxml2argvdata/qemuxml2argv-serial-file.args
+1
-1
tests/qemuxml2argvdata/qemuxml2argv-serial-many.args
tests/qemuxml2argvdata/qemuxml2argv-serial-many.args
+1
-1
tests/qemuxml2argvdata/qemuxml2argv-serial-pty.args
tests/qemuxml2argvdata/qemuxml2argv-serial-pty.args
+1
-1
tests/qemuxml2argvdata/qemuxml2argv-serial-tcp-telnet.args
tests/qemuxml2argvdata/qemuxml2argv-serial-tcp-telnet.args
+1
-1
tests/qemuxml2argvdata/qemuxml2argv-serial-tcp.args
tests/qemuxml2argvdata/qemuxml2argv-serial-tcp.args
+1
-1
tests/qemuxml2argvdata/qemuxml2argv-serial-udp.args
tests/qemuxml2argvdata/qemuxml2argv-serial-udp.args
+1
-1
tests/qemuxml2argvdata/qemuxml2argv-serial-unix.args
tests/qemuxml2argvdata/qemuxml2argv-serial-unix.args
+1
-1
tests/qemuxml2argvdata/qemuxml2argv-serial-vc.args
tests/qemuxml2argvdata/qemuxml2argv-serial-vc.args
+1
-1
tests/qemuxml2argvdata/qemuxml2argv-sound.args
tests/qemuxml2argvdata/qemuxml2argv-sound.args
+1
-1
未找到文件。
ChangeLog
浏览文件 @
e193b5dd
Thu May 22 12:22:29 EST 2008 Daniel P. Berrange <berrange@redhat.com>
Apply CPU pinning at startup if requested for QEMU
* src/qemu_conf.h: Store global CPU pinning data
* src/qemu_conf.c: Parse and format CPU set mask for vCPUs
* src/qemu_driver.c: Apply CPU pinning at startup
* tests/qemuxml2argvdata/*.args: Add in -S arg which is now
always used
* src/xml.c, xml.h: Allow use of CPU set functions from QEMU
Thu May 22 12:20:29 EST 2008 Daniel P. Berrange <berrange@redhat.com>
Add support for VCPU pinning in QEMU driver
...
...
src/qemu_conf.c
浏览文件 @
e193b5dd
...
...
@@ -56,6 +56,7 @@
#include "memory.h"
#include "verify.h"
#include "c-ctype.h"
#include "xml.h"
#define qemudLog(level, msg...) fprintf(stderr, msg)
...
...
@@ -1744,6 +1745,25 @@ static struct qemud_vm_def *qemudParseXML(virConnectPtr conn,
}
xmlXPathFreeObject
(
obj
);
/* Extract domain vcpu info */
obj
=
xmlXPathEval
(
BAD_CAST
"string(/domain/vcpu[1]/@cpuset)"
,
ctxt
);
if
((
obj
==
NULL
)
||
(
obj
->
type
!=
XPATH_STRING
)
||
(
obj
->
stringval
==
NULL
)
||
(
obj
->
stringval
[
0
]
==
0
))
{
/* Allow use on all CPUS */
memset
(
def
->
cpumask
,
1
,
QEMUD_CPUMASK_LEN
);
}
else
{
char
*
set
=
(
char
*
)
obj
->
stringval
;
memset
(
def
->
cpumask
,
0
,
QEMUD_CPUMASK_LEN
);
if
(
virParseCpuSet
(
conn
,
(
const
char
**
)
&
set
,
0
,
def
->
cpumask
,
QEMUD_CPUMASK_LEN
)
<
0
)
{
qemudReportError
(
conn
,
NULL
,
NULL
,
VIR_ERR_INTERNAL_ERROR
,
"%s"
,
_
(
"malformed vcpu mask information"
));
goto
error
;
}
}
xmlXPathFreeObject
(
obj
);
/* See if ACPI feature is requested */
obj
=
xmlXPathEval
(
BAD_CAST
"/domain/features/acpi"
,
ctxt
);
if
((
obj
!=
NULL
)
&&
(
obj
->
type
==
XPATH_NODESET
)
&&
...
...
@@ -2432,6 +2452,7 @@ int qemudBuildCommandLine(virConnectPtr conn,
disableKQEMU
=
1
;
len
=
1
+
/* qemu */
1
+
/* Stopped */
2
+
/* machine type */
disableKQEMU
+
/* Disable kqemu */
(
vm
->
qemuCmdFlags
&
QEMUD_CMD_FLAG_NAME
?
2
:
0
)
+
/* -name XXX */
...
...
@@ -2456,7 +2477,7 @@ int qemudBuildCommandLine(virConnectPtr conn,
(
vm
->
def
->
os
.
bootloader
[
0
]
?
2
:
0
)
+
/* bootloader */
(
vm
->
def
->
graphicsType
==
QEMUD_GRAPHICS_VNC
?
2
:
(
vm
->
def
->
graphicsType
==
QEMUD_GRAPHICS_SDL
?
0
:
1
))
+
/* graphics */
(
vm
->
migrateFrom
[
0
]
?
3
:
0
);
/* migrateFrom */
(
vm
->
migrateFrom
[
0
]
?
2
:
0
);
/* migrateFrom */
snprintf
(
memory
,
sizeof
(
memory
),
"%lu"
,
vm
->
def
->
memory
/
1024
);
snprintf
(
vcpus
,
sizeof
(
vcpus
),
"%d"
,
vm
->
def
->
vcpus
);
...
...
@@ -2465,6 +2486,8 @@ int qemudBuildCommandLine(virConnectPtr conn,
goto
no_memory
;
if
(
!
((
*
argv
)[
++
n
]
=
strdup
(
vm
->
def
->
os
.
binary
)))
goto
no_memory
;
if
(
!
((
*
argv
)[
++
n
]
=
strdup
(
"-S"
)))
goto
no_memory
;
if
(
!
((
*
argv
)[
++
n
]
=
strdup
(
"-M"
)))
goto
no_memory
;
if
(
!
((
*
argv
)[
++
n
]
=
strdup
(
vm
->
def
->
os
.
machine
)))
...
...
@@ -2890,8 +2913,6 @@ int qemudBuildCommandLine(virConnectPtr conn,
}
if
(
vm
->
migrateFrom
[
0
])
{
if
(
!
((
*
argv
)[
++
n
]
=
strdup
(
"-S"
)))
goto
no_memory
;
if
(
!
((
*
argv
)[
++
n
]
=
strdup
(
"-incoming"
)))
goto
no_memory
;
if
(
!
((
*
argv
)[
++
n
]
=
strdup
(
vm
->
migrateFrom
)))
...
...
@@ -3877,7 +3898,7 @@ char *qemudGenerateXML(virConnectPtr conn,
const
struct
qemud_vm_sound_def
*
sound
;
const
struct
qemud_vm_chr_def
*
chr
;
const
char
*
type
=
NULL
;
int
n
;
int
n
,
allones
=
1
;
if
(
!
(
type
=
qemudVirtTypeToString
(
def
->
virtType
)))
{
qemudReportError
(
conn
,
NULL
,
NULL
,
VIR_ERR_INTERNAL_ERROR
,
...
...
@@ -3898,7 +3919,24 @@ char *qemudGenerateXML(virConnectPtr conn,
virBufferVSprintf
(
&
buf
,
" <memory>%lu</memory>
\n
"
,
def
->
maxmem
);
virBufferVSprintf
(
&
buf
,
" <currentMemory>%lu</currentMemory>
\n
"
,
def
->
memory
);
virBufferVSprintf
(
&
buf
,
" <vcpu>%d</vcpu>
\n
"
,
def
->
vcpus
);
for
(
n
=
0
;
n
<
QEMUD_CPUMASK_LEN
;
n
++
)
if
(
def
->
cpumask
[
n
]
!=
1
)
allones
=
0
;
if
(
allones
)
{
virBufferVSprintf
(
&
buf
,
" <vcpu>%d</vcpu>
\n
"
,
def
->
vcpus
);
}
else
{
char
*
cpumask
=
NULL
;
if
((
cpumask
=
virSaveCpuSet
(
conn
,
def
->
cpumask
,
QEMUD_CPUMASK_LEN
))
==
NULL
)
{
qemudReportError
(
conn
,
NULL
,
NULL
,
VIR_ERR_NO_MEMORY
,
"%s"
,
_
(
"allocating cpu mask"
));
goto
cleanup
;
}
virBufferVSprintf
(
&
buf
,
" <vcpu cpuset='%s'>%d</vcpu>
\n
"
,
cpumask
,
def
->
vcpus
);
free
(
cpumask
);
}
if
(
def
->
os
.
bootloader
[
0
])
virBufferVSprintf
(
&
buf
,
" <bootloader>%s</bootloader>
\n
"
,
def
->
os
.
bootloader
);
virBufferAddLit
(
&
buf
,
" <os>
\n
"
);
...
...
src/qemu_conf.h
浏览文件 @
e193b5dd
...
...
@@ -33,6 +33,7 @@
#include "iptables.h"
#include "capabilities.h"
#include <netinet/in.h>
#include <sched.h>
#define qemudDebug(fmt, ...) do {} while(0)
...
...
@@ -104,6 +105,7 @@ enum qemud_vm_net_forward_type {
#define QEMUD_MAX_NAME_LEN 50
#define QEMUD_MAX_XML_LEN 4096
#define QEMUD_MAX_ERROR_LEN 1024
#define QEMUD_CPUMASK_LEN CPU_SETSIZE
/* Stores the virtual network interface configuration */
struct
qemud_vm_net_def
{
...
...
@@ -282,6 +284,7 @@ struct qemud_vm_def {
unsigned
long
memory
;
unsigned
long
maxmem
;
int
vcpus
;
char
cpumask
[
QEMUD_CPUMASK_LEN
];
int
noReboot
;
...
...
src/qemu_driver.c
浏览文件 @
e193b5dd
...
...
@@ -717,6 +717,52 @@ error:
return
0
;
}
static
int
qemudInitCpus
(
virConnectPtr
conn
,
struct
qemud_driver
*
driver
,
struct
qemud_vm
*
vm
)
{
char
*
info
=
NULL
;
#if HAVE_SCHED_GETAFFINITY
cpu_set_t
mask
;
int
i
,
maxcpu
=
QEMUD_CPUMASK_LEN
;
virNodeInfo
nodeinfo
;
if
(
virNodeInfoPopulate
(
conn
,
&
nodeinfo
)
<
0
)
return
-
1
;
/* setaffinity fails if you set bits for CPUs which
* aren't present, so we have to limit ourselves */
if
(
maxcpu
>
nodeinfo
.
cpus
)
maxcpu
=
nodeinfo
.
cpus
;
CPU_ZERO
(
&
mask
);
for
(
i
=
0
;
i
<
maxcpu
;
i
++
)
if
(
vm
->
def
->
cpumask
[
i
])
CPU_SET
(
i
,
&
mask
);
for
(
i
=
0
;
i
<
vm
->
nvcpupids
;
i
++
)
{
if
(
sched_setaffinity
(
vm
->
vcpupids
[
i
],
sizeof
(
mask
),
&
mask
)
<
0
)
{
qemudReportError
(
conn
,
NULL
,
NULL
,
VIR_ERR_INTERNAL_ERROR
,
_
(
"failed to set CPU affinity %s"
),
strerror
(
errno
));
return
-
1
;
}
}
#endif
/* HAVE_SCHED_GETAFFINITY */
/* Allow the CPUS to start executing */
if
(
qemudMonitorCommand
(
driver
,
vm
,
"cont"
,
&
info
)
<
0
)
{
qemudReportError
(
conn
,
NULL
,
NULL
,
VIR_ERR_INTERNAL_ERROR
,
"%s"
,
_
(
"resume operation failed"
));
return
-
1
;
}
free
(
info
);
return
0
;
}
static
int
qemudNextFreeVNCPort
(
struct
qemud_driver
*
driver
ATTRIBUTE_UNUSED
)
{
int
i
;
...
...
@@ -874,28 +920,17 @@ static int qemudStartVMDaemon(virConnectPtr conn,
}
if
(
ret
==
0
)
{
if
(
virEventAddHandle
(
vm
->
stdout
,
POLLIN
|
POLLERR
|
POLLHUP
,
qemudDispatchVMEvent
,
driver
)
<
0
)
{
qemudShutdownVMDaemon
(
conn
,
driver
,
vm
);
return
-
1
;
}
if
(
virEventAddHandle
(
vm
->
stderr
,
POLLIN
|
POLLERR
|
POLLHUP
,
qemudDispatchVMEvent
,
driver
)
<
0
)
{
qemudShutdownVMDaemon
(
conn
,
driver
,
vm
);
return
-
1
;
}
if
(
qemudWaitForMonitor
(
conn
,
driver
,
vm
)
<
0
)
{
qemudShutdownVMDaemon
(
conn
,
driver
,
vm
);
return
-
1
;
}
if
(
qemudDetectVcpuPIDs
(
conn
,
driver
,
vm
)
<
0
)
{
if
((
virEventAddHandle
(
vm
->
stdout
,
POLLIN
|
POLLERR
|
POLLHUP
,
qemudDispatchVMEvent
,
driver
)
<
0
)
||
(
virEventAddHandle
(
vm
->
stderr
,
POLLIN
|
POLLERR
|
POLLHUP
,
qemudDispatchVMEvent
,
driver
)
<
0
)
||
(
qemudWaitForMonitor
(
conn
,
driver
,
vm
)
<
0
)
||
(
qemudDetectVcpuPIDs
(
conn
,
driver
,
vm
)
<
0
)
||
(
qemudInitCpus
(
conn
,
driver
,
vm
)
<
0
))
{
qemudShutdownVMDaemon
(
conn
,
driver
,
vm
);
return
-
1
;
}
...
...
src/xml.c
浏览文件 @
e193b5dd
...
...
@@ -60,7 +60,7 @@ virXMLError(virConnectPtr conn, virErrorNumber error, const char *info,
* Parser and converter for the CPUset strings used in libvirt *
* *
************************************************************************/
#if WITH_XEN
#if WITH_XEN
|| WITH_QEMU
/**
* parseCpuNumber:
* @str: pointer to the char pointer used
...
...
@@ -249,8 +249,9 @@ virParseCpuSet(virConnectPtr conn, const char **str, char sep,
_
(
"topology cpuset syntax error"
),
0
);
return
(
-
1
);
}
#endif
#if WITH_XEN
/**
* virConvertCpuSet:
* @conn: connection
...
...
src/xml.h
浏览文件 @
e193b5dd
...
...
@@ -32,7 +32,7 @@ int virXPathNodeSet (const char *xpath,
xmlXPathContextPtr
ctxt
,
xmlNodePtr
**
list
);
#if WITH_XEN
#if WITH_XEN
|| WITH_QEMU
int
virParseCpuSet
(
virConnectPtr
conn
,
const
char
**
str
,
char
sep
,
...
...
@@ -41,6 +41,8 @@ int virParseCpuSet (virConnectPtr conn,
char
*
virSaveCpuSet
(
virConnectPtr
conn
,
char
*
cpuset
,
int
maxcpu
);
#endif
#if WITH_XEN
char
*
virConvertCpuSet
(
virConnectPtr
conn
,
const
char
*
str
,
int
maxcpu
);
...
...
tests/qemuxml2argvdata/qemuxml2argv-boot-cdrom.args
浏览文件 @
e193b5dd
/usr/bin/qemu -M pc -m 214 -smp 1 -nographic -monitor pty -no-acpi -boot d -cdrom /dev/cdrom -net none -serial none -parallel none -usb
\ No newline at end of file
/usr/bin/qemu -S -M pc -m 214 -smp 1 -nographic -monitor pty -no-acpi -boot d -cdrom /dev/cdrom -net none -serial none -parallel none -usb
\ No newline at end of file
tests/qemuxml2argvdata/qemuxml2argv-boot-floppy.args
浏览文件 @
e193b5dd
/usr/bin/qemu -M pc -m 214 -smp 1 -nographic -monitor pty -no-acpi -boot a -hda /dev/HostVG/QEMUGuest1 -fda /tmp/firmware.img -net none -serial none -parallel none -usb
\ No newline at end of file
/usr/bin/qemu -S -M pc -m 214 -smp 1 -nographic -monitor pty -no-acpi -boot a -hda /dev/HostVG/QEMUGuest1 -fda /tmp/firmware.img -net none -serial none -parallel none -usb
\ No newline at end of file
tests/qemuxml2argvdata/qemuxml2argv-boot-network.args
浏览文件 @
e193b5dd
/usr/bin/qemu -M pc -m 214 -smp 1 -nographic -monitor pty -no-acpi -boot n -hda /dev/HostVG/QEMUGuest1 -net none -serial none -parallel none -usb
\ No newline at end of file
/usr/bin/qemu -S -M pc -m 214 -smp 1 -nographic -monitor pty -no-acpi -boot n -hda /dev/HostVG/QEMUGuest1 -net none -serial none -parallel none -usb
\ No newline at end of file
tests/qemuxml2argvdata/qemuxml2argv-bootloader.args
浏览文件 @
e193b5dd
/usr/bin/qemu-kvm -M xenner -m 214 -smp 1 -nographic -monitor pty -no-acpi -bootloader /usr/bin/pygrub -cdrom /dev/cdrom -net none -serial none -parallel none -usb
\ No newline at end of file
/usr/bin/qemu-kvm -S -M xenner -m 214 -smp 1 -nographic -monitor pty -no-acpi -bootloader /usr/bin/pygrub -cdrom /dev/cdrom -net none -serial none -parallel none -usb
\ No newline at end of file
tests/qemuxml2argvdata/qemuxml2argv-clock-localtime.args
浏览文件 @
e193b5dd
/usr/bin/qemu -M pc -m 214 -smp 1 -nographic -monitor pty -localtime -no-acpi -boot c -hda /dev/HostVG/QEMUGuest1 -net none -serial none -parallel none -usb
\ No newline at end of file
/usr/bin/qemu -S -M pc -m 214 -smp 1 -nographic -monitor pty -localtime -no-acpi -boot c -hda /dev/HostVG/QEMUGuest1 -net none -serial none -parallel none -usb
\ No newline at end of file
tests/qemuxml2argvdata/qemuxml2argv-clock-utc.args
浏览文件 @
e193b5dd
/usr/bin/qemu -M pc -m 214 -smp 1 -nographic -monitor pty -no-acpi -boot c -hda /dev/HostVG/QEMUGuest1 -net none -serial none -parallel none -usb
\ No newline at end of file
/usr/bin/qemu -S -M pc -m 214 -smp 1 -nographic -monitor pty -no-acpi -boot c -hda /dev/HostVG/QEMUGuest1 -net none -serial none -parallel none -usb
\ No newline at end of file
tests/qemuxml2argvdata/qemuxml2argv-console-compat.args
浏览文件 @
e193b5dd
/usr/bin/qemu -M pc -m 214 -smp 1 -nographic -monitor pty -no-acpi -boot c -hda /dev/HostVG/QEMUGuest1 -net none -serial pty -parallel none -usb
\ No newline at end of file
/usr/bin/qemu -S -M pc -m 214 -smp 1 -nographic -monitor pty -no-acpi -boot c -hda /dev/HostVG/QEMUGuest1 -net none -serial pty -parallel none -usb
\ No newline at end of file
tests/qemuxml2argvdata/qemuxml2argv-disk-cdrom.args
浏览文件 @
e193b5dd
/usr/bin/qemu -M pc -m 214 -smp 1 -nographic -monitor pty -no-acpi -boot c -hda /dev/HostVG/QEMUGuest1 -cdrom /root/boot.iso -net none -serial none -parallel none -usb
\ No newline at end of file
/usr/bin/qemu -S -M pc -m 214 -smp 1 -nographic -monitor pty -no-acpi -boot c -hda /dev/HostVG/QEMUGuest1 -cdrom /root/boot.iso -net none -serial none -parallel none -usb
\ No newline at end of file
tests/qemuxml2argvdata/qemuxml2argv-disk-floppy.args
浏览文件 @
e193b5dd
/usr/bin/qemu -M pc -m 214 -smp 1 -nographic -monitor pty -no-acpi -boot c -hda /dev/HostVG/QEMUGuest1 -fda /dev/fd0 -fdb /tmp/firmware.img -net none -serial none -parallel none -usb
\ No newline at end of file
/usr/bin/qemu -S -M pc -m 214 -smp 1 -nographic -monitor pty -no-acpi -boot c -hda /dev/HostVG/QEMUGuest1 -fda /dev/fd0 -fdb /tmp/firmware.img -net none -serial none -parallel none -usb
\ No newline at end of file
tests/qemuxml2argvdata/qemuxml2argv-disk-many.args
浏览文件 @
e193b5dd
/usr/bin/qemu -M pc -m 214 -smp 1 -nographic -monitor pty -no-acpi -boot c -hda /dev/HostVG/QEMUGuest1 -hdb /dev/HostVG/QEMUGuest2 -hdc /tmp/data.img -hdd /tmp/logs.img -net none -serial none -parallel none -usb
\ No newline at end of file
/usr/bin/qemu -S -M pc -m 214 -smp 1 -nographic -monitor pty -no-acpi -boot c -hda /dev/HostVG/QEMUGuest1 -hdb /dev/HostVG/QEMUGuest2 -hdc /tmp/data.img -hdd /tmp/logs.img -net none -serial none -parallel none -usb
\ No newline at end of file
tests/qemuxml2argvdata/qemuxml2argv-disk-virtio.args
浏览文件 @
e193b5dd
/usr/bin/qemu -M pc -m 214 -smp 1 -nographic -monitor pty -no-acpi -boot c -drive file=/dev/HostVG/QEMUGuest1,if=ide,index=0,boot=on -drive file=/dev/HostVG/QEMUGuest2,if=ide,media=cdrom,index=2 -drive file=/tmp/data.img,if=virtio,index=0 -drive file=/tmp/logs.img,if=virtio,index=6 -net none -serial none -parallel none -usb
\ No newline at end of file
/usr/bin/qemu -S -M pc -m 214 -smp 1 -nographic -monitor pty -no-acpi -boot c -drive file=/dev/HostVG/QEMUGuest1,if=ide,index=0,boot=on -drive file=/dev/HostVG/QEMUGuest2,if=ide,media=cdrom,index=2 -drive file=/tmp/data.img,if=virtio,index=0 -drive file=/tmp/logs.img,if=virtio,index=6 -net none -serial none -parallel none -usb
\ No newline at end of file
tests/qemuxml2argvdata/qemuxml2argv-disk-xenvbd.args
浏览文件 @
e193b5dd
/usr/bin/qemu -M pc -m 214 -smp 1 -nographic -monitor pty -no-acpi -boot c -drive file=/dev/HostVG/QEMUGuest1,if=ide,index=0,boot=on -drive file=/dev/HostVG/QEMUGuest2,if=ide,media=cdrom,index=2 -drive file=/tmp/data.img,if=xen,index=0 -drive file=/tmp/logs.img,if=xen,index=6 -net none -serial none -parallel none -usb
\ No newline at end of file
/usr/bin/qemu -S -M pc -m 214 -smp 1 -nographic -monitor pty -no-acpi -boot c -drive file=/dev/HostVG/QEMUGuest1,if=ide,index=0,boot=on -drive file=/dev/HostVG/QEMUGuest2,if=ide,media=cdrom,index=2 -drive file=/tmp/data.img,if=xen,index=0 -drive file=/tmp/logs.img,if=xen,index=6 -net none -serial none -parallel none -usb
\ No newline at end of file
tests/qemuxml2argvdata/qemuxml2argv-graphics-sdl.args
浏览文件 @
e193b5dd
/usr/bin/qemu -M pc -m 214 -smp 1 -monitor pty -no-acpi -boot c -hda /dev/HostVG/QEMUGuest1 -net none -serial none -parallel none -usb
\ No newline at end of file
/usr/bin/qemu -S -M pc -m 214 -smp 1 -monitor pty -no-acpi -boot c -hda /dev/HostVG/QEMUGuest1 -net none -serial none -parallel none -usb
\ No newline at end of file
tests/qemuxml2argvdata/qemuxml2argv-graphics-vnc.args
浏览文件 @
e193b5dd
/usr/bin/qemu -M pc -m 214 -smp 1 -monitor pty -no-acpi -boot c -hda /dev/HostVG/QEMUGuest1 -net none -serial none -parallel none -usb -vnc 127.0.0.1:3
\ No newline at end of file
/usr/bin/qemu -S -M pc -m 214 -smp 1 -monitor pty -no-acpi -boot c -hda /dev/HostVG/QEMUGuest1 -net none -serial none -parallel none -usb -vnc 127.0.0.1:3
\ No newline at end of file
tests/qemuxml2argvdata/qemuxml2argv-input-usbmouse.args
浏览文件 @
e193b5dd
/usr/bin/qemu -M pc -m 214 -smp 1 -nographic -monitor pty -no-acpi -boot c -hda /dev/HostVG/QEMUGuest1 -net none -serial none -parallel none -usb -usbdevice mouse
\ No newline at end of file
/usr/bin/qemu -S -M pc -m 214 -smp 1 -nographic -monitor pty -no-acpi -boot c -hda /dev/HostVG/QEMUGuest1 -net none -serial none -parallel none -usb -usbdevice mouse
\ No newline at end of file
tests/qemuxml2argvdata/qemuxml2argv-input-usbtablet.args
浏览文件 @
e193b5dd
/usr/bin/qemu -M pc -m 214 -smp 1 -nographic -monitor pty -no-acpi -boot c -hda /dev/HostVG/QEMUGuest1 -net none -serial none -parallel none -usb -usbdevice tablet
\ No newline at end of file
/usr/bin/qemu -S -M pc -m 214 -smp 1 -nographic -monitor pty -no-acpi -boot c -hda /dev/HostVG/QEMUGuest1 -net none -serial none -parallel none -usb -usbdevice tablet
\ No newline at end of file
tests/qemuxml2argvdata/qemuxml2argv-input-xen.args
浏览文件 @
e193b5dd
/usr/bin/xenner -M xenner -m 214 -smp 1 -monitor pty -no-acpi -boot c -hda /dev/HostVG/QEMUGuest1 -net none -serial none -parallel none -usb -vnc :-5901
\ No newline at end of file
/usr/bin/xenner -S -M xenner -m 214 -smp 1 -monitor pty -no-acpi -boot c -hda /dev/HostVG/QEMUGuest1 -net none -serial none -parallel none -usb -vnc :-5901
\ No newline at end of file
tests/qemuxml2argvdata/qemuxml2argv-minimal.args
浏览文件 @
e193b5dd
/usr/bin/qemu -M pc -m 214 -smp 1 -name QEMUGuest1 -nographic -monitor pty -no-acpi -boot c -hda /dev/HostVG/QEMUGuest1 -net none -serial none -parallel none -usb
\ No newline at end of file
/usr/bin/qemu -S -M pc -m 214 -smp 1 -name QEMUGuest1 -nographic -monitor pty -no-acpi -boot c -hda /dev/HostVG/QEMUGuest1 -net none -serial none -parallel none -usb
\ No newline at end of file
tests/qemuxml2argvdata/qemuxml2argv-minimal.xml
浏览文件 @
e193b5dd
...
...
@@ -3,7 +3,7 @@
<uuid>
c7a5fdbd-edaf-9455-926a-d65c16db1809
</uuid>
<memory>
219200
</memory>
<currentMemory>
219200
</currentMemory>
<vcpu>
1
</vcpu>
<vcpu
cpuset=
'1-4,8-20,525'
>
1
</vcpu>
<os>
<type
arch=
'i686'
machine=
'pc'
>
hvm
</type>
<boot
dev=
'hd'
/>
...
...
tests/qemuxml2argvdata/qemuxml2argv-misc-acpi.args
浏览文件 @
e193b5dd
/usr/bin/qemu -M pc -m 214 -smp 1 -nographic -monitor pty -boot c -hda /dev/HostVG/QEMUGuest1 -net none -serial none -parallel none -usb
\ No newline at end of file
/usr/bin/qemu -S -M pc -m 214 -smp 1 -nographic -monitor pty -boot c -hda /dev/HostVG/QEMUGuest1 -net none -serial none -parallel none -usb
\ No newline at end of file
tests/qemuxml2argvdata/qemuxml2argv-misc-no-reboot.args
浏览文件 @
e193b5dd
/usr/bin/qemu -M pc -m 214 -smp 1 -nographic -monitor pty -no-reboot -no-acpi -boot c -hda /dev/HostVG/QEMUGuest1 -net none -serial none -parallel none -usb
\ No newline at end of file
/usr/bin/qemu -S -M pc -m 214 -smp 1 -nographic -monitor pty -no-reboot -no-acpi -boot c -hda /dev/HostVG/QEMUGuest1 -net none -serial none -parallel none -usb
\ No newline at end of file
tests/qemuxml2argvdata/qemuxml2argv-net-user.args
浏览文件 @
e193b5dd
/usr/bin/qemu -M pc -m 214 -smp 1 -nographic -monitor pty -no-acpi -boot c -hda /dev/HostVG/QEMUGuest1 -net nic,macaddr=00:11:22:33:44:55,vlan=0 -net user,vlan=0 -serial none -parallel none -usb
\ No newline at end of file
/usr/bin/qemu -S -M pc -m 214 -smp 1 -nographic -monitor pty -no-acpi -boot c -hda /dev/HostVG/QEMUGuest1 -net nic,macaddr=00:11:22:33:44:55,vlan=0 -net user,vlan=0 -serial none -parallel none -usb
\ No newline at end of file
tests/qemuxml2argvdata/qemuxml2argv-net-virtio.args
浏览文件 @
e193b5dd
/usr/bin/qemu -M pc -m 214 -smp 1 -nographic -monitor pty -no-acpi -boot c -hda /dev/HostVG/QEMUGuest1 -net nic,macaddr=00:11:22:33:44:55,vlan=0,model=virtio -net user,vlan=0 -serial none -parallel none -usb
\ No newline at end of file
/usr/bin/qemu -S -M pc -m 214 -smp 1 -nographic -monitor pty -no-acpi -boot c -hda /dev/HostVG/QEMUGuest1 -net nic,macaddr=00:11:22:33:44:55,vlan=0,model=virtio -net user,vlan=0 -serial none -parallel none -usb
\ No newline at end of file
tests/qemuxml2argvdata/qemuxml2argv-parallel-tcp.args
浏览文件 @
e193b5dd
/usr/bin/qemu -M pc -m 214 -smp 1 -nographic -monitor pty -no-acpi -boot c -hda /dev/HostVG/QEMUGuest1 -net none -serial none -parallel tcp:127.0.0.1:9999,listen -usb
\ No newline at end of file
/usr/bin/qemu -S -M pc -m 214 -smp 1 -nographic -monitor pty -no-acpi -boot c -hda /dev/HostVG/QEMUGuest1 -net none -serial none -parallel tcp:127.0.0.1:9999,listen -usb
\ No newline at end of file
tests/qemuxml2argvdata/qemuxml2argv-serial-dev.args
浏览文件 @
e193b5dd
/usr/bin/qemu -M pc -m 214 -smp 1 -nographic -monitor pty -no-acpi -boot c -hda /dev/HostVG/QEMUGuest1 -net none -serial /dev/ttyS2 -parallel none -usb
\ No newline at end of file
/usr/bin/qemu -S -M pc -m 214 -smp 1 -nographic -monitor pty -no-acpi -boot c -hda /dev/HostVG/QEMUGuest1 -net none -serial /dev/ttyS2 -parallel none -usb
\ No newline at end of file
tests/qemuxml2argvdata/qemuxml2argv-serial-file.args
浏览文件 @
e193b5dd
/usr/bin/qemu -M pc -m 214 -smp 1 -nographic -monitor pty -no-acpi -boot c -hda /dev/HostVG/QEMUGuest1 -net none -serial file:/tmp/serial.log -parallel none -usb
\ No newline at end of file
/usr/bin/qemu -S -M pc -m 214 -smp 1 -nographic -monitor pty -no-acpi -boot c -hda /dev/HostVG/QEMUGuest1 -net none -serial file:/tmp/serial.log -parallel none -usb
\ No newline at end of file
tests/qemuxml2argvdata/qemuxml2argv-serial-many.args
浏览文件 @
e193b5dd
/usr/bin/qemu -M pc -m 214 -smp 1 -nographic -monitor pty -no-acpi -boot c -hda /dev/HostVG/QEMUGuest1 -net none -serial pty -serial file:/tmp/serial.log -parallel none -usb
\ No newline at end of file
/usr/bin/qemu -S -M pc -m 214 -smp 1 -nographic -monitor pty -no-acpi -boot c -hda /dev/HostVG/QEMUGuest1 -net none -serial pty -serial file:/tmp/serial.log -parallel none -usb
\ No newline at end of file
tests/qemuxml2argvdata/qemuxml2argv-serial-pty.args
浏览文件 @
e193b5dd
/usr/bin/qemu -M pc -m 214 -smp 1 -nographic -monitor pty -no-acpi -boot c -hda /dev/HostVG/QEMUGuest1 -net none -serial pty -parallel none -usb
\ No newline at end of file
/usr/bin/qemu -S -M pc -m 214 -smp 1 -nographic -monitor pty -no-acpi -boot c -hda /dev/HostVG/QEMUGuest1 -net none -serial pty -parallel none -usb
\ No newline at end of file
tests/qemuxml2argvdata/qemuxml2argv-serial-tcp-telnet.args
浏览文件 @
e193b5dd
/usr/bin/qemu -M pc -m 214 -smp 1 -nographic -monitor pty -no-acpi -boot c -hda /dev/HostVG/QEMUGuest1 -net none -serial telnet:127.0.0.1:9999,listen -parallel none -usb
\ No newline at end of file
/usr/bin/qemu -S -M pc -m 214 -smp 1 -nographic -monitor pty -no-acpi -boot c -hda /dev/HostVG/QEMUGuest1 -net none -serial telnet:127.0.0.1:9999,listen -parallel none -usb
\ No newline at end of file
tests/qemuxml2argvdata/qemuxml2argv-serial-tcp.args
浏览文件 @
e193b5dd
/usr/bin/qemu -M pc -m 214 -smp 1 -nographic -monitor pty -no-acpi -boot c -hda /dev/HostVG/QEMUGuest1 -net none -serial tcp:127.0.0.1:9999 -parallel none -usb
\ No newline at end of file
/usr/bin/qemu -S -M pc -m 214 -smp 1 -nographic -monitor pty -no-acpi -boot c -hda /dev/HostVG/QEMUGuest1 -net none -serial tcp:127.0.0.1:9999 -parallel none -usb
\ No newline at end of file
tests/qemuxml2argvdata/qemuxml2argv-serial-udp.args
浏览文件 @
e193b5dd
/usr/bin/qemu -M pc -m 214 -smp 1 -nographic -monitor pty -no-acpi -boot c -hda /dev/HostVG/QEMUGuest1 -net none -serial udp:127.0.0.1:9998@127.0.0.1:9999 -parallel none -usb
\ No newline at end of file
/usr/bin/qemu -S -M pc -m 214 -smp 1 -nographic -monitor pty -no-acpi -boot c -hda /dev/HostVG/QEMUGuest1 -net none -serial udp:127.0.0.1:9998@127.0.0.1:9999 -parallel none -usb
\ No newline at end of file
tests/qemuxml2argvdata/qemuxml2argv-serial-unix.args
浏览文件 @
e193b5dd
/usr/bin/qemu -M pc -m 214 -smp 1 -nographic -monitor pty -no-acpi -boot c -hda /dev/HostVG/QEMUGuest1 -net none -serial unix:/tmp/serial.sock -parallel none -usb
\ No newline at end of file
/usr/bin/qemu -S -M pc -m 214 -smp 1 -nographic -monitor pty -no-acpi -boot c -hda /dev/HostVG/QEMUGuest1 -net none -serial unix:/tmp/serial.sock -parallel none -usb
\ No newline at end of file
tests/qemuxml2argvdata/qemuxml2argv-serial-vc.args
浏览文件 @
e193b5dd
/usr/bin/qemu -M pc -m 214 -smp 1 -nographic -monitor pty -no-acpi -boot c -hda /dev/HostVG/QEMUGuest1 -net none -serial vc -parallel none -usb
\ No newline at end of file
/usr/bin/qemu -S -M pc -m 214 -smp 1 -nographic -monitor pty -no-acpi -boot c -hda /dev/HostVG/QEMUGuest1 -net none -serial vc -parallel none -usb
\ No newline at end of file
tests/qemuxml2argvdata/qemuxml2argv-sound.args
浏览文件 @
e193b5dd
/usr/bin/qemu -M pc -m 214 -smp 1 -nographic -monitor pty -no-acpi -boot c -hda /dev/HostVG/QEMUGuest1 -net none -serial none -parallel none -usb -soundhw pcspk,es1370,sb16
\ No newline at end of file
/usr/bin/qemu -S -M pc -m 214 -smp 1 -nographic -monitor pty -no-acpi -boot c -hda /dev/HostVG/QEMUGuest1 -net none -serial none -parallel none -usb -soundhw pcspk,es1370,sb16
\ No newline at end of file
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录