[Qemu-devel] [PATCH] fix xen hvm direct kernel boot

2016-04-28 Thread Chunyan Liu
e in rom_set_mr. Signed-off-by: Chunyan Liu --- hw/core/loader.c | 6 +- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/hw/core/loader.c b/hw/core/loader.c index c049957..5150101 100644 --- a/hw/core/loader.c +++ b/hw/core/loader.c @@ -55,6 +55,7 @@ #include "exec/address

[Qemu-devel] [PATCH] fix xen hvm direct kernel boot

2016-04-28 Thread Chunyan Liu
e in rom_set_mr. Signed-off-by: Chunyan Liu --- hw/core/loader.c | 6 +- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/hw/core/loader.c b/hw/core/loader.c index c049957..5150101 100644 --- a/hw/core/loader.c +++ b/hw/core/loader.c @@ -55,6 +55,7 @@ #include "exec/address

[Qemu-devel] [PATCH] vnc: add additional key up event before repeated key down

2014-09-04 Thread Chunyan Liu
nt (if the key is not a control key). Signed-off-by: Chunyan Liu --- ui/vnc.c | 19 +++ 1 file changed, 19 insertions(+) diff --git a/ui/vnc.c b/ui/vnc.c index f8d9b7d..a265378 100644 --- a/ui/vnc.c +++ b/ui/vnc.c @@ -1659,6 +1659,25 @@ static void do_key_event(VncState *vs, int

[Qemu-devel] [PATCH V2] fix: unix sockets created for virtio-serail has insufficient permissions

2014-09-02 Thread Chunyan Liu
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

[Qemu-devel] [PATCH 2/2] qemu: add umask(002) to virtio-serial chardev commandline

2014-09-02 Thread Chunyan Liu
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

[Qemu-devel] [PATCH 1/2] add 'umask' option to -chardev

2014-09-02 Thread Chunyan Liu
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-

[Qemu-devel] [PATCH 0/2] fix: unix sockets created for virtio-serail has insufficient permissions

2014-09-02 Thread Chunyan Liu
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

[Qemu-devel] [RESEND PATCH V3] qemu-img info: show nocow info

2014-07-29 Thread Chunyan Liu
Add nocow info in 'qemu-img info' output to show whether the file currently has NOCOW flag set or not. Signed-off-by: Chunyan Liu Reviewed-by: Eric Blake --- Resend for QEMU 2.2. Change json version comment. Add Reviewed-by. block/qapi.c | 25 +

[Qemu-devel] [RESEND PATCH V3] qemu-img info: show nocow info

2014-07-29 Thread Chunyan Liu
Add nocow info in 'qemu-img info' output to show whether the file currently has NOCOW flag set or not. Signed-off-by: Chunyan Liu Acked-by: Eric Blake --- Resend for QEMU 2.2. Change json version comment. block/qapi.c | 25 + qapi/block-core.json |

[Qemu-devel] [PATCH for 2.1 V3] qemu-img info: show nocow info

2014-07-08 Thread Chunyan Liu
Add nocow info in 'qemu-img info' output to show whether the file currently has NOCOW flag set or not. Signed-off-by: Chunyan Liu --- Changes: - update output info to "NOCOW flag: set" block/qapi.c | 25 + qapi/block-core.json | 5 -

[Qemu-devel] [PATCH for 2.1 V2] qemu-img info: show nocow info

2014-07-07 Thread Chunyan Liu
Add nocow info in 'qemu-img info' output to show whether the file currently has NOCOW flag set or not. Signed-off-by: Chunyan Liu --- Changes: - add documentation of "nocow" in qapi/block-core.json. block/qapi.c | 25 + qapi/block-core.json

[Qemu-devel] [RFC PATCH V5 3/3] qemu: support xen hvm direct kernel boot

2014-07-06 Thread Chunyan Liu
n xen uses seabios. During this work, found the 'kvmvapic' is in option_rom list, it should not be there in xen case. Set s->vapic_control = 0 in xen_apic_realize() to handle that. Signed-off-by: Chunyan Liu Acked-by: Stefano Stabellini Acked-by: Michael S. Tsirkin --- hw/i386/p

[Qemu-devel] [RFC PATCH V5 2/3] xl.cfg: add 'cmdline' in config file

2014-07-06 Thread Chunyan Liu
7-default" root="/dev/hda2" extra="console=tty0 console=ttyS0" [snip] or: [snip] builder="hvm" device_model_override="/home/cyliu/git/qemu/x86_64-softmmu/qemu-system-x86_64" kernel="/mnt/vmlinuz-3.0.13-0.27-default" ramdisk="/mnt/initrd-3.0.

[Qemu-devel] [RFC PATCH V5 0/3] Support xen HVM direct kernel boot

2014-07-06 Thread Chunyan Liu
014-07/msg00026.html v3 is here: https://lists.nongnu.org/archive/html/qemu-devel/2014-06/msg04903.html v2 is here: http://thread.gmane.org/gmane.comp.emulators.qemu/277514 v1 is here: http://lists.gnu.org/archive/html/qemu-devel/2014-05/msg06233.html Chunyan Liu (3): xen: pass kernel initrd t

[Qemu-devel] [RFC PATCH V5 1/3] xen: pass kernel initrd to qemu

2014-07-06 Thread Chunyan Liu
/hda2" extra="console=tty0 console=ttyS0" disk=[ 'file:/mnt/images/sles11_sp2/disk0.raw,hda,w', ] vif=[ 'mac=00:16:3e:56:af:69,bridge=br0,type=netfront', ] stdvga=0 vnc=1 vncunused=1 viridian=0 acpi=1 pae=1 serial="pty" Signed-off-by: Chunyan Liu

[Qemu-devel] [PATCH] qemu-img info: show nocow info

2014-07-02 Thread Chunyan Liu
Add nocow info in 'qemu-img info' output to show whether the file currently has NOCOW flag set or not. Signed-off-by: Chunyan Liu --- block/qapi.c | 25 + qapi/block-core.json | 3 ++- 2 files changed, 27 insertions(+), 1 deletion(-) diff --git a/bloc

[Qemu-devel] [PATCH] Fix nocow typos in manpage

2014-07-01 Thread Chunyan Liu
Signed-off-by: Chunyan Liu --- qemu-doc.texi | 4 ++-- qemu-img.texi | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/qemu-doc.texi b/qemu-doc.texi index ad92c85..551619a 100644 --- a/qemu-doc.texi +++ b/qemu-doc.texi @@ -590,7 +590,7 @@ check -r all} is required, which

[Qemu-devel] [RFC PATCH V4 0/2] Support xen HVM direct kernel boot

2014-07-01 Thread Chunyan Liu
g/archive/html/qemu-devel/2014-06/msg04903.html v2 is here: http://thread.gmane.org/gmane.comp.emulators.qemu/277514 v1 is here: http://lists.gnu.org/archive/html/qemu-devel/2014-05/msg06233.html Chunyan Liu (2): xen: pass kernel initrd to qemu qemu: support xen HVM direct kernel boot -- 1.8.4.5

[Qemu-devel] [RFC PATCH V4 2/2] qemu: support xen hvm direct kernel boot

2014-07-01 Thread Chunyan Liu
n xen uses seabios. During this work, found the 'kvmvapic' is in option_rom list, it should not be there in xen case. Set s->vapic_control = 0 in xen_apic_realize() to handle that. Signed-off-by: Chunyan Liu --- Changes to v3: - add assertion before adding option rom as Stefan sugge

[Qemu-devel] [RFC PATCH V4 1/2] xen: pass kernel initrd to qemu

2014-07-01 Thread Chunyan Liu
It's working with qemu-xen when using the default BIOS (seabios). [config example] kernel="/mnt/vmlinuz-3.0.13-0.27-default" ramdisk="/mnt/initrd-3.0.13-0.27-default" root="/dev/hda2" extra="console=tty0 console=ttyS0" Signed-off-by: Chunyan Liu ---

[Qemu-devel] [PATCH V4] qemu-img create: add 'nocow' option

2014-06-29 Thread Chunyan Liu
reating file by calling qemu_open directly. For them, do the same setting NOCOW flag ioctl work in them separately. Signed-off-by: Chunyan Liu --- Changes to v3: * remove NOCOW option from .create_opts of those drivers calling bdrv_create_file to create file. Adding NOCOW to raw-posix.c

[Qemu-devel] [PATCH V3] qemu-img create: add 'nocow' option

2014-06-23 Thread Chunyan Liu
reating file by calling qemu_open directly. For them, do the same setting NOCOW flag ioctl work in them separately. Signed-off-by: Chunyan Liu --- Changes to v2: * based on QemuOpts instead of old QEMUOptionParameters * add nocow description in man page and html doc Old v2 is here: http:

[Qemu-devel] [RFC PATCH V3 2/2] qemu: support xen hvm direct kernel boot

2014-06-19 Thread Chunyan Liu
n xen uses seabios. Signed-off-by: Chunyan Liu --- hw/i386/pc.c | 22 ++ hw/i386/pc_piix.c | 7 +++ hw/i386/xen/xen_apic.c | 1 + include/hw/i386/pc.h | 5 + 4 files changed, 35 insertions(+) diff --git a/hw/i386/pc.c b/hw/i386/pc.c index 3e0ecf1..e0

[Qemu-devel] [RFC PATCH V3 1/2] xen: pass kernel initrd to qemu

2014-06-19 Thread Chunyan Liu
lt" ramdisk="/mnt/initrd-3.0.13-0.27-default" root="/dev/hda2" extra="console=tty0 console=ttyS0" Signed-off-by: Chunyan Liu --- docs/man/xl.cfg.pod.5 | 57 +-- tools/libxl/libxl.h | 13 ++

[Qemu-devel] [RFC PATCH V3 0/2] support xen HVM direct kernel boot

2014-06-19 Thread Chunyan Liu
here: http://thread.gmane.org/gmane.comp.emulators.qemu/277514 v1 is here: http://lists.gnu.org/archive/html/qemu-devel/2014-05/msg06233.html Chunyan Liu (2): xen: pass kernel initrd to qemu qemu: support xen hvm direct kernel boot docs/man/xl.cfg.pod.5 | 57 ++

[Qemu-devel] [PATCH] check NULL opts in qemu_opt_get functions

2014-06-17 Thread Chunyan Liu
Some places will call bdrv_create_file(filename, NULL, &local_err), where opts is NULL. Check NULL in qemu_opt_get and qemu_opt_get_*_del functions, to avoid extra effort of checking opts before calling them every time. Signed-off-by: Chunyan Liu --- Fix reported bugs: http://lists.gnu

[Qemu-devel] [PATCH v28 33/33] QemuOpts: cleanup tmp 'allocated' member from QemuOptsList

2014-06-05 Thread Chunyan Liu
o, we can remove the 'allocated' member from QemuOptsList definition to keep code clean. Signed-off-by: Chunyan Liu --- include/qemu/option.h | 6 -- util/qemu-option.c| 27 +++ 2 files changed, 3 insertions(+), 30 deletions(-) diff --git a/include/qemu/option.h

[Qemu-devel] [PATCH v28 24/33] raw_bsd.c: replace QEMUOptionParameter with QemuOpts

2014-06-05 Thread Chunyan Liu
Reviewed-by: Stefan Hajnoczi Signed-off-by: Dong Xu Wang Signed-off-by: Chunyan Liu --- block/raw_bsd.c | 27 +++ 1 file changed, 15 insertions(+), 12 deletions(-) diff --git a/block/raw_bsd.c b/block/raw_bsd.c index 9ae5fc2..ee797fd 100644 --- a/block/raw_bsd.c +++ b

[Qemu-devel] [PATCH v28 22/33] raw-posix.c: replace QEMUOptionParameter with QemuOpts

2014-06-05 Thread Chunyan Liu
Reviewed-by: Stefan Hajnoczi Signed-off-by: Dong Xu Wang Signed-off-by: Chunyan Liu --- block/raw-posix.c | 59 +-- 1 file changed, 27 insertions(+), 32 deletions(-) diff --git a/block/raw-posix.c b/block/raw-posix.c index b7f0f26..e0a75db

[Qemu-devel] [PATCH v28 00/33] replace QEMUOptionParameter with QemuOpts

2014-06-05 Thread Chunyan Liu
available from: https://github.com/chunyanliu/qemu/commits/QemuOpts Chunyan Liu (33): QemuOpts: move find_desc_by_name ahead for later calling QemuOpts: repurpose qemu_opts_print to replace print_option_parameters QemuOpts: add def_value_str to QemuOptDesc qapi: output def_value_str when

[Qemu-devel] [PATCH v28 08/33] QemuOpts: add qemu_opts_print_help to replace print_option_help

2014-06-05 Thread Chunyan Liu
print_option_help takes QEMUOptionParameter as parameter, add qemu_opts_print_help to take QemuOptsList as parameter for later replace work. Reviewed-by: Eric Blake Reviewed-by: Leandro Dorileo Signed-off-by: Dong Xu Wang Signed-off-by: Chunyan Liu --- include/qemu/option.h | 1 + util/qemu

[Qemu-devel] [PATCH v28 02/33] QemuOpts: repurpose qemu_opts_print to replace print_option_parameters

2014-06-05 Thread Chunyan Liu
Currently this function is not used anywhere. In later patches, it will replace print_option_parameters. To avoid print info changes, change qemu_opts_print from fprintf stderr to printf, and remove last printf. Signed-off-by: Chunyan Liu Reviewed-by: Eric Blake --- include/qemu/option.h | 2

[Qemu-devel] [PATCH v28 30/33] vmdk.c: replace QEMUOptionParameter with QemuOpts

2014-06-05 Thread Chunyan Liu
Reviewed-by: Stefan Hajnoczi Signed-off-by: Dong Xu Wang Signed-off-by: Chunyan Liu --- block/vmdk.c | 123 ++- 1 file changed, 63 insertions(+), 60 deletions(-) diff --git a/block/vmdk.c b/block/vmdk.c index 79d55b0..78d7312 100644

[Qemu-devel] [PATCH v28 32/33] cleanup QEMUOptionParameter

2014-06-05 Thread Chunyan Liu
Now that all backend drivers are using QemuOpts, remove all QEMUOptionParameter related codes. Signed-off-by: Dong Xu Wang Signed-off-by: Chunyan Liu --- block.c | 93 ++ block/cow.c | 4 +- block/gluster.c | 8 +- block/iscsi.c

[Qemu-devel] [PATCH v28 23/33] raw-win32.c: replace QEMUOptionParameter with QemuOpts

2014-06-05 Thread Chunyan Liu
Reviewed-by: Stefan Hajnoczi Signed-off-by: Dong Xu Wang Signed-off-by: Chunyan Liu --- block/raw-win32.c | 38 +++--- 1 file changed, 19 insertions(+), 19 deletions(-) diff --git a/block/raw-win32.c b/block/raw-win32.c index 064ea31..e5ac297 100644 --- a/block

[Qemu-devel] [PATCH v28 31/33] vpc.c: replace QEMUOptionParameter with QemuOpts

2014-06-05 Thread Chunyan Liu
Reviewed-by: Stefan Hajnoczi Signed-off-by: Dong Xu Wang Signed-off-by: Chunyan Liu --- block/vpc.c | 62 + 1 file changed, 34 insertions(+), 28 deletions(-) diff --git a/block/vpc.c b/block/vpc.c index 2e25f57..8ebf424 100644 --- a

[Qemu-devel] [PATCH v28 19/33] QemuOpts: export qemu_opt_find

2014-06-05 Thread Chunyan Liu
Export qemu_opt_find for qcow2 driver using it. After replacing QEMUOptionParameter with QemuOpts, qcow2 driver will use qemu_opt_find to judge if an option is explicitly set, to replace the usage of .assigned in QEMUOptionParameter. Signed-off-by: Chunyan Liu --- Changes: * same as v27

[Qemu-devel] [PATCH v28 27/33] ssh.c: replace QEMUOptionParameter with QemuOpts

2014-06-05 Thread Chunyan Liu
Reviewed-by: Stefan Hajnoczi Signed-off-by: Dong Xu Wang Signed-off-by: Chunyan Liu --- block/ssh.c | 32 +++- 1 file changed, 15 insertions(+), 17 deletions(-) diff --git a/block/ssh.c b/block/ssh.c index b212971..b6d55bc 100644 --- a/block/ssh.c +++ b/block/ssh.c

[Qemu-devel] [PATCH v28 29/33] vhdx.c: replace QEMUOptionParameter with QemuOpts

2014-06-05 Thread Chunyan Liu
Reviewed-by: Stefan Hajnoczi Signed-off-by: Dong Xu Wang Signed-off-by: Chunyan Liu --- block/vhdx.c | 99 +--- block/vhdx.h | 1 + 2 files changed, 48 insertions(+), 52 deletions(-) diff --git a/block/vhdx.c b/block/vhdx.c index

[Qemu-devel] [PATCH v28 25/33] rbd.c: replace QEMUOptionParameter with QemuOpts

2014-06-05 Thread Chunyan Liu
Reviewed-by: Stefan Hajnoczi Signed-off-by: Dong Xu Wang Signed-off-by: Chunyan Liu --- block/rbd.c | 63 + 1 file changed, 30 insertions(+), 33 deletions(-) diff --git a/block/rbd.c b/block/rbd.c index 09af484..d7f22af 100644 --- a

[Qemu-devel] [PATCH v28 14/33] cow.c: replace QEMUOptionParameter with QemuOpts

2014-06-05 Thread Chunyan Liu
Reviewed-by: Eric Blake Reviewed-by: Stefan Hajnoczi Signed-off-by: Dong Xu Wang Signed-off-by: Chunyan Liu --- block/cow.c | 54 ++ 1 file changed, 26 insertions(+), 28 deletions(-) diff --git a/block/cow.c b/block/cow.c index 7e61024

[Qemu-devel] [PATCH v28 28/33] vdi.c: replace QEMUOptionParameter with QemuOpts

2014-06-05 Thread Chunyan Liu
Reviewed-by: Stefan Hajnoczi Signed-off-by: Dong Xu Wang Signed-off-by: Chunyan Liu --- block/vdi.c | 73 + 1 file changed, 35 insertions(+), 38 deletions(-) diff --git a/block/vdi.c b/block/vdi.c index 27737af..fe5cad2 100644 --- a

[Qemu-devel] [PATCH v28 21/33] qed.c: replace QEMUOptionParameter with QemuOpts

2014-06-05 Thread Chunyan Liu
r. That is, .def_value_str = stringify(QED_DEFAULT_CLUSTER_SIZE), so the QED_DEFAULT_CLUSTER_SIZE could not be a expression. Reviewed-by: Stefan Hajnoczi Reviewed-by: Eric Blake Signed-off-by: Dong Xu Wang Signed-off-by: Chunyan Liu --- block/q

[Qemu-devel] [PATCH v28 13/33] vvfat.c: handle cross_driver's create_options and create_opts

2014-06-05 Thread Chunyan Liu
vvfat shares create options of qcow driver. To avoid vvfat breaking when qcow driver changes from QEMUOptionParameter to QemuOpts, let it able to handle both cases. Signed-off-by: Chunyan Liu Reviewed-by: Eric Blake --- block/vvfat.c | 24 +--- 1 file changed, 17 insertions

[Qemu-devel] [PATCH v28 12/33] change block layer to support both QemuOpts and QEMUOptionParamter

2014-06-05 Thread Chunyan Liu
Change block layer to support both QemuOpts and QEMUOptionParameter. After this patch, it will change backend drivers one by one. At the end, QEMUOptionParameter will be removed and only QemuOpts is kept. Signed-off-by: Dong Xu Wang Signed-off-by: Chunyan Liu Reviewed-by: Eric Blake

[Qemu-devel] [PATCH v28 20/33] qcow2.c: replace QEMUOptionParameter with QemuOpts

2014-06-05 Thread Chunyan Liu
Signed-off-by: Dong Xu Wang Signed-off-by: Chunyan Liu --- Changes: * same as v27 * changes to v26: split v26 qcow2.c patch into two, move qemu_opt_find to a separate patch. block/qcow2.c | 261 +++--- 1 file changed, 139 insertions

[Qemu-devel] [PATCH v28 26/33] sheepdog.c: replace QEMUOptionParameter with QemuOpts

2014-06-05 Thread Chunyan Liu
Reviewed-by: Stefan Hajnoczi Signed-off-by: Dong Xu Wang Signed-off-by: Chunyan Liu --- block/sheepdog.c | 111 --- 1 file changed, 56 insertions(+), 55 deletions(-) diff --git a/block/sheepdog.c b/block/sheepdog.c index 4ecbf5f..c971117

[Qemu-devel] [PATCH v28 15/33] gluster.c: replace QEMUOptionParameter with QemuOpts

2014-06-05 Thread Chunyan Liu
Reviewed-by: Stefan Hajnoczi Reviewed-by: Eric Blake Signed-off-by: Dong Xu Wang Signed-off-by: Chunyan Liu --- block/gluster.c | 81 ++--- 1 file changed, 42 insertions(+), 39 deletions(-) diff --git a/block/gluster.c b/block/gluster.c

[Qemu-devel] [PATCH v28 17/33] nfs.c: replace QEMUOptionParameter with QemuOpts

2014-06-05 Thread Chunyan Liu
Reviewed-by: Stefan Hajnoczi Reviewed-by: Eric Blake Signed-off-by: Chunyan Liu --- block/nfs.c | 12 +++- 1 file changed, 3 insertions(+), 9 deletions(-) diff --git a/block/nfs.c b/block/nfs.c index 539bd95..20a90e2 100644 --- a/block/nfs.c +++ b/block/nfs.c @@ -361,20 +361,14

[Qemu-devel] [PATCH v28 11/33] QemuOpts: check NULL input for qemu_opts_del

2014-06-05 Thread Chunyan Liu
To simplify later using of qemu_opts_del, accept NULL input. Reviewed-by: Stefan Hajnoczi Reviewed-by: Eric Blake Reviewed-by: Leandro Dorileo Signed-off-by: Chunyan Liu --- util/qemu-option.c | 4 1 file changed, 4 insertions(+) diff --git a/util/qemu-option.c b/util/qemu-option.c

[Qemu-devel] [PATCH v28 10/33] QemuOpts: add qemu_opts_append to replace append_option_parameters

2014-06-05 Thread Chunyan Liu
For later merge .create_opts of drv and proto_drv in qemu-img commands. Reviewed-by: Stefan Hajnoczi Reviewed-by: Eric Blake Reviewed-by: Leandro Dorileo Signed-off-by: Chunyan Liu --- include/qemu/option.h | 5 util/qemu-option.c| 67

[Qemu-devel] [PATCH v28 09/33] QemuOpts: add conversion between QEMUOptionParameter to QemuOpts

2014-06-05 Thread Chunyan Liu
: Leandro Dorileo Signed-off-by: Chunyan Liu --- include/qemu/option.h | 9 +++ util/qemu-option.c| 153 ++ 2 files changed, 162 insertions(+) diff --git a/include/qemu/option.h b/include/qemu/option.h index fbf5dc2..e98e8ef 100644 --- a/include

[Qemu-devel] [PATCH v28 04/33] qapi: output def_value_str when query command line options

2014-06-05 Thread Chunyan Liu
Change qapi interfaces to output the newly added def_value_str when querying command line options. Reviewed-by: Stefan Hajnoczi Reviewed-by: Eric Blake Reviewed-by: Leandro Dorileo Signed-off-by: Dong Xu Wang Signed-off-by: Chunyan Liu --- qapi-schema.json | 5 - qmp-commands.hx

[Qemu-devel] [PATCH v28 07/33] QemuOpts: add qemu_opt_get_*_del functions for replace work

2014-06-05 Thread Chunyan Liu
t_get returns (const char *), and could not change to (char *), since in one case, it will return desc->def_value_str, which is (const char *). Reviewed-by: Eric Blake Signed-off-by: Dong Xu Wang Signed-off-by: Chunyan Liu --- include/qemu/option.h | 6 +++ util/qemu-option.c

[Qemu-devel] [PATCH v28 01/33] QemuOpts: move find_desc_by_name ahead for later calling

2014-06-05 Thread Chunyan Liu
Reviewed-by: Stefan Hajnoczi Reviewed-by: Eric Blake Signed-off-by: Chunyan Liu --- util/qemu-option.c | 28 ++-- 1 file changed, 14 insertions(+), 14 deletions(-) diff --git a/util/qemu-option.c b/util/qemu-option.c index 324e4c5..c188c5c 100644 --- a/util/qemu

[Qemu-devel] [PATCH v28 18/33] qcow.c: replace QEMUOptionParameter with QemuOpts

2014-06-05 Thread Chunyan Liu
Reviewed-by: Stefan Hajnoczi Signed-off-by: Dong Xu Wang Signed-off-by: Chunyan Liu --- block/qcow.c | 72 ++-- 1 file changed, 36 insertions(+), 36 deletions(-) diff --git a/block/qcow.c b/block/qcow.c index 32651eb..bcacfb8 100644

[Qemu-devel] [PATCH v28 16/33] iscsi.c: replace QEMUOptionParameter with QemuOpts

2014-06-05 Thread Chunyan Liu
Reviewed-by: Stefan Hajnoczi Signed-off-by: Dong Xu Wang Signed-off-by: Chunyan Liu --- block/iscsi.c | 34 -- 1 file changed, 16 insertions(+), 18 deletions(-) diff --git a/block/iscsi.c b/block/iscsi.c index 3892cc5..76d4623 100644 --- a/block/iscsi.c +++ b

[Qemu-devel] [PATCH v28 03/33] QemuOpts: add def_value_str to QemuOptDesc

2014-06-05 Thread Chunyan Liu
Improve qemu_opts_print: if option is set, print opt->str; otherwise, if desc->def_value_str is set, print it. Signed-off-by: Dong Xu Wang Signed-off-by: Chunyan Liu Reviewed-by: Eric Blake --- include/qemu/option.h | 1 + util/qemu-option.c| 56 +++

[Qemu-devel] [PATCH v28 05/33] QemuOpts: change opt->name|str from (const char *) to (char *)

2014-06-05 Thread Chunyan Liu
truct becomes clearer. Reviewed-by: Eric Blake Reviewed-by: Leandro Dorileo Signed-off-by: Chunyan Liu --- include/qemu/option_int.h | 4 ++-- qapi/opts-visitor.c | 10 +++--- util/qemu-option.c| 4 ++-- 3 files changed, 11 insertions(+), 7 deletions(-) diff --git a/include

[Qemu-devel] [PATCH v28 06/33] QemuOpts: move qemu_opt_del ahead for later calling

2014-06-05 Thread Chunyan Liu
In later patch, qemu_opt_get_del functions will be added, they will first get the option value, then call qemu_opt_del to remove the option from opt list. To prepare for that purpose, move qemu_opt_del ahead first. Reviewed-by: Eric Blake Reviewed-by: Leandro Dorileo Signed-off-by: Chunyan Liu

[Qemu-devel] [RFC PATCH V2 2/2] qemu: support xen hvm direct kernel boot

2014-06-04 Thread Chunyan Liu
n xen uses seabios. Signed-off-by: Chunyan Liu --- Changes: * remove kvmvpaic.bin from xen option_rom by hacking: +s->vapic_control = 0; rather than the way of checking and bypassing it in xen_load_linux(). hw/i386/pc.c | 22 ++ hw/i386/pc_piix.c

[Qemu-devel] [RFC PATCH V2 0/2] support xen HVM direct kernel boot

2014-06-04 Thread Chunyan Liu
06233.html Chunyan Liu (2): xen: pass kernel initrd to qemu qemu: support xen hvm direct kernel boot

[Qemu-devel] [RFC PATCH V2 1/2] xen: pass kernel initrd to qemu

2014-06-04 Thread Chunyan Liu
m cases are currently not supported. [config example] kernel="/mnt/vmlinuz-3.0.13-0.27-default" ramdisk="/mnt/initrd-3.0.13-0.27-default" root="/dev/hda2" extra="console=tty0 console=ttyS0" disk=[ 'file:/mnt/images/bjz_04_sles11_sp2/disk0.raw,hda,w',

[Qemu-devel] [RFC PATCH 2/2] qemu: support xen hvm direct kernel boot

2014-05-28 Thread Chunyan Liu
n xen uses seabios. Signed-off-by: Chunyan Liu --- hw/i386/pc.c | 29 + hw/i386/pc_piix.c| 7 +++ include/hw/i386/pc.h | 5 + 3 files changed, 41 insertions(+) diff --git a/hw/i386/pc.c b/hw/i386/pc.c index e6369d5..dcd5d48 100644 --- a/hw/i386/pc.c

[Qemu-devel] [RFC PATCH 1/2] xen: pass kernel initrd to qemu

2014-05-28 Thread Chunyan Liu
ot; ramdisk="/mnt/initrd-3.0.13-0.27-default" root="/dev/hda2" extra="console=tty0 console=ttyS0" disk=[ 'file:/mnt/images/bjz_04_sles11_sp2/disk0.raw,hda,w', ] Signed-off-by: Chunyan Liu --- tools/libxl/libxl_dm.c | 20 ++

[Qemu-devel] [RFC PATCH 0/2] support xen HVM direct kernel boot

2014-05-28 Thread Chunyan Liu
prove the work. Any comment or feedback would be very appreciated! Thanks. Chunyan Liu (2): xen: pass kernel initrd to qemu qemu: support xen hvm direct kernel boot

[Qemu-devel] [PATCH v27 33/33] QemuOpts: cleanup tmp 'allocated' member from QemuOptsList

2014-05-07 Thread Chunyan Liu
o, we can remove the 'allocated' member from QemuOptsList definition to keep code clean. Signed-off-by: Chunyan Liu --- include/qemu/option.h | 6 -- util/qemu-option.c| 27 +++ 2 files changed, 3 insertions(+), 30 deletions(-) diff --git a/include/qemu/option.h

[Qemu-devel] [PATCH v27 12/33] change block layer to support both QemuOpts and QEMUOptionParamter

2014-05-07 Thread Chunyan Liu
Change block layer to support both QemuOpts and QEMUOptionParameter. After this patch, it will change backend drivers one by one. At the end, QEMUOptionParameter will be removed and only QemuOpts is kept. Signed-off-by: Dong Xu Wang Signed-off-by: Chunyan Liu --- Changes: * Fix Eric&#

[Qemu-devel] [PATCH v27 16/33] iscsi.c: replace QEMUOptionParameter with QemuOpts

2014-05-07 Thread Chunyan Liu
Reviewed-by: Stefan Hajnoczi Signed-off-by: Dong Xu Wang Signed-off-by: Chunyan Liu --- block/iscsi.c | 34 -- 1 file changed, 16 insertions(+), 18 deletions(-) diff --git a/block/iscsi.c b/block/iscsi.c index a30202b..e4a127b 100644 --- a/block/iscsi.c +++ b

[Qemu-devel] [PATCH v27 27/33] ssh.c: replace QEMUOptionParameter with QemuOpts

2014-05-07 Thread Chunyan Liu
Reviewed-by: Stefan Hajnoczi Signed-off-by: Dong Xu Wang Signed-off-by: Chunyan Liu --- block/ssh.c | 32 +++- 1 file changed, 15 insertions(+), 17 deletions(-) diff --git a/block/ssh.c b/block/ssh.c index aa63c9d..3a5eead 100644 --- a/block/ssh.c +++ b/block/ssh.c

[Qemu-devel] [PATCH v27 07/33] QemuOpts: add qemu_opt_get_*_del functions for replace work

2014-05-07 Thread Chunyan Liu
t_get returns (const char *), and could not change to (char *), since in one case, it will return desc->def_value_str, which is (const char *). Reviewed-by: Eric Blake Reviewed-by: Leandro Dorileo Signed-off-by: Dong Xu Wang Signed-off-by: Chunyan Liu --- include/qemu/option.h | 6 +++ u

[Qemu-devel] [PATCH v27 14/33] cow.c: replace QEMUOptionParameter with QemuOpts

2014-05-07 Thread Chunyan Liu
Reviewed-by: Eric Blake Reviewed-by: Stefan Hajnoczi Signed-off-by: Dong Xu Wang Signed-off-by: Chunyan Liu --- block/cow.c | 54 ++ 1 file changed, 26 insertions(+), 28 deletions(-) diff --git a/block/cow.c b/block/cow.c index 7e61024

[Qemu-devel] [PATCH v27 15/33] gluster.c: replace QEMUOptionParameter with QemuOpts

2014-05-07 Thread Chunyan Liu
Reviewed-by: Stefan Hajnoczi Reviewed-by: Eric Blake Signed-off-by: Dong Xu Wang Signed-off-by: Chunyan Liu --- block/gluster.c | 81 ++--- 1 file changed, 42 insertions(+), 39 deletions(-) diff --git a/block/gluster.c b/block/gluster.c

[Qemu-devel] [PATCH v27 25/33] rbd.c: replace QEMUOptionParameter with QemuOpts

2014-05-07 Thread Chunyan Liu
Reviewed-by: Stefan Hajnoczi Signed-off-by: Dong Xu Wang Signed-off-by: Chunyan Liu --- block/rbd.c | 63 + 1 file changed, 30 insertions(+), 33 deletions(-) diff --git a/block/rbd.c b/block/rbd.c index dbc79f4..f878877 100644 --- a

[Qemu-devel] [PATCH v27 17/33] nfs.c: replace QEMUOptionParameter with QemuOpts

2014-05-07 Thread Chunyan Liu
Reviewed-by: Stefan Hajnoczi Reviewed-by: Eric Blake Signed-off-by: Chunyan Liu --- block/nfs.c | 12 +++- 1 file changed, 3 insertions(+), 9 deletions(-) diff --git a/block/nfs.c b/block/nfs.c index 9fa831f..8633c04 100644 --- a/block/nfs.c +++ b/block/nfs.c @@ -357,20 +357,14

[Qemu-devel] [PATCH v27 10/33] QemuOpts: add qemu_opts_append to replace append_option_parameters

2014-05-07 Thread Chunyan Liu
For later merge .create_opts of drv and proto_drv in qemu-img commands. Signed-off-by: Chunyan Liu --- Changes: * fix memory free: if (param) { - g_free(list); + qemu_opts_free(list); //free allocated memory too } include/qemu/option.h | 5 util/qemu-option.c

[Qemu-devel] [PATCH v27 25/33] rbd.c: replace QEMUOptionParameter with QemuOpts

2014-05-07 Thread Chunyan Liu
Reviewed-by: Stefan Hajnoczi Signed-off-by: Dong Xu Wang Signed-off-by: Chunyan Liu --- block/rbd.c | 63 + 1 file changed, 30 insertions(+), 33 deletions(-) diff --git a/block/rbd.c b/block/rbd.c index dbc79f4..f878877 100644 --- a

[Qemu-devel] [PATCH v27 26/33] sheepdog.c: replace QEMUOptionParameter with QemuOpts

2014-05-07 Thread Chunyan Liu
Reviewed-by: Stefan Hajnoczi Signed-off-by: Dong Xu Wang Signed-off-by: Chunyan Liu --- block/sheepdog.c | 108 --- 1 file changed, 55 insertions(+), 53 deletions(-) diff --git a/block/sheepdog.c b/block/sheepdog.c index 2c3fb01..9687362

[Qemu-devel] [PATCH v27 30/33] vmdk.c: replace QEMUOptionParameter with QemuOpts

2014-05-07 Thread Chunyan Liu
Reviewed-by: Stefan Hajnoczi Signed-off-by: Dong Xu Wang Signed-off-by: Chunyan Liu --- block/vmdk.c | 123 ++- 1 file changed, 63 insertions(+), 60 deletions(-) diff --git a/block/vmdk.c b/block/vmdk.c index 3802863..490f6a6 100644

[Qemu-devel] [PATCH v27 20/33] qcow2.c: replace QEMUOptionParameter with QemuOpts

2014-05-07 Thread Chunyan Liu
Signed-off-by: Dong Xu Wang Signed-off-by: Chunyan Liu --- Changes: * remove exporting qemu_opt_find from qcow2 patch and commit separately. * remove unnecessary indention changes in bdrv_qcow2 as Eric points out. block/qcow2.c | 261

[Qemu-devel] [PATCH v27 29/33] vhdx.c: replace QEMUOptionParameter with QemuOpts

2014-05-07 Thread Chunyan Liu
Reviewed-by: Stefan Hajnoczi Signed-off-by: Dong Xu Wang Signed-off-by: Chunyan Liu --- block/vhdx.c | 99 +--- block/vhdx.h | 1 + 2 files changed, 48 insertions(+), 52 deletions(-) diff --git a/block/vhdx.c b/block/vhdx.c index

[Qemu-devel] [PATCH v27 22/33] raw-posix.c: replace QEMUOptionParameter with QemuOpts

2014-05-07 Thread Chunyan Liu
Reviewed-by: Stefan Hajnoczi Signed-off-by: Dong Xu Wang Signed-off-by: Chunyan Liu --- block/raw-posix.c | 59 +-- 1 file changed, 27 insertions(+), 32 deletions(-) diff --git a/block/raw-posix.c b/block/raw-posix.c index 3ce026d..4bbc7cc

[Qemu-devel] [PATCH v27 23/33] raw-win32.c: replace QEMUOptionParameter with QemuOpts

2014-05-07 Thread Chunyan Liu
Reviewed-by: Stefan Hajnoczi Signed-off-by: Dong Xu Wang Signed-off-by: Chunyan Liu --- block/raw-win32.c | 38 +++--- 1 file changed, 19 insertions(+), 19 deletions(-) diff --git a/block/raw-win32.c b/block/raw-win32.c index 064ea31..e5ac297 100644 --- a/block

[Qemu-devel] [PATCH v27 13/33] vvfat.c: handle cross_driver's create_options and create_opts

2014-05-07 Thread Chunyan Liu
vvfat shares create options of qcow driver. To avoid vvfat breaking when qcow driver changes from QEMUOptionParameter to QemuOpts, let it able to handle both cases. Signed-off-by: Chunyan Liu --- Change: * Fix memory free: - qemu_opts_free(create_opts); + if (bdrv_qcow->create_opti

[Qemu-devel] [PATCH v27 31/33] vpc.c: replace QEMUOptionParameter with QemuOpts

2014-05-07 Thread Chunyan Liu
Reviewed-by: Stefan Hajnoczi Signed-off-by: Dong Xu Wang Signed-off-by: Chunyan Liu --- block/vpc.c | 62 + 1 file changed, 34 insertions(+), 28 deletions(-) diff --git a/block/vpc.c b/block/vpc.c index 2e25f57..8ebf424 100644 --- a

[Qemu-devel] [PATCH v27 04/33] qapi: output def_value_str when query command line options

2014-05-07 Thread Chunyan Liu
Change qapi interfaces to output the newly added def_value_str when querying command line options. Reviewed-by: Stefan Hajnoczi Reviewed-by: Eric Blake Reviewed-by: Leandro Dorileo Signed-off-by: Dong Xu Wang Signed-off-by: Chunyan Liu --- qapi-schema.json | 5 - qmp-commands.hx

[Qemu-devel] [PATCH v27 32/33] cleanup QEMUOptionParameter

2014-05-07 Thread Chunyan Liu
Now that all backend drivers are using QemuOpts, remove all QEMUOptionParameter related codes. Signed-off-by: Dong Xu Wang Signed-off-by: Chunyan Liu --- block.c | 93 ++ block/cow.c | 4 +- block/gluster.c | 8 +- block/iscsi.c

[Qemu-devel] [PATCH v27 21/33] qed.c: replace QEMUOptionParameter with QemuOpts

2014-05-07 Thread Chunyan Liu
r. That is, .def_value_str = stringify(QED_DEFAULT_CLUSTER_SIZE), so the QED_DEFAULT_CLUSTER_SIZE could not be a expression. Reviewed-by: Stefan Hajnoczi Reviewed-by: Eric Blake Signed-off-by: Dong Xu Wang Signed-off-by: Chunyan Liu --- block/q

[Qemu-devel] [PATCH v27 24/33] raw_bsd.c: replace QEMUOptionParameter with QemuOpts

2014-05-07 Thread Chunyan Liu
Reviewed-by: Stefan Hajnoczi Signed-off-by: Dong Xu Wang Signed-off-by: Chunyan Liu --- block/raw_bsd.c | 27 +++ 1 file changed, 15 insertions(+), 12 deletions(-) diff --git a/block/raw_bsd.c b/block/raw_bsd.c index 9ae5fc2..ee797fd 100644 --- a/block/raw_bsd.c +++ b

[Qemu-devel] [PATCH v27 16/33] iscsi.c: replace QEMUOptionParameter with QemuOpts

2014-05-07 Thread Chunyan Liu
Reviewed-by: Stefan Hajnoczi Signed-off-by: Dong Xu Wang Signed-off-by: Chunyan Liu --- block/iscsi.c | 34 -- 1 file changed, 16 insertions(+), 18 deletions(-) diff --git a/block/iscsi.c b/block/iscsi.c index a30202b..e4a127b 100644 --- a/block/iscsi.c +++ b

[Qemu-devel] [PATCH v27 11/33] QemuOpts: check NULL input for qemu_opts_del

2014-05-07 Thread Chunyan Liu
To simplify later using of qemu_opts_del, accept NULL input. Reviewed-by: Stefan Hajnoczi Reviewed-by: Eric Blake Reviewed-by: Leandro Dorileo Signed-off-by: Chunyan Liu --- util/qemu-option.c | 4 1 file changed, 4 insertions(+) diff --git a/util/qemu-option.c b/util/qemu-option.c

[Qemu-devel] [PATCH v27 18/33] qcow.c: replace QEMUOptionParameter with QemuOpts

2014-05-07 Thread Chunyan Liu
Reviewed-by: Stefan Hajnoczi Signed-off-by: Dong Xu Wang Signed-off-by: Chunyan Liu --- block/qcow.c | 72 ++-- 1 file changed, 36 insertions(+), 36 deletions(-) diff --git a/block/qcow.c b/block/qcow.c index 3bac591..e8fe874 100644

[Qemu-devel] [PATCH v27 06/33] QemuOpts: move qemu_opt_del ahead for later calling

2014-05-07 Thread Chunyan Liu
In later patch, qemu_opt_get_del functions will be added, they will first get the option value, then call qemu_opt_del to remove the option from opt list. To prepare for that purpose, move qemu_opt_del ahead first. Reviewed-by: Eric Blake Reviewed-by: Leandro Dorileo Signed-off-by: Chunyan Liu

[Qemu-devel] [PATCH v27 12/33] change block layer to support both QemuOpts and QEMUOptionParamter

2014-05-07 Thread Chunyan Liu
Change block layer to support both QemuOpts and QEMUOptionParameter. After this patch, it will change backend drivers one by one. At the end, QEMUOptionParameter will be removed and only QemuOpts is kept. Signed-off-by: Dong Xu Wang Signed-off-by: Chunyan Liu --- Changes: * Fix Eric&#

[Qemu-devel] [PATCH v27 05/33] QemuOpts: change opt->name|str from (const char *) to (char *)

2014-05-07 Thread Chunyan Liu
truct becomes clearer. Reviewed-by: Eric Blake Reviewed-by: Leandro Dorileo Signed-off-by: Chunyan Liu --- include/qemu/option_int.h | 4 ++-- qapi/opts-visitor.c | 10 +++--- util/qemu-option.c| 4 ++-- 3 files changed, 11 insertions(+), 7 deletions(-) diff --git a/include

[Qemu-devel] [PATCH v27 19/33] QemuOpts: export qemu_opt_find

2014-05-07 Thread Chunyan Liu
Export qemu_opt_find for qcow2 driver using it. After replacing QEMUOptionParameter with QemuOpts, qcow2 driver will use qemu_opt_find to judge if an option is explicitly set, to replace the usage of .assigned in QEMUOptionParameter. Signed-off-by: Chunyan Liu --- Changes: * split qcow2 patch

[Qemu-devel] [PATCH v27 13/33] vvfat.c: handle cross_driver's create_options and create_opts

2014-05-07 Thread Chunyan Liu
vvfat shares create options of qcow driver. To avoid vvfat breaking when qcow driver changes from QEMUOptionParameter to QemuOpts, let it able to handle both cases. Signed-off-by: Chunyan Liu --- Change: * Fix memory free: - qemu_opts_free(create_opts); + if (bdrv_qcow->create_opti

[Qemu-devel] [PATCH v27 28/33] vdi.c: replace QEMUOptionParameter with QemuOpts

2014-05-07 Thread Chunyan Liu
Reviewed-by: Stefan Hajnoczi Signed-off-by: Dong Xu Wang Signed-off-by: Chunyan Liu --- block/vdi.c | 73 + 1 file changed, 35 insertions(+), 38 deletions(-) diff --git a/block/vdi.c b/block/vdi.c index 27737af..fe5cad2 100644 --- a

[Qemu-devel] [PATCH v27 02/33] QemuOpts: repurpose qemu_opts_print to replace print_option_parameters

2014-05-07 Thread Chunyan Liu
Currently this function is not used anywhere. In later patches, it will replace print_option_parameters. To avoid print info changes, change qemu_opts_print from fprintf stderr to printf, and remove last printf. Signed-off-by: Chunyan Liu --- Changes: * backward split than v26 (2/33, 3/33

[Qemu-devel] [PATCH v27 08/33] QemuOpts: add qemu_opts_print_help to replace print_option_help

2014-05-07 Thread Chunyan Liu
print_option_help takes QEMUOptionParameter as parameter, add qemu_opts_print_help to take QemuOptsList as parameter for later replace work. Reviewed-by: Eric Blake Reviewed-by: Leandro Dorileo Signed-off-by: Dong Xu Wang Signed-off-by: Chunyan Liu --- include/qemu/option.h | 1 + util/qemu

  1   2   3   4   5   >