Re: [Qemu-devel] [PATCH] main-loop: Add missing include file

2011-10-24 Thread Paolo Bonzini
On 10/24/2011 10:34 PM, Stefan Weil wrote: Am 24.10.2011 21:43, schrieb Anthony Liguori: On 10/24/2011 02:39 PM, Stefan Weil wrote: stdint.h defines the POSIX data types and is needed for MinGW-w64 (and maybe other hosts). Signed-off-by: Stefan Weil --- main-loop.c | 1 + 1 files changed, 1 ins

[Qemu-devel] [PATCH] target-sparc: Fix use of g_new0 / g_free

2011-10-24 Thread Stefan Weil
g_malloc0 needs g_free instead of free. While fixing this, I also replaced g_malloc0 by g_new0 as was suggested by Stuart Brady. Cc: Blue Swirl Signed-off-by: Stefan Weil --- target-sparc/cpu_init.c |8 1 files changed, 4 insertions(+), 4 deletions(-) diff --git a/target-sparc/cpu

[Qemu-devel] [PATCH] ppc: Alter CPU state to mask out TCG unimplemented instructions as appropriate

2011-10-24 Thread David Gibson
The CPU state contains two bitmaps, initialized from the CPU spec which describes which instructions are implemented on the CPU. A couple of bits are defined which cover instructions (VSX and DFP) which are not currently implemented in TCG. So far, these are only used to handle the case of -cpu h

Re: [Qemu-devel] [Qemu-ppc] [PATCH] ppc: Alter CPU state to mask out TCG unimplemented instructions as appropriate

2011-10-24 Thread David Gibson
On Tue, Oct 25, 2011 at 01:33:49PM +1100, David Gibson wrote: > The CPU state contains two bitmaps, initialized from the CPU spec > which describes which instructions are implemented on the CPU. A > couple of bits are defined which cover instructions (VSX and DFP) > which are not currently impleme

Re: [Qemu-devel] [RFC v2 PATCH 5/4 PATCH] virtio-net: send gratuitous packet when needed

2011-10-24 Thread Jason Wang
On 10/24/2011 01:25 PM, Michael S. Tsirkin wrote: > On Mon, Oct 24, 2011 at 02:54:59PM +1030, Rusty Russell wrote: >> On Sat, 22 Oct 2011 13:43:11 +0800, Jason Wang wrote: >>> This make let virtio-net driver can send gratituous packet by a new >>> config bit - VIRTIO_NET_S_ANNOUNCE in each config

[Qemu-devel] buildbot failure in qemu on qmp_x86_64_debian_6_0

2011-10-24 Thread qemu
The Buildbot has detected a new failure on builder qmp_x86_64_debian_6_0 while building qemu. Full details are available at: http://buildbot.b1-systems.de/qemu/builders/qmp_x86_64_debian_6_0/builds/71 Buildbot URL: http://buildbot.b1-systems.de/qemu/ Buildslave for this Build: yuzuki Build Rea

[Qemu-devel] buildbot failure in qemu on qmp_i386_debian_6_0

2011-10-24 Thread qemu
The Buildbot has detected a new failure on builder qmp_i386_debian_6_0 while building qemu. Full details are available at: http://buildbot.b1-systems.de/qemu/builders/qmp_i386_debian_6_0/builds/71 Buildbot URL: http://buildbot.b1-systems.de/qemu/ Buildslave for this Build: yuzuki Build Reason:

[Qemu-devel] [PATCH] ppc: Alter CPU state to mask out TCG unimplemented instructions as appropriate

2011-10-24 Thread David Gibson
The CPU state contains two bitmaps, initialized from the CPU spec which describes which instructions are implemented on the CPU. A couple of bits are defined which cover instructions (VSX and DFP) which are not currently implemented in TCG. So far, these are only used to handle the case of -cpu h

Re: [Qemu-devel] [PATCH] Add Qemu A15 minimal support for ARM KVM

2011-10-24 Thread bill4carson
On 2011年10月24日 22:09, Peter Maydell wrote: On 29 September 2011 08:30, wrote: From: Bill Carson This patch add some A15 codes which enables ARM KVM could run Guest OS build with Versatile Express Cortex-A15x4 tile. Thanks for sending this; I have somewhat belatedly written up some comments

Re: [Qemu-devel] [Question] dump memory when host pci device is used by guest

2011-10-24 Thread Wen Congyang
At 10/24/2011 11:58 PM, Dave Anderson Write: > > > - Original Message - > No, an ELF image of the guest's physical memory. >>> >>> Well then that should be pretty straight forward to support. Depending upon >>> how similar it would be to the "standard" kdump ELF format, the only ot

Re: [Qemu-devel] [Qemu-ppc] [PATCH] pseries: Correct vmx/dfp handling in both KVM and TCG cases

2011-10-24 Thread Alexander Graf
On 24.10.2011, at 17:09, David Gibson wrote: > On Mon, Oct 24, 2011 at 04:43:18PM -0700, Alexander Graf wrote: >> >> On 24.10.2011, at 16:08, David Gibson wrote: >> >>> [snip] >> Reading through the patch again I think I see your point now :). Yes, >> the kvmppc_host_cpu_def function

Re: [Qemu-devel] [PATCH 1/5] monitor: screen_dump async

2011-10-24 Thread Luiz Capitulino
On Mon, 24 Oct 2011 19:29:37 +0200 Alon Levy wrote: > On Mon, Oct 24, 2011 at 01:45:16PM -0200, Luiz Capitulino wrote: > > On Mon, 24 Oct 2011 17:13:14 +0200 > > Gerd Hoffmann wrote: > > > > > On 10/24/11 14:02, Alon Levy wrote: > > > > Make screen_dump monitor command an async command to allow

Re: [Qemu-devel] [Qemu-ppc] [PATCH] pseries: Correct vmx/dfp handling in both KVM and TCG cases

2011-10-24 Thread David Gibson
On Mon, Oct 24, 2011 at 04:43:18PM -0700, Alexander Graf wrote: > > On 24.10.2011, at 16:08, David Gibson wrote: > > > [snip] > Reading through the patch again I think I see your point now :). Yes, > the kvmppc_host_cpu_def function only tries to fetch the host CPU > capabilities

Re: [Qemu-devel] [RFC 3/8] qapi: add QemuFileInputVisitor

2011-10-24 Thread Chris Krumme
On 09/19/2011 09:41 AM, Michael Roth wrote: Visitor interfaces to read values from a QEMUFile Signed-off-by: Michael Roth --- Makefile.objs |1 + qapi/qemu-file-input-visitor.c | 350 qapi/qemu-file-input-visitor.h | 26 +++ 3

Re: [Qemu-devel] [Qemu-ppc] [PATCH] pseries: Correct vmx/dfp handling in both KVM and TCG cases

2011-10-24 Thread Alexander Graf
On 24.10.2011, at 16:08, David Gibson wrote: > [snip] Reading through the patch again I think I see your point now :). Yes, the kvmppc_host_cpu_def function only tries to fetch the host CPU capabilities. So yes, there is basically only the masking part with what we can actua

Re: [Qemu-devel] [Qemu-ppc] [PATCH] pseries: Correct vmx/dfp handling in both KVM and TCG cases

2011-10-24 Thread David Gibson
On Mon, Oct 24, 2011 at 10:25:26AM -0700, Alexander Graf wrote: > On 23.10.2011, at 22:29, David Gibson wrote: > > On Thu, Oct 20, 2011 at 11:49:40PM -0700, Alexander Graf wrote: [snip] > >>> This gets further complicated in the case of the w-i-p patch I have to > >>> properly advertise page sizes,

Re: [Qemu-devel] [Qemu-ppc] [PATCH] KVM: PPC: Override host vmx/vsx/dfp only when information known

2011-10-24 Thread David Gibson
On Mon, Oct 24, 2011 at 08:53:54PM +0200, Alexander Graf wrote: > The -cpu host feature tries to find out the host capabilities based > on device tree information. However, we don't always have that available > because it's an optional property in dt. > > So instead of force unsetting values depen

Re: [Qemu-devel] [Qemu-ppc] [PATCH] pseries: Correct vmx/dfp handling in both KVM and TCG cases

2011-10-24 Thread David Gibson
[snip] > >> Reading through the patch again I think I see your point now :). Yes, the > >> kvmppc_host_cpu_def function only tries to fetch the host CPU capabilities. > >> > >> So yes, there is basically only the masking part with what we can actually > >> virtualize missing. But for now we can

Re: [Qemu-devel] Executing from a rom device - Re: [PATCH 2/4] pc: Support system flash memory with pflash

2011-10-24 Thread Alexander Graf
On 24.10.2011, at 16:00, Jordan Justen wrote: > Avi, > > Alex pointed out that my patch below should not work for kvm, because > kvm currently does not support executing from a rom region. This > surprised me, because I thought I had been testing with kvm enabled. > But, it turns out I wasn't,

[Qemu-devel] Executing from a rom device - Re: [PATCH 2/4] pc: Support system flash memory with pflash

2011-10-24 Thread Jordan Justen
Avi, Alex pointed out that my patch below should not work for kvm, because kvm currently does not support executing from a rom region. This surprised me, because I thought I had been testing with kvm enabled. But, it turns out I wasn't, and in fact this patch does not work with kvm enabled. (Sor

[Qemu-devel] [PATCH 09/14] syborg_virtio: convert to memory API

2011-10-24 Thread Benoît Canet
Signed-off-by: Benoit Canet --- hw/syborg_virtio.c | 26 ++ 1 files changed, 10 insertions(+), 16 deletions(-) diff --git a/hw/syborg_virtio.c b/hw/syborg_virtio.c index 00c7be8..af0c370 100644 --- a/hw/syborg_virtio.c +++ b/hw/syborg_virtio.c @@ -62,6 +62,7 @@ enum {

[Qemu-devel] [PATCH 03/15] syborg_fb: convert to memory API

2011-10-24 Thread Benoît Canet
Signed-off-by: Benoit Canet --- hw/syborg_fb.c | 28 +++- 1 files changed, 11 insertions(+), 17 deletions(-) diff --git a/hw/syborg_fb.c b/hw/syborg_fb.c index ae3e0eb..3b71c72 100644 --- a/hw/syborg_fb.c +++ b/hw/syborg_fb.c @@ -65,6 +65,7 @@ enum { typedef struct {

[Qemu-devel] [PATCH 09/11] isa: always use provided ISA bus when creating an isa device

2011-10-24 Thread Hervé Poussineau
Signed-off-by: Hervé Poussineau --- hw/isa-bus.c | 10 -- 1 files changed, 4 insertions(+), 6 deletions(-) diff --git a/hw/isa-bus.c b/hw/isa-bus.c index 7c94f0b..3207680 100644 --- a/hw/isa-bus.c +++ b/hw/isa-bus.c @@ -130,12 +130,11 @@ ISADevice *isa_create(ISABus *bus, const char *

[Qemu-devel] [PATCH 08/11] malta: give ISA bus to ISA methods

2011-10-24 Thread Hervé Poussineau
Signed-off-by: Hervé Poussineau --- hw/mips_malta.c |3 +-- hw/pc.h |2 +- hw/piix4.c |3 ++- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/hw/mips_malta.c b/hw/mips_malta.c index 98177f3..78d99e7 100644 --- a/hw/mips_malta.c +++ b/hw/mips_malta.c @@ -94

[Qemu-devel] [PATCH 06/15] syborg_pointer: convert to memory API

2011-10-24 Thread Benoît Canet
Signed-off-by: Benoit Canet --- hw/syborg_pointer.c | 28 +++- 1 files changed, 11 insertions(+), 17 deletions(-) diff --git a/hw/syborg_pointer.c b/hw/syborg_pointer.c index b91214d..a0f8b32 100644 --- a/hw/syborg_pointer.c +++ b/hw/syborg_pointer.c @@ -44,6 +44,7 @@ t

[Qemu-devel] [PATCH 12/14] realview: convert realview i2c to VMState

2011-10-24 Thread Benoît Canet
Signed-off-by: Benoit Canet --- hw/realview.c | 21 +++-- 1 files changed, 19 insertions(+), 2 deletions(-) diff --git a/hw/realview.c b/hw/realview.c index 14281b0..4eb320e 100644 --- a/hw/realview.c +++ b/hw/realview.c @@ -26,10 +26,26 @@ typedef struct { SysBusDevice bu

[Qemu-devel] [PATCH 10/14] pl181: add vmstate

2011-10-24 Thread Benoît Canet
Signed-off-by: Benoit Canet --- hw/pl181.c | 40 1 files changed, 36 insertions(+), 4 deletions(-) diff --git a/hw/pl181.c b/hw/pl181.c index e13ea8e..cef2530 100644 --- a/hw/pl181.c +++ b/hw/pl181.c @@ -38,20 +38,45 @@ typedef struct { uint32_t da

[Qemu-devel] [PATCH 02/14] syborg_fb: convert to memory API

2011-10-24 Thread Benoît Canet
Signed-off-by: Benoit Canet --- hw/syborg_fb.c | 28 +++- 1 files changed, 11 insertions(+), 17 deletions(-) diff --git a/hw/syborg_fb.c b/hw/syborg_fb.c index ae3e0eb..3b71c72 100644 --- a/hw/syborg_fb.c +++ b/hw/syborg_fb.c @@ -65,6 +65,7 @@ enum { typedef struct {

[Qemu-devel] [PATCH 04/14] syborg_keyboard: convert to memory API

2011-10-24 Thread Benoît Canet
Signed-off-by: Benoit Canet --- hw/syborg_keyboard.c | 28 +++- 1 files changed, 11 insertions(+), 17 deletions(-) diff --git a/hw/syborg_keyboard.c b/hw/syborg_keyboard.c index 82b9dc0..03d2183 100644 --- a/hw/syborg_keyboard.c +++ b/hw/syborg_keyboard.c @@ -51,6 +51,7

Re: [Qemu-devel] [PATCH 3/4] loader: Add rom_add_file_buf for adding roms from a buffer

2011-10-24 Thread Jordan Justen
On Sun, Oct 23, 2011 at 04:27, Blue Swirl wrote: > On Tue, Oct 18, 2011 at 21:17, Jordan Justen wrote: >> On Tue, Oct 18, 2011 at 11:05, Blue Swirl wrote: >>> On Mon, Oct 17, 2011 at 7:16 PM, Jordan Justen >>> wrote: rom_add_file_buf is similar to rom_add_file, except the rom's conten

[Qemu-devel] [PATCH 06/11] sun4u: give ISA bus to ISA methods

2011-10-24 Thread Hervé Poussineau
Signed-off-by: Hervé Poussineau --- hw/sun4u.c |6 -- 1 files changed, 4 insertions(+), 2 deletions(-) diff --git a/hw/sun4u.c b/hw/sun4u.c index 1e45192..c67576a 100644 --- a/hw/sun4u.c +++ b/hw/sun4u.c @@ -530,10 +530,12 @@ static ISABus * pci_ebus_init(PCIBus *bus, int devfn) {

Re: [Qemu-devel] [PATCH v2 3/4] Add cap reduction support to enable use as SUID

2011-10-24 Thread Anthony Liguori
On 10/24/2011 03:20 PM, Corey Bryant wrote: On 10/24/2011 03:21 PM, Anthony Liguori wrote: On 10/24/2011 02:13 PM, Corey Bryant wrote: Right, it's not desirable, but isn't that the best we can do without libcap or FS capabilities? I think the best we can do is not let it run in those cases.

[Qemu-devel] [PATCH 13/15] realview: convert realview i2c to VMState

2011-10-24 Thread Benoît Canet
Signed-off-by: Benoit Canet --- hw/realview.c | 21 +++-- 1 files changed, 19 insertions(+), 2 deletions(-) diff --git a/hw/realview.c b/hw/realview.c index 14281b0..bf95051 100644 --- a/hw/realview.c +++ b/hw/realview.c @@ -26,10 +26,26 @@ typedef struct { SysBusDevice bu

[Qemu-devel] [PATCH 01/11] isa: give ISABus/ISADevice to isa_create(), isa_bus_irqs() and isa_get_irq() functions

2011-10-24 Thread Hervé Poussineau
NULL is a valid bus/device, so there is no change in behaviour. Signed-off-by: Hervé Poussineau --- arch_init.c|8 arch_init.h|2 +- hw/adlib.c |2 +- hw/alpha_dp264.c | 10 ++ hw/alpha_typhoon.c |7 --- hw/audiodev.h |8 +

[Qemu-devel] [PATCH 05/15] syborg_keyboard: convert to memory API

2011-10-24 Thread Benoît Canet
Signed-off-by: Benoit Canet --- hw/syborg_keyboard.c | 28 +++- 1 files changed, 11 insertions(+), 17 deletions(-) diff --git a/hw/syborg_keyboard.c b/hw/syborg_keyboard.c index 82b9dc0..03d2183 100644 --- a/hw/syborg_keyboard.c +++ b/hw/syborg_keyboard.c @@ -51,6 +51,7

[Qemu-devel] [PATCH 15/15] integratorcp: convert icp_pic to VMState

2011-10-24 Thread Benoît Canet
Signed-off-by: Benoit Canet --- hw/integratorcp.c | 14 ++ 1 files changed, 14 insertions(+), 0 deletions(-) diff --git a/hw/integratorcp.c b/hw/integratorcp.c index 39322cb..0212ed6 100644 --- a/hw/integratorcp.c +++ b/hw/integratorcp.c @@ -310,6 +310,19 @@ typedef struct icp_pic_

[Qemu-devel] [PATCH 05/11] alpha: give ISA bus to ISA methods

2011-10-24 Thread Hervé Poussineau
Signed-off-by: Hervé Poussineau --- hw/alpha_dp264.c |4 ++-- hw/alpha_sys.h |3 ++- hw/alpha_typhoon.c | 10 +- 3 files changed, 9 insertions(+), 8 deletions(-) diff --git a/hw/alpha_dp264.c b/hw/alpha_dp264.c index a87d6ef..455f380 100644 --- a/hw/alpha_dp264.c +++ b/h

[Qemu-devel] [PATCH 14/14] integratorcp: convert icp_pic to VMState

2011-10-24 Thread Benoît Canet
Signed-off-by: Benoit Canet --- hw/integratorcp.c | 14 ++ 1 files changed, 14 insertions(+), 0 deletions(-) diff --git a/hw/integratorcp.c b/hw/integratorcp.c index 1ffe7d8..114907a 100644 --- a/hw/integratorcp.c +++ b/hw/integratorcp.c @@ -310,6 +310,19 @@ typedef struct icp_pic_

[Qemu-devel] [PATCH 02/15] mst_fpga: convert to memory API

2011-10-24 Thread Benoît Canet
Signed-off-by: Benoit Canet --- hw/mst_fpga.c | 29 - 1 files changed, 12 insertions(+), 17 deletions(-) diff --git a/hw/mst_fpga.c b/hw/mst_fpga.c index 7bcd5d7..cf9957b 100644 --- a/hw/mst_fpga.c +++ b/hw/mst_fpga.c @@ -34,6 +34,7 @@ typedef struct mst_irq_stat

[Qemu-devel] [PATCH 08/15] syborg_serial: convert to memory API

2011-10-24 Thread Benoît Canet
Signed-off-by: Benoit Canet --- hw/syborg_serial.c | 28 +++- 1 files changed, 11 insertions(+), 17 deletions(-) diff --git a/hw/syborg_serial.c b/hw/syborg_serial.c index c83f82c..b73a009 100644 --- a/hw/syborg_serial.c +++ b/hw/syborg_serial.c @@ -58,6 +58,7 @@ enum {

[Qemu-devel] [PATCH 04/15] syborg_interrupt: convert to memory API

2011-10-24 Thread Benoît Canet
Signed-off-by: Benoit Canet --- hw/syborg_interrupt.c | 29 - 1 files changed, 12 insertions(+), 17 deletions(-) diff --git a/hw/syborg_interrupt.c b/hw/syborg_interrupt.c index 1b0f3bb..512910a 100644 --- a/hw/syborg_interrupt.c +++ b/hw/syborg_interrupt.c @@ -55,6

[Qemu-devel] [PATCH V2 00/15] V2 arm: more memory API and VMState conversion

2011-10-24 Thread Benoît Canet
This version fix coding style issues. These patches apply against akivity memory/master. They convert syborg to memory API and various arm related component to VMState. Omap boards where not modified because Linaro is currently refactoring them. Xscale was left apart too. Benoît Canet (15):

[Qemu-devel] [PATCH 01/15] marvell_88x8618_audio: convert to memory API

2011-10-24 Thread Benoît Canet
Signed-off-by: Benoit Canet --- hw/marvell_88w8618_audio.c | 28 +++- 1 files changed, 11 insertions(+), 17 deletions(-) diff --git a/hw/marvell_88w8618_audio.c b/hw/marvell_88w8618_audio.c index f8c5242..67bb70b 100644 --- a/hw/marvell_88w8618_audio.c +++ b/hw/marvell_

[Qemu-devel] [PATCH 12/15] bitbang_i2c: convert to VMState

2011-10-24 Thread Benoît Canet
Signed-off-by: Benoit Canet --- hw/bitbang_i2c.c | 92 +++-- 1 files changed, 61 insertions(+), 31 deletions(-) diff --git a/hw/bitbang_i2c.c b/hw/bitbang_i2c.c index 431359d..b711144 100644 --- a/hw/bitbang_i2c.c +++ b/hw/bitbang_i2c.c @@ -19,37

[Qemu-devel] [PATCH 14/15] integratorcp: convert integratorcm to VMState

2011-10-24 Thread Benoît Canet
Signed-off-by: Benoit Canet --- hw/integratorcp.c | 24 1 files changed, 24 insertions(+), 0 deletions(-) diff --git a/hw/integratorcp.c b/hw/integratorcp.c index 7ad68b7..39322cb 100644 --- a/hw/integratorcp.c +++ b/hw/integratorcp.c @@ -35,6 +35,29 @@ typedef struct

[Qemu-devel] [PATCH 10/11] isa: always use provided ISA bus in isa_bus_irqs()

2011-10-24 Thread Hervé Poussineau
Signed-off-by: Hervé Poussineau --- hw/isa-bus.c |6 -- 1 files changed, 4 insertions(+), 2 deletions(-) diff --git a/hw/isa-bus.c b/hw/isa-bus.c index 3207680..5af790b 100644 --- a/hw/isa-bus.c +++ b/hw/isa-bus.c @@ -53,8 +53,10 @@ ISABus *isa_bus_new(DeviceState *dev, MemoryRegion *a

[Qemu-devel] [PATCH 03/14] syborg_interrupt: convert to memory API

2011-10-24 Thread Benoît Canet
Signed-off-by: Benoit Canet --- hw/syborg_interrupt.c | 29 - 1 files changed, 12 insertions(+), 17 deletions(-) diff --git a/hw/syborg_interrupt.c b/hw/syborg_interrupt.c index 1b0f3bb..512910a 100644 --- a/hw/syborg_interrupt.c +++ b/hw/syborg_interrupt.c @@ -55,6

[Qemu-devel] [PATCH 10/15] syborg_virtio: convert to memory API

2011-10-24 Thread Benoît Canet
Signed-off-by: Benoit Canet --- hw/syborg_virtio.c | 30 ++ 1 files changed, 14 insertions(+), 16 deletions(-) diff --git a/hw/syborg_virtio.c b/hw/syborg_virtio.c index 00c7be8..c2dbf36 100644 --- a/hw/syborg_virtio.c +++ b/hw/syborg_virtio.c @@ -62,6 +62,7 @@ enum

[Qemu-devel] [PATCH 04/11] pc: give ISA bus to ISA methods

2011-10-24 Thread Hervé Poussineau
Signed-off-by: Hervé Poussineau --- hw/pc.h |2 +- hw/pc_piix.c |3 +-- hw/piix_pci.c |8 +--- 3 files changed, 7 insertions(+), 6 deletions(-) diff --git a/hw/pc.h b/hw/pc.h index c43fa73..127940c 100644 --- a/hw/pc.h +++ b/hw/pc.h @@ -181,7 +181,7 @@ struct PCII440FXSta

[Qemu-devel] [PATCH 11/14] bitbang_i2c: convert to VMState

2011-10-24 Thread Benoît Canet
Signed-off-by: Benoit Canet --- hw/bitbang_i2c.c | 92 +++-- 1 files changed, 61 insertions(+), 31 deletions(-) diff --git a/hw/bitbang_i2c.c b/hw/bitbang_i2c.c index 431359d..453f1da 100644 --- a/hw/bitbang_i2c.c +++ b/hw/bitbang_i2c.c @@ -19,37

[Qemu-devel] [PATCH 11/15] pl181: add vmstate

2011-10-24 Thread Benoît Canet
Signed-off-by: Benoit Canet --- hw/pl181.c | 40 1 files changed, 36 insertions(+), 4 deletions(-) diff --git a/hw/pl181.c b/hw/pl181.c index e13ea8e..cef2530 100644 --- a/hw/pl181.c +++ b/hw/pl181.c @@ -38,20 +38,45 @@ typedef struct { uint32_t da

[Qemu-devel] [PATCH 09/15] syborg_timer: convert to memory API

2011-10-24 Thread Benoît Canet
Signed-off-by: Benoit Canet --- hw/syborg_timer.c | 27 ++- 1 files changed, 10 insertions(+), 17 deletions(-) diff --git a/hw/syborg_timer.c b/hw/syborg_timer.c index 50c813e..dfee457 100644 --- a/hw/syborg_timer.c +++ b/hw/syborg_timer.c @@ -53,6 +53,7 @@ enum { ty

[Qemu-devel] [PATCH 07/15] syborg_rtc: convert to memory API

2011-10-24 Thread Benoît Canet
Signed-off-by: Benoit Canet --- hw/syborg_rtc.c | 28 +++- 1 files changed, 11 insertions(+), 17 deletions(-) diff --git a/hw/syborg_rtc.c b/hw/syborg_rtc.c index 69f6ccf..375664f 100644 --- a/hw/syborg_rtc.c +++ b/hw/syborg_rtc.c @@ -35,12 +35,14 @@ enum { typedef s

[Qemu-devel] [PATCH 13/14] integratorcp: convert integratorcm to VMState

2011-10-24 Thread Benoît Canet
Signed-off-by: Benoit Canet --- hw/integratorcp.c | 24 1 files changed, 24 insertions(+), 0 deletions(-) diff --git a/hw/integratorcp.c b/hw/integratorcp.c index 7ad68b7..1ffe7d8 100644 --- a/hw/integratorcp.c +++ b/hw/integratorcp.c @@ -35,6 +35,29 @@ typedef struct

[Qemu-devel] (no subject)

2011-10-24 Thread Benoît Canet
These patches apply against akivity memory/master. They convert syborg to memory API and various arm related component to VMState. Omap boards where not modified because Linaro is currently refactoring them. Xscale was left apart too. This version fix coding style issues. >From Benoît Canet #

[Qemu-devel] [PATCH 07/14] syborg_serial: convert to memory API

2011-10-24 Thread Benoît Canet
Signed-off-by: Benoit Canet --- hw/syborg_serial.c | 28 +++- 1 files changed, 11 insertions(+), 17 deletions(-) diff --git a/hw/syborg_serial.c b/hw/syborg_serial.c index c83f82c..b73a009 100644 --- a/hw/syborg_serial.c +++ b/hw/syborg_serial.c @@ -58,6 +58,7 @@ enum {

[Qemu-devel] [PATCH 05/14] syborg_pointer: convert to memory API

2011-10-24 Thread Benoît Canet
Signed-off-by: Benoit Canet --- hw/syborg_pointer.c | 28 +++- 1 files changed, 11 insertions(+), 17 deletions(-) diff --git a/hw/syborg_pointer.c b/hw/syborg_pointer.c index b91214d..a0f8b32 100644 --- a/hw/syborg_pointer.c +++ b/hw/syborg_pointer.c @@ -44,6 +44,7 @@ t

[Qemu-devel] [PATCH 07/11] fulong2e: give ISA bus to ISA methods

2011-10-24 Thread Hervé Poussineau
Signed-off-by: Hervé Poussineau --- hw/mips_fulong2e.c |6 ++ hw/vt82c686.c |4 ++-- hw/vt82c686.h |2 +- 3 files changed, 5 insertions(+), 7 deletions(-) diff --git a/hw/mips_fulong2e.c b/hw/mips_fulong2e.c index e6e120c..5e87665 100644 --- a/hw/mips_fulong2e.c +++ b/

[Qemu-devel] [PATCH 06/14] syborg_rtc: convert to memory API

2011-10-24 Thread Benoît Canet
Signed-off-by: Benoit Canet --- hw/syborg_rtc.c | 28 +++- 1 files changed, 11 insertions(+), 17 deletions(-) diff --git a/hw/syborg_rtc.c b/hw/syborg_rtc.c index 69f6ccf..375664f 100644 --- a/hw/syborg_rtc.c +++ b/hw/syborg_rtc.c @@ -35,12 +35,14 @@ enum { typedef s

[Qemu-devel] [PATCH 11/11] audio: remove unused parameter isa_pic

2011-10-24 Thread Hervé Poussineau
Signed-off-by: Hervé Poussineau --- arch_init.c | 10 +- arch_init.h |2 +- hw/adlib.c |2 +- hw/audiodev.h |8 hw/cs4231a.c|2 +- hw/gus.c|2 +- hw/mips_jazz.c |2 +- hw/mips_malta.c |2 +- hw/pc.h |2 +- hw/

[Qemu-devel] [PATCH 08/14] syborg_timer: convert to memory API

2011-10-24 Thread Benoît Canet
Signed-off-by: Benoit Canet --- hw/syborg_timer.c | 27 ++- 1 files changed, 10 insertions(+), 17 deletions(-) diff --git a/hw/syborg_timer.c b/hw/syborg_timer.c index 50c813e..dfee457 100644 --- a/hw/syborg_timer.c +++ b/hw/syborg_timer.c @@ -53,6 +53,7 @@ enum { ty

[Qemu-devel] [PATCH] Fix compiler warning (always return a value)

2011-10-24 Thread Stefan Weil
For compilations with -DNDEBUG, the default case did not return a value which caused a compiler warning. Signed-off-by: Stefan Weil --- hw/ppce500_spin.c | 11 --- 1 files changed, 8 insertions(+), 3 deletions(-) diff --git a/hw/ppce500_spin.c b/hw/ppce500_spin.c index cccd940..5b5ffe

[Qemu-devel] [PATCH 01/14] mst_fpga: convert to memory API

2011-10-24 Thread Benoît Canet
Signed-off-by: Benoit Canet --- hw/mst_fpga.c | 29 - 1 files changed, 12 insertions(+), 17 deletions(-) diff --git a/hw/mst_fpga.c b/hw/mst_fpga.c index 7bcd5d7..cf9957b 100644 --- a/hw/mst_fpga.c +++ b/hw/mst_fpga.c @@ -34,6 +34,7 @@ typedef struct mst_irq_stat

[Qemu-devel] [PATCH 00/14] arm: more memory API and VMState conversion

2011-10-24 Thread Benoît Canet
These patches apply against akivity memory/master. They convert syborg to memory API and various arm related component to VMState. Omap boards where not modified because Linaro is currently refactoring them. Xscale was left apart too. Benoît Canet (14): mst_fpga: convert to memory API syborg

Re: [Qemu-devel] [PATCH] main-loop: Add missing include file

2011-10-24 Thread Stefan Weil
Am 24.10.2011 21:43, schrieb Anthony Liguori: On 10/24/2011 02:39 PM, Stefan Weil wrote: stdint.h defines the POSIX data types and is needed for MinGW-w64 (and maybe other hosts). Signed-off-by: Stefan Weil --- main-loop.c |1 + 1 files changed, 1 insertions(+), 0 deletions(-) diff --gi

[Qemu-devel] [PATCH] target-sparc: Fix order of function parameters

2011-10-24 Thread Stefan Weil
The MinGW-w64 gcc complains about wrong parameters for gen_helper_fpadd16_s and three other functions. gen_helper_fpadd16_s is declared like this (hidden in lots of macros): static inline void gen_helper_fpadd16s(TCGv_i32 retval, TCGv_ptr arg1, TCGv_i32 arg2, TCGv_i32 arg3);

Re: [Qemu-devel] [PATCH v2 3/4] Add cap reduction support to enable use as SUID

2011-10-24 Thread Corey Bryant
On 10/24/2011 03:21 PM, Anthony Liguori wrote: On 10/24/2011 02:13 PM, Corey Bryant wrote: Right, it's not desirable, but isn't that the best we can do without libcap or FS capabilities? I think the best we can do is not let it run in those cases. :) I'd like see if others in the community ha

[Qemu-devel] [PATCH] target-xtensa: handle cache options in the overlay tool

2011-10-24 Thread Max Filippov
Cache options must be enabled for the cores that have cache to avoid illegal instruction exceptions. Signed-off-by: Max Filippov --- target-xtensa/overlay_tool.h |6 ++ 1 files changed, 6 insertions(+), 0 deletions(-) diff --git a/target-xtensa/overlay_tool.h b/target-xtensa/overlay_too

[Qemu-devel] [PATCH 03/11] i8259: give ISA device to isa_register_ioport()

2011-10-24 Thread Hervé Poussineau
Signed-off-by: Hervé Poussineau --- hw/i8259.c |4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/hw/i8259.c b/hw/i8259.c index 4446339..7331e0e 100644 --- a/hw/i8259.c +++ b/hw/i8259.c @@ -469,9 +469,9 @@ static int pic_initfn(ISADevice *dev) memory_region_init_io(

[Qemu-devel] [PATCH 02/11] isa: move ISABus structure definition to header file

2011-10-24 Thread Hervé Poussineau
Signed-off-by: Hervé Poussineau --- hw/isa-bus.c |5 - hw/isa.h |6 ++ 2 files changed, 6 insertions(+), 5 deletions(-) diff --git a/hw/isa-bus.c b/hw/isa-bus.c index dcbb134..7c94f0b 100644 --- a/hw/isa-bus.c +++ b/hw/isa-bus.c @@ -22,11 +22,6 @@ #include "isa.h" #include

[Qemu-devel] [PATCH 00/11] isa: preliminary work for multiple buses

2011-10-24 Thread Hervé Poussineau
Current patches are a rework of my patches already available at [1]. They don't provide full support for multiple ISA buses (yet), but add a ISABus or ISADevice argument to all ISA functions. They are mostly mechanically touching every instanciation of ISA devices, so number of lines is quite high

[Qemu-devel] [PATCH 01/12] Fix typo: buf -> bus

2011-10-24 Thread Hervé Poussineau
Signed-off-by: Hervé Poussineau --- hw/audiodev.h |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/hw/audiodev.h b/hw/audiodev.h index 8e930b2..d60c349 100644 --- a/hw/audiodev.h +++ b/hw/audiodev.h @@ -11,7 +11,7 @@ int Adlib_init(qemu_irq *pic); int GUS_init(qemu_irq

Re: [Qemu-devel] [PATCH] main-loop: Add missing include file

2011-10-24 Thread Anthony Liguori
On 10/24/2011 02:39 PM, Stefan Weil wrote: stdint.h defines the POSIX data types and is needed for MinGW-w64 (and maybe other hosts). Signed-off-by: Stefan Weil --- main-loop.c |1 + 1 files changed, 1 insertions(+), 0 deletions(-) diff --git a/main-loop.c b/main-loop.c index bfecdb7..d9

[Qemu-devel] [PATCH] main-loop: Add missing include file

2011-10-24 Thread Stefan Weil
stdint.h defines the POSIX data types and is needed for MinGW-w64 (and maybe other hosts). Signed-off-by: Stefan Weil --- main-loop.c |1 + 1 files changed, 1 insertions(+), 0 deletions(-) diff --git a/main-loop.c b/main-loop.c index bfecdb7..d9585f8 100644 --- a/main-loop.c +++ b/main-loop

Re: [Qemu-devel] [PATCH v2 3/4] Add cap reduction support to enable use as SUID

2011-10-24 Thread Anthony Liguori
On 10/24/2011 02:13 PM, Corey Bryant wrote: Right, it's not desirable, but isn't that the best we can do without libcap or FS capabilities? I think the best we can do is not let it run in those cases. :) I'd like see if others in the community have an opinion on this though. IMHO, it should

Re: [Qemu-devel] [PATCH v2 3/4] Add cap reduction support to enable use as SUID

2011-10-24 Thread Anthony Liguori
On 10/24/2011 09:13 AM, Corey Bryant wrote: On 10/23/2011 09:22 AM, Blue Swirl wrote: On Fri, Oct 21, 2011 at 15:07, Corey Bryant wrote: The ideal way to use qemu-bridge-helper is to give it an fscap of using: setcap cap_net_admin=ep qemu-bridge-helper Unfortunately, most distros still do n

Re: [Qemu-devel] [PATCH v2 3/4] Add cap reduction support to enable use as SUID

2011-10-24 Thread Corey Bryant
On 10/24/2011 02:58 PM, Blue Swirl wrote: On Mon, Oct 24, 2011 at 18:38, Corey Bryant wrote: On 10/24/2011 01:10 PM, Blue Swirl wrote: On Mon, Oct 24, 2011 at 14:13, Corey Bryant wrote: On 10/23/2011 09:22 AM, Blue Swirl wrote: On Fri, Oct 21, 2011 at 15:07, Corey Bryant wrote:

Re: [Qemu-devel] [PATCH v2 3/4] Add cap reduction support to enable use as SUID

2011-10-24 Thread Blue Swirl
On Mon, Oct 24, 2011 at 18:38, Corey Bryant wrote: > > > On 10/24/2011 01:10 PM, Blue Swirl wrote: >> >> On Mon, Oct 24, 2011 at 14:13, Corey Bryant >>  wrote: >>> >>> >>> On 10/23/2011 09:22 AM, Blue Swirl wrote: On Fri, Oct 21, 2011 at 15:07, Corey Bryant  wrote: > > The i

Re: [Qemu-devel] [PATCH 0/4] add "make check"

2011-10-24 Thread Anthony Liguori
On 10/24/2011 01:43 PM, Eduardo Habkost wrote: On Mon, Sep 05, 2011 at 09:55:20AM +0200, Markus Armbruster wrote: Gerd Hoffmann writes: Hi, This patch series intends to make unit testing easier. It adds a new "make check" target which can be used to run all unit tests which are currently

[Qemu-devel] [PATCH] KVM: PPC: Override host vmx/vsx/dfp only when information known

2011-10-24 Thread Alexander Graf
The -cpu host feature tries to find out the host capabilities based on device tree information. However, we don't always have that available because it's an optional property in dt. So instead of force unsetting values depending on an unreliable source of information, let's just try to be clever a

Re: [Qemu-devel] [PATCH 0/4] add "make check"

2011-10-24 Thread Eduardo Habkost
On Mon, Sep 05, 2011 at 09:55:20AM +0200, Markus Armbruster wrote: > Gerd Hoffmann writes: > > > Hi, > > > > This patch series intends to make unit testing easier. It adds a new > > "make check" target which can be used to run all unit tests which are > > currently in the tree. It also enable

Re: [Qemu-devel] [PATCH v2 3/4] Add cap reduction support to enable use as SUID

2011-10-24 Thread Corey Bryant
On 10/24/2011 01:10 PM, Blue Swirl wrote: On Mon, Oct 24, 2011 at 14:13, Corey Bryant wrote: On 10/23/2011 09:22 AM, Blue Swirl wrote: On Fri, Oct 21, 2011 at 15:07, Corey Bryant wrote: The ideal way to use qemu-bridge-helper is to give it an fscap of using: setcap cap_net_admin=ep

[Qemu-devel] Windows 98 installer

2011-10-24 Thread Michael Karcher
Hello developers, there are plenty of reports in the internet that the Windows 98 installer crashes or hangs in qemu. I took the effort to track down what causes these problems, and I think I found out the core reason, which seems to be a bug in the Microsoft DOS Extender DOSX. The Windows 95/Win

[Qemu-devel] Qemu on Windows rather ignores AltGr Key (de keyboard)

2011-10-24 Thread Robert
Hi, Qemu Manager 7.0 with QEMU 0.11.1 (last qemu with KQEMU accelerator) on German Windows XP, German Keyboard: I cannot type any characters which require the AltGr key. And "| @ \" are very important! No reaction at all, when I press AltGr and any of the sensitive keys, so no wrong charact

Re: [Qemu-devel] [Qemu-ppc] [PATCH] pseries: Correct vmx/dfp handling in both KVM and TCG cases

2011-10-24 Thread Alexander Graf
On 24.10.2011, at 10:55, Alexander Graf wrote: > > On 24.10.2011, at 10:25, Alexander Graf wrote: > >> >> On 23.10.2011, at 22:29, David Gibson wrote: >> >>> On Thu, Oct 20, 2011 at 11:49:40PM -0700, Alexander Graf wrote: On 20.10.2011, at 22:06, David Gibson wrote: > On

Re: [Qemu-devel] [Qemu-ppc] [PATCH] pseries: Correct vmx/dfp handling in both KVM and TCG cases

2011-10-24 Thread Alexander Graf
On 24.10.2011, at 10:25, Alexander Graf wrote: > > On 23.10.2011, at 22:29, David Gibson wrote: > >> On Thu, Oct 20, 2011 at 11:49:40PM -0700, Alexander Graf wrote: >>> >>> On 20.10.2011, at 22:06, David Gibson wrote: >>> On Thu, Oct 20, 2011 at 07:40:00PM -0700, Alexander Graf wrote: >>

Re: [Qemu-devel] [PATCH 5/5] qxl: support async monitor screen dump

2011-10-24 Thread Alon Levy
On Mon, Oct 24, 2011 at 05:29:47PM +0200, Gerd Hoffmann wrote: > On 10/24/11 14:02, Alon Levy wrote: > > Split qxl_spice_update_area_complete from qxl_render_update, use > > SPICE_INTERFACE_QXL_MINOR 2 introduced spice_qxl_update_area_dirty_async > > to retrive the dirty rectangles asyncronously (t

Re: [Qemu-devel] [PATCH 1/5] monitor: screen_dump async

2011-10-24 Thread Alon Levy
On Mon, Oct 24, 2011 at 01:45:16PM -0200, Luiz Capitulino wrote: > On Mon, 24 Oct 2011 17:13:14 +0200 > Gerd Hoffmann wrote: > > > On 10/24/11 14:02, Alon Levy wrote: > > > Make screen_dump monitor command an async command to allow next for qxl > > > to implement it as a initiating call to red_wo

Re: [Qemu-devel] [Qemu-ppc] [PATCH] pseries: Correct vmx/dfp handling in both KVM and TCG cases

2011-10-24 Thread Alexander Graf
On 23.10.2011, at 22:29, David Gibson wrote: > On Thu, Oct 20, 2011 at 11:49:40PM -0700, Alexander Graf wrote: >> >> On 20.10.2011, at 22:06, David Gibson wrote: >> >>> On Thu, Oct 20, 2011 at 07:40:00PM -0700, Alexander Graf wrote: On 20.10.2011, at 17:41, David Gibson wrote: > On Th

Re: [Qemu-devel] [PATCH v2 3/4] Add cap reduction support to enable use as SUID

2011-10-24 Thread Blue Swirl
On Mon, Oct 24, 2011 at 14:13, Corey Bryant wrote: > > > On 10/23/2011 09:22 AM, Blue Swirl wrote: >> >> On Fri, Oct 21, 2011 at 15:07, Corey Bryant >>  wrote: >>> >>> The ideal way to use qemu-bridge-helper is to give it an fscap of using: >>> >>>  setcap cap_net_admin=ep qemu-bridge-helper >>> >

Re: [Qemu-devel] [PATCH v2 2/4] Add access control support to qemu bridge helper

2011-10-24 Thread Blue Swirl
On Mon, Oct 24, 2011 at 13:44, Corey Bryant wrote: > > > On 10/23/2011 09:10 AM, Blue Swirl wrote: >> >> On Fri, Oct 21, 2011 at 15:07, Corey Bryant >>  wrote: >>> >>> >  We go to great lengths to restrict ourselves to just cap_net_admin as >>> > an OS >>> >  enforced security mechanism.  However,

Re: [Qemu-devel] [PULL 00/19] Block patches

2011-10-24 Thread Anthony Liguori
On 10/21/2011 12:18 PM, Kevin Wolf wrote: The following changes since commit c2e2343e1faae7bbc77574c12a25881b1b696808: hw/arm_gic.c: Fix save/load of irq_target array (2011-10-21 17:19:56 +0200) are available in the git repository at: git://repo.or.cz/qemu/kevin.git for-anthony Pulled.

Re: [Qemu-devel] [PULL v3 00/13] allow tools to use the QEMU main loop

2011-10-24 Thread Anthony Liguori
On 10/21/2011 11:26 AM, Paolo Bonzini wrote: The following changes since commit c76eaf13975130768070ecd2d4f3107eb69ab757: hw/9pfs: Fix broken compilation caused by wrong trace events (2011-10-20 15:30:59 -0500) are available in the git repository at: git://github.com/bonzini/qemu.git spl

Re: [Qemu-devel] gcc auto-omit-frame-pointer vs msvc longjmp

2011-10-24 Thread Kai Tietz
2011/10/24 Bob Breuer : > Kai Tietz wrote: >> Hi, >> >> For trunk-version I have a tentative patch for this issue.  On 4.6.x >> and older branches this doesn't work, as here we can't differenciate >> that easy between ms- and sysv-abi. >> >> But could somebody give this patch a try? >> >> Regards,

Re: [Qemu-devel] [Question] dump memory when host pci device is used by guest

2011-10-24 Thread Dave Anderson
- Original Message - > > > No, an ELF image of the guest's physical memory. > > > > Well then that should be pretty straight forward to support. Depending upon > > how similar it would be to the "standard" kdump ELF format, the only other > > issue is how to determine the physical base

Re: [Qemu-devel] [PATCH 1/5] monitor: screen_dump async

2011-10-24 Thread Luiz Capitulino
On Mon, 24 Oct 2011 17:13:14 +0200 Gerd Hoffmann wrote: > On 10/24/11 14:02, Alon Levy wrote: > > Make screen_dump monitor command an async command to allow next for qxl > > to implement it as a initiating call to red_worker and completion on > > callback, to fix a deadlock when issueing a screen

Re: [Qemu-devel] [PATCH 29/35] scsi-disk: remove cluster_size

2011-10-24 Thread Paolo Bonzini
On 10/24/2011 05:10 PM, Kevin Wolf wrote: > -bdrv_get_geometry(s->qdev.conf.bs,&nb_sectors); > -nb_sectors /= s->cluster_size; > -if (nb_sectors) { > -nb_sectors--; > +if (s->qdev.blocksize) { When would it be 0? And wouldn't we crash with a zero blocksize anyway?

Re: [Qemu-devel] [PATCH 35/35] scsi-disk: add scsi-block for device passthrough

2011-10-24 Thread Kevin Wolf
Am 24.10.2011 17:28, schrieb Paolo Bonzini: > On 10/24/2011 05:28 PM, Kevin Wolf wrote: >>> scsi-block is a new device that supports device passthrough of Linux block devices (i.e. /dev/sda, not /dev/sg0). It uses SG_IO for commands other than I/O commands, and regular AIO read/writes

Re: [Qemu-devel] KVM call agenda for October 25

2011-10-24 Thread Luiz Capitulino
On Mon, 24 Oct 2011 13:02:05 +0100 Peter Maydell wrote: > On 24 October 2011 12:35, Paolo Bonzini wrote: > > On 10/24/2011 01:04 PM, Juan Quintela wrote: > >> Please send in any agenda items you are interested in covering. > > > > - What's left to merge for 1.0. > > Things on my list, FWIW: >

Re: [Qemu-devel] [Question] dump memory when host pci device is used by guest

2011-10-24 Thread Avi Kivity
On 10/24/2011 05:25 PM, Dave Anderson wrote: > > - Original Message - > > On 10/24/2011 04:25 PM, Dave Anderson wrote: > > > > The question is that: 'virsh dump' can not be used when host pci device > > > > is used by guest. We are discussing how to fix the problem. We have > > > > determi

  1   2   >