Support USB controller hot-plug and hot-unplug.
#virsh attach-device dom usbctrl.xml
#virsh detach-device dom usbctrl.xml
usbctrl.xml example:
Signed-off-by: Chunyan Liu
---
src/libxl/libxl_driver.c | 144 +++
1 file changed, 144 insertions
When hotplug a USB device, check if there is available controller
and port, if not, automatically create a USB controller of version
2.0 and 8 ports.
Signed-off-by: Chunyan Liu
---
src/libxl/libxl_driver.c | 32
1 file changed, 32 insertions(+)
diff --git a/src
Signed-off-by: Chunyan Liu
---
Changes:
drop pvusb1 and pvusb2 models
src/xenconfig/xen_xl.c | 190 +
1 file changed, 190 insertions(+)
diff --git a/src/xenconfig/xen_xl.c b/src/xenconfig/xen_xl.c
index 5879c66..90213ec 100644
--- a/src
Signed-off-by: Chunyan Liu
---
Changes:
drop pvusb items
tests/xlconfigdata/test-usbctrl.cfg | 13 +
tests/xlconfigdata/test-usbctrl.xml | 31 +++
tests/xlconfigtest.c| 1 +
3 files changed, 45 insertions(+)
create mode 100644 tests
To support USB Controller in xen guest domains, just add
USB controller in domain config xml as following:
Signed-off-by: Chunyan Liu
---
Changes:
drop pvusb1 and pvusb2 models
src/libxl/libxl_conf.c | 84 ++
src/libxl/libxl_conf.h | 4 +++
2
controller schema
to support two more models: qusb1 (qusb, version 1.1)
and 'qusb2' (qusb version 2.0).
Signed-off-by: Chunyan Liu
---
Changes:
drop pvusb1 and pvusb2 definition
docs/formatdomain.html.in | 4 +++-
docs/schemas/domaincommon.rng | 2 ++
src/conf/domain_conf.c
This patch series is to add pvusb controller support in libxl driver.
It should be applied on previous pvusb device support patch series.
---
Changes:
* drop pvusb1 and pvusb2 model
* add check in qemu device post-parse to report error of
unsupported 'qusb1' and 'qusb2'
To sync with virDomainControllerModelUSB, we add two models
in qemuControllerModelUSB 'qusb1' and 'qusb2', but those
models are not supported in qemu driver. So add check in
device post parse to report errors if 'qusb1' and 'qusb2'
are specified.
S
version 1.1),
pvusb2 (pvusb, version 2.0), qusb1 (qusb, version 1.1)
and 'qusb2' (qusb version 2.0).
Signed-off-by: Chunyan Liu
---
docs/formatdomain.html.in | 6 +-
docs/schemas/domaincommon.rng | 4
src/conf/domain_conf.c| 4
src/conf/domain_conf.h| 4
Support USB controller hot-plug and hot-unplug.
#virsh attach-device dom usbctrl.xml
#virsh detach-device dom usbctrl.xml
usbctrl.xml example:
Signed-off-by: Chunyan Liu
---
src/libxl/libxl_driver.c | 144 +++
1 file changed, 144 insertions
Signed-off-by: Chunyan Liu
---
src/xenconfig/xen_xl.c | 203 +
1 file changed, 203 insertions(+)
diff --git a/src/xenconfig/xen_xl.c b/src/xenconfig/xen_xl.c
index c11cd1b..36d352c 100644
--- a/src/xenconfig/xen_xl.c
+++ b/src/xenconfig/xen_xl.c
This patch series is to add pvusb controller support in libxl driver.
It should be applied on previous pvusb device support patch series.
Chunyan Liu (6):
extend usb controller model to support xen pvusb
libxl: support USB controllers in creation time
libxl: support usb controller hotplug
Signed-off-by: Chunyan Liu
---
tests/xlconfigdata/test-usbctrl.cfg | 13 +
tests/xlconfigdata/test-usbctrl.xml | 32
tests/xlconfigtest.c| 1 +
3 files changed, 46 insertions(+)
create mode 100644 tests/xlconfigdata/test-usbctrl.cfg
When hotplug a USB device, check if there is available controller
and port, if not, automatically create a USB controller of version
2.0 and 8 ports.
Signed-off-by: Chunyan Liu
---
src/libxl/libxl_driver.c | 32
1 file changed, 32 insertions(+)
diff --git a/src
To support USB Controller in xen guest domains, just add
USB controller in domain config xml as following:
Signed-off-by: Chunyan Liu
---
src/libxl/libxl_conf.c | 94 ++
src/libxl/libxl_conf.h | 4 +++
2 files changed, 98 insertions(+)
diff
xl.cfg:
usbdev = [ "hostbus=1,hostaddr=3" ]
usb.xml:
Signed-off-by: Chunyan Liu
---
src/xenconfig/xen_xl.c | 151 +
1 file changed, 151 insertions(+)
diff --git a/src/xenconfig/xen_xl.c b/src/xenconfig/xen_
h-device dom usb.xml
Signed-off-by: Chunyan Liu
---
Changes:
* add LIBXL_HAVE_PVUSB check
* fix Jim's comments
src/libxl/libxl_driver.c | 136 ++-
1 file changed, 135 insertions(+), 1 deletion(-)
diff --git a/src/libxl/libxl_driver.c b/src/l
This patch series is to support pvusb in libxl driver.
---
Changes in v2:
* add LIBXL_HAVE_PVUSB check
* add convertion of domxml USB config to/from xl.cfg
* address other comments
Chunyan Liu (4):
libxl: support creating guest with USB hostdev
libxl: support hotplug USB host device
Signed-off-by: Chunyan Liu
---
tests/xlconfigdata/test-usb.cfg | 13 +
tests/xlconfigdata/test-usb.xml | 35 +++
tests/xlconfigtest.c| 1 +
3 files changed, 49 insertions(+)
create mode 100644 tests/xlconfigdata/test-usb.cfg
create mode
Support creating guest with USB host device in config file.
Currently libxl only supports xen PV guest, and only supports
specifying USB host device by 'bus number' and 'device number',
for example:
Signed-off-by: Chunyan Liu
---
Changes:
*
Unify XEN_CONFIG_FORMAT_x and LIBXL_CONFIG_FORMAT_x to
XEN_CONFIG_FORMAT_x, and move to xen_common.h.
Signed-off-by: Chunyan Liu
---
src/libxl/libxl_driver.c | 14 +-
src/xen/xen_driver.h | 3 ---
src/xenconfig/xen_common.h | 4
3 files changed, 9 insertions(+), 12
Signed-off-by: Chunyan Liu
---
tests/xlconfigdata/test-vif-typename.cfg | 25 ++
tests/xlconfigdata/test-vif-typename.xml | 45
tests/xlconfigtest.c | 1 +
3 files changed, 71 insertions(+)
create mode 100644 tests
Correct libxl config file type=vif handling.
---
Changes in v2:
* update xen{Parse,Format}ConfigCommon parameter vif_typename to
nativeFomat. To reuse XEN_CONFIG_FORMAT_{XM,XL}, first extract
XEN_CONFIG_FORMAT_{XM,XL} to xen_common.h
Chunyan Liu (3):
extract XEN_CONFIG_FORMAT_XM/XL
g
Invalid parameter `type'.
Correct the convertion in libvirt, so that it matchs libxl codes
and also xl.cfg.
Signed-off-by: Chunyan Liu
---
src/xenconfig/xen_common.c | 43 ---
src/xenconfig/xen_common.h | 6 --
src/xenconfig/xen_xl.c
Add .domainInterfaceAddresses so that user can have a way to
get domain interface address by 'virsh domifaddr'. Currently
it only supports '--source lease'.
Signed-off: Chunyan Liu
---
src/libxl/libxl_driver.c | 140 +++
1 file cha
Signed-off-by: Chunyan Liu
---
tests/xlconfigdata/test-vif-typename.cfg | 25 +++
tests/xlconfigdata/test-vif-typename.xml | 42
tests/xlconfigtest.c | 1 +
3 files changed, 68 insertions(+)
create mode 100644 tests
g
Invalid parameter `type'.
Correct the convertion in libvirt, so that it matchs libxl codes
and also xl.cfg.
Signed-off-by: Chunyan Liu
---
src/xenconfig/xen_common.c | 38 --
src/xenconfig/xen_common.h | 7 ---
src/xenconfig/xen_xl.c | 4 ++-
Correct libxl config file type=vif handling.
Chunyan Liu (2):
xenFormatNet: correct `type=netfront' to 'type=vif' to match libxl
xlconfigtest: add test case for type=vif in xl format
src/xenconfig/xen_common.c | 38 ++---
src/xenconf
Support creating guest with USB host device in config file.
Currently libxl only supports xen PV guest, and only supports
specifying USB host device by 'bus number' and 'device number'.
Signed-off-by: Chunyan Liu
---
src/libxl
This patch series is to support pvusb in libxl driver.
Chunyan Liu (2):
libxl: support creating guest with USB hostdev
libxl: support hotplug USB host device
src/libxl/libxl_conf.c | 71 +
src/libxl/libxl_conf.h | 3 ++
src/libxl/libxl_domain.c | 4 +-
src
Support hot attach/detach a USB host device to guest.
Curretnly libxl only supports xen PV guest, and only
supports specifying USB host device by 'bus number'
and 'device number'.
Signed-off-by: Chunyan Liu
---
src/libxl/libxl_driver.c | 130 ++
g
Invalid parameter `type'.
Correct the convertion in libvirt, so that it matchs libxl codes
and also xl.cfg.
Signed-off-by: Chunyan Liu
---
Since type=netfront config has been used for a very long time, at
lease for xm/xend, it has no problem. I'm not sure if we need to
split into
Add codes to support creating domain with network defition of assigning
SRIOV VF from a pool.
Signed-off-by: Chunyan Liu
Signed-off-by: Jim Fehlig
---
Rebase and send a new version.
src/libxl/libxl_domain.c | 48
tests/Makefile.am| 3
This patch series is to support assign VF to guest from SRIOV pool,
including fixes to network attach/detach and fix to libxlDomainstart.
Chunyan Liu (6):
libxlDomainAttachNetDevice: release actual deivce and remove hostdev
when fail
libxlDomainDetachNetDevice: cleanup codes
Adjust codes to make it cleaner.
Signed-off-by: Chunyan Liu
---
src/libxl/libxl_driver.c | 8
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/libxl/libxl_driver.c b/src/libxl/libxl_driver.c
index 05ebe29..74ebea4 100644
--- a/src/libxl/libxl_driver.c
+++ b/src/libxl
Add codes to support creating domain with network defition of assigning
SRIOV VF from a pool.
Signed-off-by: Chunyan Liu
---
src/libxl/libxl_domain.c | 50
tests/Makefile.am| 3 +++
2 files changed, 53 insertions(+)
diff --git a/src
libxlDomainCleanup will call virDomainLockProcessPause,
so we move virDomainLockProcessStart/Resume to earlier stage.
Signed-off-by: Chunyan Liu
---
src/libxl/libxl_domain.c | 41 ++---
1 file changed, 22 insertions(+), 19 deletions(-)
diff --git a/src/libxl
For those VF allocated from a network pool, we need to set its backend
to be VIR_DOMAIN_HOSTDEV_PCI_BACKEND_XEN so that later work can be
correct.
Signed-off-by: Chunyan Liu
---
src/libxl/libxl_driver.c | 14 --
1 file changed, 12 insertions(+), 2 deletions(-)
diff --git a/src
When AttachNetDevice failed, should call networkReleaseActualDevice
to release actual device, and if actual device is hostdev, should
remove the hostdev from vm->def->hostdevs.
Signed-off-by: Chunyan Liu
---
src/libxl/libxl_driver.c | 18 +++---
1 file changed, 11 insertions
When hostdev parent is network device, should call
libxlDomainDetachNetDevice to detach the device from a higher level.
Signed-off-by: Chunyan Liu
---
src/libxl/libxl_driver.c | 12 +---
1 file changed, 9 insertions(+), 3 deletions(-)
diff --git a/src/libxl/libxl_driver.c b/src/libxl
This patch series is to support assigning VF to guest from a pool of SRIOV VFs
in libxl driver, detailed usage can be referred to:
http://wiki.libvirt.org/page/Networking#Assignment_from_a_pool_of_SRIOV_VFs_in_a_libvirt_.3Cnetwork.3E_definition
Chunyan Liu (2):
libxl_conf: reuse
Add codes to support creating domain with network defition of assigning
SRIOV VF from a pool. And fix hot plug and unplug SRIOV VF under this
kind of network defition.
Signed-off-by: Chunyan Liu
---
Changes:
* move a common change in libxl_conf.c into separate patch
src/libxl/libxl_domain.c
Reuse existing helper function virDomainNetGetActualtype.
Signed-off-by: Chunyan Liu
---
src/libxl/libxl_conf.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/src/libxl/libxl_conf.c b/src/libxl/libxl_conf.c
index 93c943b..2b77c59 100644
--- a/src/libxl/libxl_conf.c
+++ b
Add codes to support creating domain with network defition of assigning
SRIOV VF from a pool. And fix hot plug and unplug SRIOV VF under this
kind of network defition.
Signed-off-by: Chunyan Liu
---
Changes:
* move bug fix to another patch
* use virDomainNetGetActualType instead of multiple
Signed-off-by: Chunyan Liu
---
src/libxl/libxl_conf.c | 2 +-
src/libxl/libxl_domain.c | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/src/libxl/libxl_conf.c b/src/libxl/libxl_conf.c
index 5133299..48b8826 100644
--- a/src/libxl/libxl_conf.c
+++ b/src/libxl/libxl_conf.c
Add codes to support creating domain with network defition of assigning
SRIOV VF from a pool. And fix hot plug and unplug SRIOV VF under this
kind of network defition.
Signed-off-by: Chunyan Liu
---
src/libxl/libxl_conf.c | 5 +++--
src/libxl/libxl_domain.c | 48
After attach-device a with --config, new device doesn't
show up in dumpxml and in guest.
To fix that, set dev->data.hostdev = NULL after work so that the
pointer is not freed, since vmdef has the pointer and still need it.
Signed-off-by: Chunyan Liu
---
src/libxl/libxl_driver.c | 1 +
After attach-device a with --config, new device doesn't
show up in dumpxml and in guest.
To fix that, set dev->data.hostdev = NULL after work so that the
pointer is not freed, since vmdef has the pointer and still need it.
Signed-off-by: Chunyan Liu
---
src/libxl/libxl_driver.c | 1 +
f_t offset, off_t len) will
return EINVAL when len is equal to 0. So, this patch adds a check
before calling safezero().
Signed-off-by: Chunyan Liu
---
src/storage/storage_backend.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/storage/storage_backend.c b/s
Signed-off-by: Chunyan Liu
---
src/remote/remote_driver.c | 1 +
src/remote/remote_protocol.x | 14 +-
src/remote_protocol-structs | 6 ++
src/rpc/gendispatch.pl | 12
4 files changed, 32 insertions(+), 1 deletion(-)
diff --git a/src/remote
;-> letter
mapping towards different guests, it just sends the key blindly to guests.
See:
http://www.redhat.com/archives/libvir-list/2015-January/msg00132.html
V3 is here:
http://www.redhat.com/archives/libvir-list/2014-December/msg00882.html
Chunyan Liu (5):
Add public API virDomainSendSy
Add public API virDomainSendSysrq for sending SysRequest key.
Signed-off-by: Chunyan Liu
---
include/libvirt/libvirt-domain.h | 3 +++
src/driver-hypervisor.h | 4
src/libvirt-domain.c | 39 +++
src/libvirt_public.syms
Support sending sysrq key to guest.
Signed-off-by: Chunyan Liu
---
src/xen/xen_driver.c| 21 +
src/xen/xend_internal.c | 30 ++
src/xen/xend_internal.h | 1 +
3 files changed, 52 insertions(+)
diff --git a/src/xen/xen_driver.c b/src/xen
Support .domainSendSysrq in libxl driver.
Signed-off-by: Chunyan Liu
---
src/libxl/libxl_driver.c | 25 +
1 file changed, 25 insertions(+)
diff --git a/src/libxl/libxl_driver.c b/src/libxl/libxl_driver.c
index 4135670..5ae565e 100644
--- a/src/libxl/libxl_driver.c
+++ b
All domainSendSysrq related API should be manageable from
the virsh command line. So, expose 'virsh sysrq' command.
Signed-off-by: Chunyan Liu
---
Changes:
* adjust code to follow general format and fix a memory leak
tools/virsh-dom
fault value to 1
to match xm config convension.
Signed-off-by: Chunyan Liu
---
src/xenconfig/xen_common.c | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/src/xenconfig/xen_common.c b/src/xenconfig/xen_common.c
index 25bdf26..221509a 100644
--- a/src/xenconfig/xen_common.c
Add tests to testing HVM default features (pae, acpi, apic)
conversion from xm config to libvirt xml. If no pae|acpi|apic
specified in xm config, after conversion, libvirt xml should
by default include:
Signed-off-by: Chunyan Liu
---
Changes to v1:
* add testcase to test HVM
fault value to 1
to match xm config convension.
Add tests data to test it.
---
Changes to v1:
* update xmconfigtest
Chunyan Liu (2):
xenconfig: set HVM pae/apic/acpi/ default to 1
Add tests to xmconfigtest
src/xenconfig/xen_common.c | 6 +--
.../xmconfigdata
fault value to 1
to match xm config convension.
Signed-off-by: Chunyan Liu
---
src/xenconfig/xen_common.c | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/src/xenconfig/xen_common.c b/src/xenconfig/xen_common.c
index 25bdf26..221509a 100644
--- a/src/xenconfig/xen_common.c
Add tests to testing HVM default features (pae, acpi, apic)
conversion from xm config to libvirt xml and from libvirt
xml to xm config.
Signed-off-by: Chunyan Liu
---
.../xmconfigdata/test-fullvirt-default-feature.cfg | 23 +++
.../test-fullvirt-default-feature.cfg.out | 26
fault value to 1
to match xm config convension.
Add tests data to test it.
Chunyan Liu (2):
xenconfig: set HVM pae/apic/acpi/ default to 1
Add tests to xmconfigtest
src/xenconfig/xen_common.c | 6 +--
.../xmconfigdata/test-fullvirt-default-feature.cfg
All domainSendSysrq related API should be manageable from
the virsh command line. So, expose 'virsh sysrq' command.
Signed-off-by: Chunyan Liu
---
tools/virsh-domain.c | 54
1 file changed, 54 insertions(+)
diff --git a/tools/virs
Support .domainSendSysrq in libxl driver.
Signed-off-by: Chunyan Liu
---
src/libxl/libxl_driver.c | 25 +
1 file changed, 25 insertions(+)
diff --git a/src/libxl/libxl_driver.c b/src/libxl/libxl_driver.c
index 53c87ce..7c96bab 100644
--- a/src/libxl/libxl_driver.c
+++ b
.
Changes to V2:
* change parameter from 'const char *key' to 'char key'.
* add 'flags' parameter to virDomainSendSysrq API.
* update codes to fit for above changes.
V2 is here:
http://www.mail-archive.com/libvir-list@redhat.com/msg106106.html
Chu
Add public API virDomainSendSysrq for sending SysRequest key.
Signed-off-by: Chunyan Liu
---
changes:
* add 'flags' to the new API
* change parameter from 'const char *key' to 'char key'
* change version number from 1.2.11 to 1.2.12
include/libvirt/libvirt
Support sending sysrq key to guest.
Signed-off-by: Chunyan Liu
---
src/xen/xen_driver.c| 21 +
src/xen/xend_internal.c | 26 ++
src/xen/xend_internal.h | 1 +
3 files changed, 48 insertions(+)
diff --git a/src/xen/xen_driver.c b/src/xen
Signed-off-by: Chunyan Liu
---
Changes:
* change args 'key' from 'remote_nonnull_string' to 'char'
* add code to gendispatch.pl to handle 'char|unsigned char' type
* update remote_protocol-strcuts
src/remote/remote_driver.c | 1 +
src/remote/re
.
Changes:
* add new API virDomainSendSysrq instead of hacking virDomainSendKey.
* add related changes according to new API, including libvirt API,
remote protocol, virsh and libxl/xen driver.
v1 is here:
https://www.redhat.com/archives/libvir-list/2014-December/msg00480.html
Chunyan Liu
Support .domainSendSysrq in libxl driver.
Signed-off-by: Chunyan Liu
---
src/libxl/libxl_driver.c | 23 +++
1 file changed, 23 insertions(+)
diff --git a/src/libxl/libxl_driver.c b/src/libxl/libxl_driver.c
index 53c87ce..0830d68 100644
--- a/src/libxl/libxl_driver.c
+++ b
Support .domainSendSysrq in xen driver.
Signed-off-by: Chunyan Liu
---
src/xen/xen_driver.c| 19 +++
src/xen/xend_internal.c | 20
src/xen/xend_internal.h | 2 ++
3 files changed, 41 insertions(+)
diff --git a/src/xen/xen_driver.c b/src/xen
Signed-off-by: Chunyan Liu
---
src/remote/remote_driver.c | 2 +-
src/remote/remote_protocol.x | 13 -
2 files changed, 13 insertions(+), 2 deletions(-)
diff --git a/src/remote/remote_driver.c b/src/remote/remote_driver.c
index 999f16d..97ea64b 100644
--- a/src/remote
All domainSendSysrq related API should be manageable from
the virsh command line. So, expose 'virsh sysrq' command.
Signed-off-by: Chunyan Liu
---
tools/virsh-domain.c | 54
1 file changed, 54 insertions(+)
diff --git a/tools/virs
Add public API virDomainSendSysrq for sending SysRequest key.
Signed-off-by: Chunyan Liu
---
include/libvirt/libvirt-domain.h | 3 +++
src/driver-hypervisor.h | 4
src/libvirt-domain.c | 38 ++
src/libvirt_public.syms | 1
Add virKeynameFromKeycode for later xen/libxl sendkey usage.
Signed-off-by: Chunyan Liu
---
src/libvirt_private.syms | 1 +
src/util/virkeycode.c| 17 +
src/util/virkeycode.h| 1 +
3 files changed, 19 insertions(+)
diff --git a/src/libvirt_private.syms b/src
libxl supports sysrq. Add .domainSendKey function to support
sending sysrq key.
Signed-off-by: Chunyan Liu
---
src/libxl/libxl_driver.c | 89
1 file changed, 89 insertions(+)
diff --git a/src/libxl/libxl_driver.c b/src/libxl/libxl_driver.c
index
xm/xend and libxl already support sending sysrq key. Adding the
equivalant to libvirt.
Chunyan Liu (3):
virkeycode: add virKeynameFromKeycode function
xen: add .domainSendKey
libxl: add .domainSendKey
src/libvirt_private.syms | 1 +
src/libxl/libxl_driver.c | 89
xm/xend supports sysrq command. Add .domainSendKey function to support
sending sysrq key.
Signed-off-by: Chunyan Liu
---
src/xen/xen_driver.c| 85 +
src/xen/xend_internal.c | 21
src/xen/xend_internal.h | 1 +
3 files changed
libxl_domain_build_info, so that libxl can handle. This
patch is just to do this.
Signed-off-by: Chunyan Liu
---
Changes:
- fix Jim's comments
src/libxl/libxl_conf.c | 18 +++
src/xenconfig/xen_common.c | 57 ++
2 files changed, 60 insertions(+
libxl_domain_build_info, so that libxl can handle. This
patch is just to do this.
Signed-off-by: Chunyan Liu
---
src/libxl/libxl_conf.c | 18
src/xenconfig/xen_common.c | 51 +-
2 files changed, 55 insertions(+), 14 deletions(-)
diff --git a/src/libxl
srwxr-xr-x 1 qemu qemu 0 21. Jul 14:19 /tmp/somefile.sock
Other users in the same group (like real user, test engines, etc)
cannot write to this socket.
Signed-off-by: Chunyan Liu
---
Changes:
* set umask(002) to the whole qemu process instead of calling
umask in qemu unix_listen_opts
efault
is 022), then create unix sockets with expected permissions.
Signed-off-by: Chunyan Liu
---
This is patch for qemu.
qemu-char.c | 3 +++
qemu-options.hx | 9 +++--
util/qemu-sockets.c | 12 +++-
3 files changed, 21 insertions(+), 3 deletions(-)
diff --git a/qemu-
n case. In
qemu side, there is another patch to handle the 'umask' option
to overwrite default umask(022). With these changes, unix
socket created for virtio-serial device can have expected
permissions.
Signed-off-by: Chunyan Liu
---
This is patch for libvirt.
src/qemu/qemu_comma
and a libvirt patch:
qemu patch: adds a new 'umask' option to -chardev, so that user can
change the umask.
libvirt patch: pass 'umask=0x002' paramter to qemu command line
for virtio-serial device
Chunyan Liu (2):
qemu side: add 'umask' option to chardev
lib
which is called by vshConnect
will use stdin, and at the same time, in cmdMigrate main process,
poll() is listening to stdin, that probably affect poll() to get
pipe_fd event. Better to move authentication before vshWatchJob. With
this change, above problem does not exist.
Si
ested with block device whose source path is /dev/sdaX,
after blockcopy, shutdown VM and then create VM from xml again, the
VM cannot be started.) This case should not be allowed.
Signed-off-by: Chunyan Liu
---
src/qemu/qemu_driver.c | 7 +++
1 file changed, 7 insertions(+)
diff --git
ires
qemu-img version >= 2.1).
Signed-off-by: Chunyan Liu
---
Changes:
* fix typo
docs/formatstorage.html.in| 7 +++
docs/schemas/storagevol.rng | 5 +
src/conf/storage_conf.c | 3 +++
src/storage/storage_backend.c | 22 ++
src/util/virstoragef
parate patch
V2 is here:
http://www.redhat.com/archives/libvir-list/2014-July/msg00361.html
Chunyan Liu (2):
storagevol: add nocow to vol xml
add nocow test case
docs/formatstorage.html.in | 7 +
docs/schemas/storagevol.rng| 5
src
Add file in storagevolxml2xmlin and storagevolxml2xmlout, let
storagevolxml2xmltest and storagevolschematest cover 'nocow'.
Add test case to storagevolxml2argvtest to cover 'nocow'.
Signed-off-by: Chunyan Liu
---
.../storagevolxml2argvdata/qcow2-nocow-compat
OMAIN_DEVICE_MODIFY_LIVE logic, the error would be reported but the
function would return success.
Signed-off-by: Chunyan Liu
---
src/libxl/libxl_driver.c | 24
1 file changed, 12 insertions(+), 12 deletions(-)
diff --git a/src/libxl/libxl_driver.c b/src/libxl/libxl_driver.
Add code to support attach/detaching a network device.
Signed-off-by: Chunyan Liu
---
src/libxl/libxl_domain.c | 12 +++-
src/libxl/libxl_driver.c | 146 ---
2 files changed, 149 insertions(+), 9 deletions(-)
diff --git a/src/libxl/libxl_domain.c b
Missing HOSTDEV type in libxlDomainDetachDeviceConfig. Add it.
Signed-off-by: Chunyan Liu
---
src/libxl/libxl_driver.c | 23 ++-
1 file changed, 18 insertions(+), 5 deletions(-)
diff --git a/src/libxl/libxl_driver.c b/src/libxl/libxl_driver.c
index b27581e..5e08bba 100644
This patch series is to add support for attach/detaching an
device. At the same time, add two fixes (1/3 and 3/3)
Chunyan Liu (3):
libxl: add HOSTDEV type in libxlDomainDetachDeviceConfig
libxl: support hotplug of
libxl: fix return value error Attach|DetachDeviceFlags
.gnulib
ires
qemu-img version >= 2.1).
Signed-off-by: Chunyan Liu
---
Changes:
- now qemu-img can handle 'nocow=on' option, just pass 'nocow=on' to
qemu-img for non-raw file images. No need to handle all file type
in libvirt code.
Pervious version is here:
http://www.re
is supported, but
nowhere mentions 'managed' in syntax.
Update documentation to cover it.
Signed-off-by: Chunyan Liu
---
docs/formatdomain.html.in | 14 +-
1 file changed, 13 insertions(+), 1 deletion(-)
diff --git a/docs/formatdomain.html.in b/docs/formatdomain.htm
Signed-off-by: Chunyan Liu
---
src/libxl/libxl_conf.c | 16 +++-
1 file changed, 11 insertions(+), 5 deletions(-)
diff --git a/src/libxl/libxl_conf.c b/src/libxl/libxl_conf.c
index 298c8a1..b7fed7f 100644
--- a/src/libxl/libxl_conf.c
+++ b/src/libxl/libxl_conf.c
@@ -921,25 +921,31
For libxl driver usage, it didn't support hostdev passthrough before,
oldStateDir is NULL when calling virHostdevReAttachDomainHostdevs.
That is allowed. Remove ATTRIBUTE_NONNULL setting to oldStateDir.
Signed-off-by: Chunyan Liu
---
src/util/virhostdev.h | 2 +-
1 file changed, 1 inse
Following Jim's comments about "add pci passthrough to libxl" patch:
https://www.redhat.com/archives/libvir-list/2014-March/msg00170.html
Signed-off-by: Chunyan Liu
---
src/libxl/libxl_driver.c | 47 +++
1 file changed, 19 insertions(+
2014-03-12 23:11 GMT+08:00 Daniel P. Berrange :
> On Fri, Mar 07, 2014 at 06:53:12PM +0800, Chunyan Liu wrote:
> > Check NULL parameter inputs
> >
> > Signed-off-by: Chunyan Liu
> > ---
> > src/util/virhostdev.c | 57
> +++
2014-03-12 23:12 GMT+08:00 Daniel P. Berrange :
> On Fri, Mar 07, 2014 at 06:53:09PM +0800, Chunyan Liu wrote:
> > Signed-off-by: Chunyan Liu
> > ---
> > src/libvirt_private.syms | 8
> > src/qemu/qemu_hostdev.c | 16 +++
> &g
Changes parameter from vm def to specific hostdevs info and name info, so that
it could be used more widely, e.g, could be used without full vm def info.
Signed-off-by: Chunyan Liu
---
src/qemu/qemu_hostdev.c | 9 ++---
src/util/virhostdev.c | 34 --
src
1 - 100 of 290 matches
Mail list logo