Re: [Qemu-devel] [RFC] New thread for the VM migration

2011-07-17 Thread Avi Kivity
On 07/15/2011 10:59 AM, Paolo Bonzini wrote: On 07/14/2011 06:07 PM, Avi Kivity wrote: Maybe we can do this via a magic subsection whose contents are the hotplug event. What about making the device list just another thing that has to be migrated live, together with block and ram?

[Qemu-devel] [PATCH] checkpatch: Fix bracing false positives on #if

2011-07-17 Thread Blue Swirl
789f88d0b21fedfd4251d56bb7a9fbfbda7a4ac7 only fixed #else, fix also #if. Signed-off-by: Blue Swirl blauwir...@gmail.com --- scripts/checkpatch.pl |1 + 1 files changed, 1 insertions(+), 0 deletions(-) diff --git a/scripts/checkpatch.pl b/scripts/checkpatch.pl index 075b614..9bc867f 100755

Re: [Qemu-devel] [PATCH 3/3] w32: Fix format string regression

2011-07-17 Thread Blue Swirl
On Fri, Jul 15, 2011 at 11:42 PM, Andreas Färber andreas.faer...@web.de wrote: Am 15.07.2011 um 21:38 schrieb Stefan Weil: Commit 953ffe0f935f40c0d6061d69e76e0339393b54f8 introduced FMT_pid which is wrong for w32 and w64 getpid(): those getpid() implementations always return an int value.

[Qemu-devel] [RFC v4 00/58] Memory API

2011-07-17 Thread Avi Kivity
New in this version: MemoryRegionOps gained .old_mmio and .old_portio members, which allow reusing old-style callbacks with the new API. All uses were converted, except for eepro100.c, which uses the same MemoryRegionOps for both portio and mmio. Some intermediate patches do introduce

[Qemu-devel] [RFC v4 04/58] Internal interfaces for memory API

2011-07-17 Thread Avi Kivity
get_system_memory() provides the root of the memory hierarchy. This interface is intended to be private between memory.c and exec.c. If this file is included elsewhere, it should be regarded as a bug (or TODO item). However, it will be temporarily needed for the conversion to hierarchical memory

[Qemu-devel] [RFC v4 25/58] cirrus: simplify bitblt BAR access functions

2011-07-17 Thread Avi Kivity
Make use of the memory API's ability to satisfy multi-byte accesses via multiple single-byte accesses. Signed-off-by: Avi Kivity a...@redhat.com --- hw/cirrus_vga.c | 81 +-- 1 files changed, 13 insertions(+), 68 deletions(-) diff --git

[Qemu-devel] [RFC v4 02/58] memory: implement dirty tracking

2011-07-17 Thread Avi Kivity
Currently dirty tracking is implemented by passing through all calls to the underlying cpu_physical_memory_*() calls. Signed-off-by: Avi Kivity a...@redhat.com --- memory.c | 39 +++ memory.h |1 + 2 files changed, 32 insertions(+), 8 deletions(-) diff

[Qemu-devel] [RFC v4 13/58] ioport: register ranges by byte aligned addresses always

2011-07-17 Thread Avi Kivity
The I/O port space is byte addressable, even for word and long accesses. An example is the VMware svga card, which has long ports on offsets 0, 1, and 2. Signed-off-by: Avi Kivity a...@redhat.com --- ioport.c |4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/ioport.c

[Qemu-devel] [RFC v4 35/58] e1000: convert to memory API

2011-07-17 Thread Avi Kivity
Signed-off-by: Avi Kivity a...@redhat.com --- hw/e1000.c | 114 +-- 1 files changed, 48 insertions(+), 66 deletions(-) diff --git a/hw/e1000.c b/hw/e1000.c index 96d84f9..8e4830f 100644 --- a/hw/e1000.c +++ b/hw/e1000.c @@ -82,7 +82,8 @@

[Qemu-devel] [RFC v4 22/58] vmsvga: don't remember pci BAR address in callback any more

2011-07-17 Thread Avi Kivity
We're going to remove the callback, so we can't use it to save the address. Use the pci API instead. Signed-off-by: Avi Kivity a...@redhat.com --- hw/vmware_vga.c | 12 ++-- 1 files changed, 6 insertions(+), 6 deletions(-) diff --git a/hw/vmware_vga.c b/hw/vmware_vga.c index

[Qemu-devel] [RFC v4 03/58] memory: merge adjacent segments of a single memory region

2011-07-17 Thread Avi Kivity
Simple implementations of memory routers, for example the Cirrus VGA memory banks or the 440FX PAM registers can generate adjacent memory regions which are contiguous. Detect these and merge them; this saves kvm memory slots and shortens lookup times. Signed-off-by: Avi Kivity a...@redhat.com

[Qemu-devel] [RFC v4 18/58] pci: add MemoryRegion based BAR management API

2011-07-17 Thread Avi Kivity
Allow registering a BAR using a MemoryRegion. Once all users are converted, pci_register_bar() and pci_register_bar_simple() will be removed. Signed-off-by: Avi Kivity a...@redhat.com --- hw/pci.c | 47 +++ hw/pci.h |3 +++ 2 files changed, 42

[Qemu-devel] [RFC v4 36/58] eepro100: convert to memory API

2011-07-17 Thread Avi Kivity
Note: the existing code aliases the flash BAR into the MMIO bar. This is probably a bug. This patch does not correct the problem. Signed-off-by: Avi Kivity a...@redhat.com --- hw/eepro100.c | 182 - 1 files changed, 37 insertions(+), 145

[Qemu-devel] [RFC v4 30/58] exec.c: fix initialization of system I/O memory region

2011-07-17 Thread Avi Kivity
Signed-off-by: Avi Kivity a...@redhat.com --- exec.c |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/exec.c b/exec.c index defd9e3..e95c183 100644 --- a/exec.c +++ b/exec.c @@ -3820,7 +3820,7 @@ static void memory_map_init(void) set_system_memory_map(system_memory);

[Qemu-devel] [RFC v4 07/58] memory: late initialization of ram_addr

2011-07-17 Thread Avi Kivity
For non-RAM memory regions, we cannot tell whether this is an I/O region or an MMIO region. Since the qemu backing registration is different for the two, we have to defer initialization until we know which address space we are in. These shenanigans will be removed once the backing registration

[Qemu-devel] [RFC v4 55/58] pci: convert pci rom to memory API

2011-07-17 Thread Avi Kivity
Signed-off-by: Avi Kivity a...@redhat.com --- hw/pci.c | 20 +++- hw/pci.h |3 ++- 2 files changed, 9 insertions(+), 14 deletions(-) diff --git a/hw/pci.c b/hw/pci.c index 9db6fc8..8c7a418 100644 --- a/hw/pci.c +++ b/hw/pci.c @@ -1858,11 +1858,6 @@ static uint8_t

[Qemu-devel] [RFC v4 12/58] exec.c: initialize memory map

2011-07-17 Thread Avi Kivity
Allocate the root memory region and initialize it. Signed-off-by: Avi Kivity a...@redhat.com --- exec.c | 19 +++ 1 files changed, 19 insertions(+), 0 deletions(-) diff --git a/exec.c b/exec.c index f1777e6..8cdf268 100644 --- a/exec.c +++ b/exec.c @@ -33,6 +33,8 @@ #include

[Qemu-devel] [RFC v4 42/58] intel-hda: convert to memory API

2011-07-17 Thread Avi Kivity
Signed-off-by: Avi Kivity a...@redhat.com --- hw/intel-hda.c | 35 +++ 1 files changed, 19 insertions(+), 16 deletions(-) diff --git a/hw/intel-hda.c b/hw/intel-hda.c index 5a2bc3a..f065dce 100644 --- a/hw/intel-hda.c +++ b/hw/intel-hda.c @@ -177,7 +177,7 @@

[Qemu-devel] [RFC v4 37/58] es1370: convert to memory API

2011-07-17 Thread Avi Kivity
Signed-off-by: Avi Kivity a...@redhat.com --- hw/es1370.c | 43 +-- 1 files changed, 25 insertions(+), 18 deletions(-) diff --git a/hw/es1370.c b/hw/es1370.c index 1ed62b7..283b0a7 100644 --- a/hw/es1370.c +++ b/hw/es1370.c @@ -268,6 +268,7 @@ struct

[Qemu-devel] [RFC v4 40/58] virtio-pci: convert to memory API

2011-07-17 Thread Avi Kivity
except msix. Signed-off-by: Avi Kivity a...@redhat.com --- hw/virtio-pci.c | 71 +- hw/virtio-pci.h |2 +- 2 files changed, 29 insertions(+), 44 deletions(-) diff --git a/hw/virtio-pci.c b/hw/virtio-pci.c index d685243..316fb96 100644

[Qemu-devel] [RFC v4 33/58] rtl8139: convert to memory API

2011-07-17 Thread Avi Kivity
Signed-off-by: Avi Kivity a...@redhat.com --- hw/rtl8139.c | 72 ++--- 1 files changed, 38 insertions(+), 34 deletions(-) diff --git a/hw/rtl8139.c b/hw/rtl8139.c index 5214b8c..d376115 100644 --- a/hw/rtl8139.c +++ b/hw/rtl8139.c @@ -474,7

[Qemu-devel] [RFC v4 05/58] memory: abstract address space operations

2011-07-17 Thread Avi Kivity
Prepare for multiple address space support by abstracting away the details of registering a memory range with qemu's flat representation into an AddressSpace object. Note operations which are memory specific are not abstracted, since they will never be called on I/O address spaces anyway.

[Qemu-devel] [RFC v4 19/58] sysbus: add MemoryRegion based memory management API

2011-07-17 Thread Avi Kivity
Allow registering sysbus device memory using a MemoryRegion. Once all users are converted, sysbus_init_mmio() and sysbus_init_mmio_cb() will be removed. Signed-off-by: Avi Kivity a...@redhat.com --- hw/sysbus.c | 27 --- hw/sysbus.h |3 +++ 2 files changed, 27

[Qemu-devel] [RFC v4 43/58] lsi53c895a: convert to memory API

2011-07-17 Thread Avi Kivity
An optimization that fast-pathed DMA reads from the SCRIPTS memory was removed int the process. Likely it breaks with iommus anyway. Signed-off-by: Avi Kivity a...@redhat.com --- hw/lsi53c895a.c | 258 --- 1 files changed, 56 insertions(+),

[Qemu-devel] [RFC v4 16/58] pc: move global memory map out of pc_init1() and into its callers

2011-07-17 Thread Avi Kivity
Signed-off-by: Avi Kivity a...@redhat.com --- hw/pc_piix.c | 15 --- 1 files changed, 8 insertions(+), 7 deletions(-) diff --git a/hw/pc_piix.c b/hw/pc_piix.c index d83854c..f2d0476 100644 --- a/hw/pc_piix.c +++ b/hw/pc_piix.c @@ -68,7 +68,8 @@ static void ioapic_init(IsaIrqState

[Qemu-devel] [RFC v4 15/58] pc: convert pc_memory_init() to memory API

2011-07-17 Thread Avi Kivity
Signed-off-by: Avi Kivity a...@redhat.com --- hw/pc.c | 59 --- hw/pc.h |1 + 2 files changed, 41 insertions(+), 19 deletions(-) diff --git a/hw/pc.c b/hw/pc.c index 369566a..1c9d89a 100644 --- a/hw/pc.c +++ b/hw/pc.c @@ -41,6 +41,7

[Qemu-devel] [RFC v4 26/58] cirrus: simplify vga window mmio access functions

2011-07-17 Thread Avi Kivity
Make use of the memory API's ability to satisfy multi-byte accesses via multiple single-byte accesses. Signed-off-by: Avi Kivity a...@redhat.com --- hw/cirrus_vga.c | 79 +++--- 1 files changed, 11 insertions(+), 68 deletions(-) diff --git

[Qemu-devel] [RFC v4 06/58] memory: rename MemoryRegion::has_ram_addr to ::terminates

2011-07-17 Thread Avi Kivity
I/O regions will not have ram_addrs, so this is a better name. Signed-off-by: Avi Kivity a...@redhat.com --- memory.c | 18 +- memory.h |2 +- 2 files changed, 10 insertions(+), 10 deletions(-) diff --git a/memory.c b/memory.c index 7187223..5fda4a0 100644 --- a/memory.c

[Qemu-devel] [RFC v4 48/58] isa-mmio: concert to memory API

2011-07-17 Thread Avi Kivity
Signed-off-by: Avi Kivity a...@redhat.com --- hw/isa.h |2 ++ hw/isa_mmio.c | 30 +++--- 2 files changed, 17 insertions(+), 15 deletions(-) diff --git a/hw/isa.h b/hw/isa.h index d2b6126..f1f2181 100644 --- a/hw/isa.h +++ b/hw/isa.h @@ -4,6 +4,7 @@ /* ISA bus

[Qemu-devel] [RFC v4 57/58] pci: fold BAR mapping function into its caller

2011-07-17 Thread Avi Kivity
There is only one function, so no need for a function pointer. Signed-off-by: Avi Kivity a...@redhat.com --- hw/pci.c | 25 + hw/pci.h |1 - 2 files changed, 9 insertions(+), 17 deletions(-) diff --git a/hw/pci.c b/hw/pci.c index 2543ced..04b6372 100644 ---

[Qemu-devel] [RFC v4 11/58] memory: add ioeventfd support

2011-07-17 Thread Avi Kivity
As with the rest of the memory API, the caller associates an eventfd with an address, and the memory API takes care of registering or unregistering when the address is made visible or invisible to the guest. Signed-off-by: Avi Kivity a...@redhat.com --- memory.c | 218

[Qemu-devel] [RFC v4 28/58] cirrus: simplify linear framebuffer access functions

2011-07-17 Thread Avi Kivity
Make use of the memory API's ability to satisfy multi-byte accesses via multiple single-byte accesses. Signed-off-by: Avi Kivity a...@redhat.com --- hw/cirrus_vga.c | 74 ++- 1 files changed, 8 insertions(+), 66 deletions(-) diff --git

[Qemu-devel] [RFC v4 10/58] memory: add backward compatibility for old mmio registration

2011-07-17 Thread Avi Kivity
This eases the transition to the new API. Signed-off-by: Avi Kivity a...@redhat.com --- memory.c | 10 ++ memory.h | 10 ++ 2 files changed, 20 insertions(+), 0 deletions(-) diff --git a/memory.c b/memory.c index bb04952..e4446a0 100644 --- a/memory.c +++ b/memory.c @@ -14,6

[Qemu-devel] [RFC v4 39/58] ivshmem: convert to memory API

2011-07-17 Thread Avi Kivity
excluding msix. Signed-off-by: Avi Kivity a...@redhat.com --- hw/ivshmem.c | 148 -- 1 files changed, 50 insertions(+), 98 deletions(-) diff --git a/hw/ivshmem.c b/hw/ivshmem.c index 3055dd2..e028b19 100644 --- a/hw/ivshmem.c +++

[Qemu-devel] [RFC v4 20/58] usb-ohci: convert to MemoryRegion

2011-07-17 Thread Avi Kivity
Signed-off-by: Avi Kivity a...@redhat.com --- hw/usb-ohci.c | 42 +- 1 files changed, 17 insertions(+), 25 deletions(-) diff --git a/hw/usb-ohci.c b/hw/usb-ohci.c index 1c29b9f..36885cb 100644 --- a/hw/usb-ohci.c +++ b/hw/usb-ohci.c @@ -62,7 +62,7 @@

[Qemu-devel] [RFC v4 01/58] Hierarchical memory region API

2011-07-17 Thread Avi Kivity
The memory API separates the attributes of a memory region (its size, how reads or writes are handled, dirty logging, and coalescing) from where it is mapped and whether it is enabled. This allows a device to configure a memory region once, then hand it off to its parent bus to map it according

[Qemu-devel] [RFC v4 54/58] pci: remove pci_register_bar_simple()

2011-07-17 Thread Avi Kivity
Superceded by pci_register_bar_region(). Signed-off-by: Avi Kivity a...@redhat.com --- hw/pci.c | 16 hw/pci.h |2 -- 2 files changed, 0 insertions(+), 18 deletions(-) diff --git a/hw/pci.c b/hw/pci.c index 980840f..9db6fc8 100644 --- a/hw/pci.c +++ b/hw/pci.c @@ -923,13

[Qemu-devel] [RFC v4 47/58] i6300esb: convert to memory API

2011-07-17 Thread Avi Kivity
Also add missing destructor. Signed-off-by: Avi Kivity a...@redhat.com --- hw/wdt_i6300esb.c | 43 +-- 1 files changed, 29 insertions(+), 14 deletions(-) diff --git a/hw/wdt_i6300esb.c b/hw/wdt_i6300esb.c index 53786ce..fb61142 100644 ---

[Qemu-devel] [RFC v4 29/58] Integrate I/O memory regions into qemu

2011-07-17 Thread Avi Kivity
get_system_io() returns the root I/O memory region. Signed-off-by: Avi Kivity a...@redhat.com --- exec-memory.h |2 ++ exec.c| 10 ++ 2 files changed, 12 insertions(+), 0 deletions(-) diff --git a/exec-memory.h b/exec-memory.h index aad21b5..3acb15f 100644 ---

[Qemu-devel] [RFC v4 08/58] memory: I/O address space support

2011-07-17 Thread Avi Kivity
Allow registering I/O ports via the same mechanism as mmio ranges. Signed-off-by: Avi Kivity a...@redhat.com --- exec-memory.h |3 ++ memory.c | 60 - memory.h |2 + 3 files changed, 64 insertions(+), 1 deletions(-)

[Qemu-devel] [RFC v4 53/58] msix: convert to memory API

2011-07-17 Thread Avi Kivity
The msix table is defined as a subregion, to allow for a BAR that mixes device specific regions with the msix table. Signed-off-by: Avi Kivity a...@redhat.com --- hw/ivshmem.c| 11 + hw/msix.c | 64 +++ hw/msix.h |

[Qemu-devel] [RFC v4 50/58] ehci: convert to memory API

2011-07-17 Thread Avi Kivity
Signed-off-by: Avi Kivity a...@redhat.com --- hw/usb-ehci.c | 36 +--- 1 files changed, 9 insertions(+), 27 deletions(-) diff --git a/hw/usb-ehci.c b/hw/usb-ehci.c index 91fb7de..076c0b2 100644 --- a/hw/usb-ehci.c +++ b/hw/usb-ehci.c @@ -371,8 +371,7 @@ struct

[Qemu-devel] [RFC v4 27/58] vga: simplify vga window mmio access functions

2011-07-17 Thread Avi Kivity
Make use of the memory API's ability to satisfy multi-byte accesses via multiple single-byte accesses. We have to keep vga_mem_{read,write}b() since they're used by cirrus. Signed-off-by: Avi Kivity a...@redhat.com --- hw/cirrus_vga.c |4 +- hw/vga.c| 56

[Qemu-devel] [RFC v4 14/58] pc: grab system_memory

2011-07-17 Thread Avi Kivity
While eventually this should come from the machine initialization function, take a short cut to avoid converting all machines now. Signed-off-by: Avi Kivity a...@redhat.com --- hw/pc.c |3 ++- hw/pc.h |4 +++- hw/pc_piix.c |8 +++- 3 files changed, 12 insertions(+), 3

[Qemu-devel] [RFC v4 09/58] memory: add backward compatibility for old portio registration

2011-07-17 Thread Avi Kivity
Signed-off-by: Avi Kivity a...@redhat.com --- memory.c | 32 memory.h | 17 + 2 files changed, 49 insertions(+), 0 deletions(-) diff --git a/memory.c b/memory.c index 62bd60b..bb04952 100644 --- a/memory.c +++ b/memory.c @@ -211,6 +211,21 @@

[Qemu-devel] [RFC v4 34/58] ac97: convert to memory API

2011-07-17 Thread Avi Kivity
fixes BAR sizing as well. Signed-off-by: Avi Kivity a...@redhat.com --- hw/ac97.c | 88 +++- 1 files changed, 51 insertions(+), 37 deletions(-) diff --git a/hw/ac97.c b/hw/ac97.c index 0b59896..b662caa 100644 --- a/hw/ac97.c +++

[Qemu-devel] [RFC v4 52/58] xen-platform: convert to memory API

2011-07-17 Thread Avi Kivity
Since this device bypasses PCI and registers I/O ports directly with the system bus, it needs further attention. Signed-off-by: Avi Kivity a...@redhat.com --- hw/xen_platform.c | 83 1 files changed, 51 insertions(+), 32 deletions(-) diff

[Qemu-devel] [RFC v4 24/58] cirrus: simplify mmio BAR access functions

2011-07-17 Thread Avi Kivity
Make use of the memory API's ability to satisfy multi-byte accesses via multiple single-byte accesses. Signed-off-by: Avi Kivity a...@redhat.com --- hw/cirrus_vga.c | 78 +- 1 files changed, 8 insertions(+), 70 deletions(-) diff --git

[Qemu-devel] [RFC v4 46/58] pcnet: convert to memory API

2011-07-17 Thread Avi Kivity
Also related chips. Signed-off-by: Avi Kivity a...@redhat.com --- hw/lance.c | 31 ++- hw/pcnet-pci.c | 74 +-- hw/pcnet.h |4 ++- 3 files changed, 61 insertions(+), 48 deletions(-) diff --git a/hw/lance.c

[Qemu-devel] [RFC v4 21/58] pci: add API to get a BAR's mapped address

2011-07-17 Thread Avi Kivity
This is a hack, for devices that have a back-channel to read this address back outside the normal configuration mechanisms, such as VMware svga. Signed-off-by: Avi Kivity a...@redhat.com --- hw/pci.c |5 + hw/pci.h |1 + 2 files changed, 6 insertions(+), 0 deletions(-) diff --git

[Qemu-devel] [RFC v4 51/58] uhci: convert to memory API

2011-07-17 Thread Avi Kivity
Signed-off-by: Avi Kivity a...@redhat.com --- hw/usb-uhci.c | 43 +-- 1 files changed, 29 insertions(+), 14 deletions(-) diff --git a/hw/usb-uhci.c b/hw/usb-uhci.c index 405fa7b..5202e37 100644 --- a/hw/usb-uhci.c +++ b/hw/usb-uhci.c @@ -132,6 +132,7 @@

[Qemu-devel] [RFC v4 41/58] ahci: convert to memory API

2011-07-17 Thread Avi Kivity
Signed-off-by: Avi Kivity a...@redhat.com --- hw/ide/ahci.c | 31 +-- hw/ide/ahci.h |2 +- hw/ide/ich.c |3 +-- 3 files changed, 15 insertions(+), 21 deletions(-) diff --git a/hw/ide/ahci.c b/hw/ide/ahci.c index 1f008a3..e207ca0 100644 --- a/hw/ide/ahci.c

[Qemu-devel] [RFC v4 49/58] sun4u: convert to memory API

2011-07-17 Thread Avi Kivity
fixes memory leak on repeated BAR map/unmap Signed-off-by: Avi Kivity a...@redhat.com --- hw/sun4u.c | 55 +-- 1 files changed, 25 insertions(+), 30 deletions(-) diff --git a/hw/sun4u.c b/hw/sun4u.c index d7dcaf0..74a06a8 100644 ---

[Qemu-devel] [RFC v4 32/58] pci: allow I/O BARs to be registered with pci_register_bar_region()

2011-07-17 Thread Avi Kivity
Signed-off-by: Avi Kivity a...@redhat.com --- hw/pci.c | 43 +++ hw/pci.h |1 + hw/pci_internals.h |3 ++- 3 files changed, 26 insertions(+), 21 deletions(-) diff --git a/hw/pci.c b/hw/pci.c index 2659d96..980840f 100644 ---

[Qemu-devel] [RFC v4 45/58] ne2000: convert to memory API

2011-07-17 Thread Avi Kivity
Signed-off-by: Avi Kivity a...@redhat.com --- hw/ne2000-isa.c | 14 +++--- hw/ne2000.c | 77 +- hw/ne2000.h |8 + 3 files changed, 59 insertions(+), 40 deletions(-) diff --git a/hw/ne2000-isa.c b/hw/ne2000-isa.c index

[Qemu-devel] [RFC v4 17/58] pci: pass address space to pci bus when created

2011-07-17 Thread Avi Kivity
This is now done sloppily, via get_system_memory(). Eventually callers will be converted to stop using that. Signed-off-by: Avi Kivity a...@redhat.com --- hw/apb_pci.c |2 ++ hw/bonito.c|4 +++- hw/grackle_pci.c |5 +++-- hw/gt64xxx.c |4 +++- hw/pc.h

[Qemu-devel] [RFC v4 58/58] pci: rename pci_register_bar_region() to pci_register_bar()

2011-07-17 Thread Avi Kivity
Signed-off-by: Avi Kivity a...@redhat.com --- hw/ac97.c |4 ++-- hw/cirrus_vga.c |5 ++--- hw/e1000.c|5 ++--- hw/eepro100.c |7 +++ hw/es1370.c |2 +- hw/ide/cmd646.c | 14 +- hw/ide/ich.c |2 +- hw/ide/piix.c |

[Qemu-devel] [RFC v4 38/58] ide: convert to memory API

2011-07-17 Thread Avi Kivity
Signed-off-by: Avi Kivity a...@redhat.com --- hw/ide/cmd646.c | 208 +++ hw/ide/pci.c| 25 --- hw/ide/pci.h| 19 - hw/ide/piix.c | 64 + hw/ide/via.c| 65 + 5 files changed, 261

[Qemu-devel] [RFC v4 56/58] pci: remove pci_register_bar()

2011-07-17 Thread Avi Kivity
Superceded by pci_register_bar_region(). The implementations are folded together. Signed-off-by: Avi Kivity a...@redhat.com --- hw/pci.c | 42 +- hw/pci.h |3 --- 2 files changed, 17 insertions(+), 28 deletions(-) diff --git a/hw/pci.c b/hw/pci.c

[Qemu-devel] [RFC v4 44/58] ppc: convert to memory API

2011-07-17 Thread Avi Kivity
Signed-off-by: Avi Kivity a...@redhat.com --- hw/cuda.c |6 ++- hw/escc.c | 42 +-- hw/escc.h |2 +- hw/heathrow_pic.c | 29 -- hw/ide.h |2 +- hw/ide/macio.c| 36 --- hw/mac_dbdma.c

[Qemu-devel] [RFC v4 31/58] pci: pass I/O address space to new PCI bus

2011-07-17 Thread Avi Kivity
This lets us register BARs in the I/O address space. Signed-off-by: Avi Kivity a...@redhat.com --- hw/apb_pci.c |1 + hw/bonito.c|1 + hw/grackle_pci.c |8 ++-- hw/gt64xxx.c |4 +++- hw/pc.h|4 +++- hw/pc_piix.c |6 +-

[Qemu-devel] [RFC v4 23/58] vga: convert vga and its derivatives to the memory API

2011-07-17 Thread Avi Kivity
Convert all vga memory to the memory API. Note we need to fall back to get_system_memory(), since the various buses don't pass the vga window as a memory region. Signed-off-by: Avi Kivity a...@redhat.com --- hw/cirrus_vga.c | 345 +--

Re: [Qemu-devel] [PATCH] exec.h cleanup

2011-07-17 Thread Peter Maydell
On 17 July 2011 13:31, Blue Swirl blauwir...@gmail.com wrote: diff --git a/target-arm/iwmmxt_helper.c b/target-arm/iwmmxt_helper.c index ebe6eb9..fbd3547 100644 --- a/target-arm/iwmmxt_helper.c +++ b/target-arm/iwmmxt_helper.c @@ -23,7 +23,7 @@  #include stdio.h  #include cpu.h -#include

[Qemu-devel] [PULL] pci, virtio, vhost, xen

2011-07-17 Thread Michael S. Tsirkin
The following changes since commit 89b9ba661bd2d6155308f895ec075d813f0e129b: Fix signal handling of SIG_IPI when io-thread is enabled (2011-07-16 19:43:00 +) are available in the git repository at: git://git.kernel.org/pub/scm/linux/kernel/git/mst/qemu.git for_anthony Anthony PERARD

[Qemu-devel] error kvm: virtio: trying to map MMIO memory

2011-07-17 Thread Stéphanie Ouillon
Hello, I am porting virtio device drivers for DragonFly BSD for a GSoC project. [1] I have been facing a problem for 3-4 days with my virtio network device driver in qemu: when I load the driver, I get the following error: kvm: virtio: trying to map MMIO memory And then the machine crashes

Re: [Qemu-devel] [PATCH 3/3] w32: Fix format string regression

2011-07-17 Thread Stefan Weil
Am 17.07.2011 11:03, schrieb Blue Swirl: On Fri, Jul 15, 2011 at 11:42 PM, Andreas Färber andreas.faer...@web.de wrote: Am 15.07.2011 um 21:38 schrieb Stefan Weil: Commit 953ffe0f935f40c0d6061d69e76e0339393b54f8 introduced FMT_pid which is wrong for w32 and w64 getpid(): those getpid()

Re: [Qemu-devel] [PATCH 3/3] w32: Fix format string regression

2011-07-17 Thread Blue Swirl
On Sun, Jul 17, 2011 at 9:34 PM, Stefan Weil w...@mail.berlios.de wrote: Am 17.07.2011 11:03, schrieb Blue Swirl: On Fri, Jul 15, 2011 at 11:42 PM, Andreas Färber andreas.faer...@web.de wrote: Am 15.07.2011 um 21:38 schrieb Stefan Weil: Commit 953ffe0f935f40c0d6061d69e76e0339393b54f8

Re: [Qemu-devel] [Bug 811683] [NEW] 7400, 7410, 7450 cpus vector have wrong exception prefix at reset

2011-07-17 Thread Andreas Färber
Hi, Am 16.07.2011 um 23:49 schrieb till: I have a proprietary ROM implementing system calls that are executed via the 'SC' instruction. I use qemu-0.14.1, qemu-system-ppc -M prep -cpu $CPU -bios my_bios -kernel my_kernel That works fine on a 604 (CPU=0x00040103) - but does not on an

[Qemu-devel] Soluzioni finanziarie

2011-07-17 Thread Luisa
World servizi Per visionare le proposte clicca qui Prestito semplice (delibera senza documentazione reddituale ) Prestito per consolidare debiti. Finanziamenti alle imprese con la garanzia diretta. Agevolazioni e soluzioni per le aziende in crisi Finanziamenti e agevolazioni per le aziende

[Qemu-devel] Mouse cursor position is un-matched when I use Qemu in VNC mode.

2011-07-17 Thread Dan Zhang
Hi, I installed WinXP in QEMU (with KVM enabled), now I used a VNC client (AndroidVNC, which is modified from TightVNC client) to connect QEMU via VNC mode. All works fine except for the mouse position is un-matched. When I move the mouse slowly, the mouse cursor in QEMU moves slower than it

Re: [Qemu-devel] [PATCH 1/3] Fix conversions from pointer to tcg_target_long

2011-07-17 Thread Guan Xuetao
It's good for unicore32 bit. Acked-by: Guan Xuetaog...@mprc.pku.edu.cn Thanks Regards. Guan Xuetao On Fri, 2011-07-15 at 21:38 +0200, Stefan Weil wrote: tcg_gen_exit_tb takes a parameter of type tcg_target_long, so the type casts of pointer to long should be replaced by type casts of

[Qemu-devel] [PATCH] SPARC64: treat UA2007 ASI_BLK_* as translating ASIs.

2011-07-17 Thread Tsuneo Saito
UA2007 ASI_BLK_* should be added in is_translating_asi(). Signed-off-by: Tsuneo Saito tsnsa...@gmail.com --- target-sparc/op_helper.c |3 ++- 1 files changed, 2 insertions(+), 1 deletions(-) diff --git a/target-sparc/op_helper.c b/target-sparc/op_helper.c index 15af27b..8b9eb9f 100644 ---

[Qemu-devel] [Bug 807893] Re: qemu privilege escalation

2011-07-17 Thread Mike Cao
I think I verified this issue on lastest qemu steps: 1./configure make 2.start qemu-kvm process with -runas nobody ./qemu-system-x86_64 -m 2G -smp 4 -cpu qemu64,+x2apic -usbdevice tablet -drive