[Qemu-devel] [PATCH 3/8] console: add information retrival wrappers

2013-11-19 Thread Dave Airlie
From: Dave Airlie We need to know how many graphics consoles are registered in the UI code so it knows how many windows it should prepare for etc, also so that it could potentially warn for cases it can't handle. We also need to know the console index so we can add it to the list. (maybe we don'

[Qemu-devel] [PATCH 8/8] HACK: just to make things start easier with libvirt

2013-11-19 Thread Dave Airlie
From: Dave Airlie --- hw/display/vga-pci.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/hw/display/vga-pci.c b/hw/display/vga-pci.c index b3a45c8..e4bea17 100644 --- a/hw/display/vga-pci.c +++ b/hw/display/vga-pci.c @@ -146,6 +146,7 @@ static int pci_std_vga_initfn(PCIDe

[Qemu-devel] [PATCH 5/8] sdl2: update for multihead support.

2013-11-19 Thread Dave Airlie
From: Dave Airlie This reworks the complete SDL2 code to support multi-head, by using DisplayChangeListeners wrapped inside a structure per-head, containing the SDL2 information along with the console info. This also adds a hack to allow Ctrl-Alt-n to toggle the first console on/off. Signed-off

[Qemu-devel] [PATCH 6/8] virtio-gpu: v0.1 of the virtio based GPU code.

2013-11-19 Thread Dave Airlie
From: Dave Airlie This is the basic virtio-gpu which is multi-head capable, ARGB cursor support, unaccelerated. Signed-off-by: Dave Airlie --- default-configs/x86_64-softmmu.mak | 1 + hw/display/Makefile.objs | 2 + hw/display/virtgpu_hw.h| 225 ++ hw/di

[Qemu-devel] [PATCH 7/8] virtio-vga: v1

2013-11-19 Thread Dave Airlie
From: Dave Airlie This is a virtio-vga device built on top of the virtio-gpu device. Signed-off-by: Dave Airlie --- Makefile | 2 +- default-configs/x86_64-softmmu.mak | 1 + hw/display/Makefile.objs | 1 + hw/display/virtio-vga.c| 156

[Qemu-devel] pci: single device at function != 0

2013-11-19 Thread Alexey Kardashevskiy
Hi! It turned out that it is possible to start QEMU with a single PCI device placed at 0:0:1.1. I.e. function#1 and there is no function#0. The existing QEMU only fails if there is function#0 AND the multifunction bit is not set which is not the case. Is it supposed to work anywhere (x86 may be)?

Re: [Qemu-devel] Multi-head support RFC

2013-11-19 Thread Gerd Hoffmann
> > graphic_console_init(..., &state->heads[i]); > > > > so you can figure the head in the callbacks. > > What I had prototyped (I got impatient) was to add a helper: > qemu_console_hw_opaque() to console.c so the HwOps could query the > opaque pointer. I don't like it because it requires an

[Qemu-devel] [PATCH v3 2/6] qemu-iotests: Honour cache mode in iotests.py

2013-11-19 Thread Fam Zheng
This will allow overriding cache mode from the "-c mode" option. Signed-off-by: Fam Zheng --- tests/qemu-iotests/iotests.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tests/qemu-iotests/iotests.py b/tests/qemu-iotests/iotests.py index fb10ff4..c84a1a5 100644 --- a/test

[Qemu-devel] [PATCH v3 3/6] qemu-iotests: Add _supported_cache_modes

2013-11-19 Thread Fam Zheng
This replaces _unsupported_qemu_io_options and check for support of current cache mode. If user dosen't give "-c " or "-nocache", the first supported cache mode is used in qemu-io. Signed-off-by: Fam Zheng --- tests/qemu-iotests/026 | 2 +- tests/qemu-iotests/039 | 2 +- tests/qem

[Qemu-devel] [PATCH v3 0/6] Add cache mode option to qemu-iotests, and change default mode to "writeback"

2013-11-19 Thread Fam Zheng
This series adds cache mode option in the iotests framework. Test cases are updated to make use of cache mode and mask supported modes. v3: Change _unsupported_qemu_io_options to _supported_cache_modes. Change default mode to "writeback". Clean up some whitespaces in the end of series.

[Qemu-devel] [PATCH v3 1/6] qemu-iotests: Add "-c " option

2013-11-19 Thread Fam Zheng
The option sets cache mode used in the tests. "-nocache" is changed to an alias to "-c none", and internally passes "-t none" to qemu-io. Python scripts will make use of option this in the next commit. Signed-off-by: Fam Zheng --- tests/qemu-iotests/check | 2 +- tests/qemu-iotests/common | 2

[Qemu-devel] [PATCH v3 5/6] qemu-iotests: Force qcow2 in error path test in 048

2013-11-19 Thread Fam Zheng
The "raw" doesn't always work on certain file systems (e.g. tmpfs). Use qcow2 to make the allocation status explicit. Signed-off-by: Fam Zheng --- tests/qemu-iotests/048 | 8 +++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/tests/qemu-iotests/048 b/tests/qemu-iotests/048 ind

[Qemu-devel] [PATCH v3 4/6] qemu-iotests: Change default cache mode to "writeback"

2013-11-19 Thread Fam Zheng
So that the tests can run faster. Signed-off-by: Fam Zheng --- tests/qemu-iotests/common | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/qemu-iotests/common b/tests/qemu-iotests/common index e25e13b..7db6bde 100644 --- a/tests/qemu-iotests/common +++ b/tests/qemu-iotest

[Qemu-devel] [PATCH v3 6/6] qemu-iotests: Clean up spaces in usage output

2013-11-19 Thread Fam Zheng
Whitespace changes to align columns. Signed-off-by: Fam Zheng --- tests/qemu-iotests/common | 16 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/tests/qemu-iotests/common b/tests/qemu-iotests/common index 7db6bde..75dcdd8 100644 --- a/tests/qemu-iotests/common +++

[Qemu-devel] [PATCH] MAINTAINERS: add sheepdog development mailing list

2013-11-19 Thread Liu Yuan
This will help people find mailing list relevant to sheepdog. Stefan Hajnoczi Kevin Wolf Signed-off-by: Liu Yuan --- MAINTAINERS |1 + 1 file changed, 1 insertion(+) diff --git a/MAINTAINERS b/MAINTAINERS index c19133f..3e61ac8 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -879,6 +879,7 @

[Qemu-devel] [PATCH] MAINTAINERS: add sheepdog development mailing list

2013-11-19 Thread Liu Yuan
This will help people find mailing list relevant to sheepdog. Cc: Stefan Hajnoczi Cc: Kevin Wolf Signed-off-by: Liu Yuan --- MAINTAINERS |1 + 1 file changed, 1 insertion(+) diff --git a/MAINTAINERS b/MAINTAINERS index c19133f..3e61ac8 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -879,6

[Qemu-devel] [PATCH 1/4] hw/arm: add new machine type sunxi

2013-11-19 Thread liguang
sunxi series are SOCs from Allwinner, including sunxi-4i/5i/6i/7i ... Signed-off-by: liguang --- hw/arm/Makefile.objs |2 +- hw/arm/sunxi-soc.c | 30 ++ 2 files changed, 31 insertions(+), 1 deletions(-) create mode 100644 hw/arm/sunxi-soc.c diff --git a/hw/a

[Qemu-devel] [PATCH 0/4] add sunxi machine

2013-11-19 Thread liguang
this patch-set implemented a device-reduced machine type for Allwinner's sunxi series SoC, like sunxi-4i/5i/7i ... now, It can support sunxi-4i with a cortex-a8 processor. and will support more later, like sunxi-7i with cortex-a7 processor, and will add more devices. reference: http://linux-sun

[Qemu-devel] [PATCH 2/4] hw/arm/sunxi-soc: add interrupt controller

2013-11-19 Thread liguang
Signed-off-by: liguang --- hw/arm/sunxi-soc.c | 290 1 files changed, 290 insertions(+), 0 deletions(-) diff --git a/hw/arm/sunxi-soc.c b/hw/arm/sunxi-soc.c index f6849eb..1b369ba 100644 --- a/hw/arm/sunxi-soc.c +++ b/hw/arm/sunxi-soc.c @@ -5

[Qemu-devel] [PATCH 3/4] hw/arm/sunxi-soc: add sunxi timer

2013-11-19 Thread liguang
Signed-off-by: liguang --- hw/arm/sunxi-soc.c | 209 1 files changed, 209 insertions(+), 0 deletions(-) diff --git a/hw/arm/sunxi-soc.c b/hw/arm/sunxi-soc.c index 1b369ba..960539a 100644 --- a/hw/arm/sunxi-soc.c +++ b/hw/arm/sunxi-soc.c @@ -2

[Qemu-devel] [PATCH 4/4] hw/arm/sunxi-soc: really initialize sunxi machine

2013-11-19 Thread liguang
Signed-off-by: liguang --- hw/arm/sunxi-soc.c | 72 1 files changed, 72 insertions(+), 0 deletions(-) diff --git a/hw/arm/sunxi-soc.c b/hw/arm/sunxi-soc.c index 960539a..0338e03 100644 --- a/hw/arm/sunxi-soc.c +++ b/hw/arm/sunxi-soc.c @@ -4,

<    1   2   3