[Qemu-devel] [PATCH] Check fread() results to avoid gcc 4.6 warnings

2011-07-31 Thread David Gibson
When compiling with gcc 4.6, some code in fw_cfg.c complains that fop_ret is assigned but not used (which is true). However, it looks like the meaningless assignments to fop_ret were done to suppress other gcc warnings due to the fact that fread() is labelled as warn_unused_result in glibc. This

[Qemu-devel] [PATCH] Correctly assign PCI domain numbers

2011-07-31 Thread David Gibson
qemu already almost supports PCI domains; that is, several entirely independent PCI host bridges on the same machine. However, a bug in pci_bus_new_inplace() means that every host bridge gets assigned domain number zero and so can't be properly distinguished. This patch fixes the bug, giving each

Re: [Qemu-devel] [PATCH v3 0/2] The intro for QEMU disk I/O limits

2011-07-31 Thread Zhi Yong Wu
On Mon, Aug 1, 2011 at 3:09 AM, Ryan Harper wrote: > * Zhi Yong Wu [2011-07-28 05:53]: >> The main goal of the patch is to effectively cap the disk I/O speed or >> counts of one single VM.It is only one draft, so it unavoidably has some >> drawbacks, if you catch them, please let me know. >> >>

[Qemu-devel] [PATCH v4 3/3] The support for queue timer and throttling algorithm

2011-07-31 Thread Zhi Yong Wu
Note: 1.) When bps/iops limits are specified to a small value such as 511 bytes/s, this VM will hang up. We are considering how to handle this senario. 2.) When "dd" command is issued in guest, if its option bs is set to a large value such as "bs=1024K", the result speed will slightly

[Qemu-devel] [PATCH v4 2/3] The support for block queue

2011-07-31 Thread Zhi Yong Wu
Signed-off-by: Zhi Yong Wu --- block/blk-queue.c | 122 + block/blk-queue.h | 71 +++ 2 files changed, 193 insertions(+), 0 deletions(-) create mode 100644 block/blk-queue.c create mode 100644 block/blk-queue.h

[Qemu-devel] [PATCH v4 1/3] The cmd support for QEMU block I/O throttling

2011-07-31 Thread Zhi Yong Wu
Signed-off-by: Zhi Yong Wu --- Makefile.objs |2 +- blockdev.c | 22 ++ qemu-config.c | 24 qemu-option.c | 17 + qemu-option.h |1 + qemu-options.hx |1 + 6 files changed, 66 insertions(+), 1 deletions(-)

[Qemu-devel] [PATCH v4 0/3] The intro for QEMU disk I/O limits

2011-07-31 Thread Zhi Yong Wu
The main goal of the patch is to effectively cap the disk I/O speed or counts of one single VM.It is only one draft, so it unavoidably has some drawbacks, if you catch them, please let me know. The patch will mainly introduce one block I/O throttling algorithm, one timer and one block queue for

Re: [Qemu-devel] [PATCH 09/39] Integrate I/O memory regions into qemu

2011-07-31 Thread Avi Kivity
On 08/01/2011 03:19 AM, Richard Henderson wrote: On 07/31/2011 10:57 AM, Avi Kivity wrote: > +system_io = qemu_malloc(sizeof(*system_io)); > +memory_region_init(system_memory, "io", 65536); > +set_system_io_map(system_io); Cut-paste error on that second line. Well spotted; the

[Qemu-devel] OpenBSD/macppc and sparc64 failing to boot with similar error.

2011-07-31 Thread Brad
I know sparc64 had little chance of actually working but I thought I'd take it for a spin with 0.15.0-rc1 and see how it fared in addition to macppc which has a good chance of working nowdays with modern QEMU. Lets see what QEMU and related bugs are left.. I noticed the bootblocks for each respect

Re: [Qemu-devel] [PATCH] Fix gcc-4.6 compiler error

2011-07-31 Thread Anthony Liguori
On 07/29/2011 07:18 PM, Peter Maydell wrote: On 29 July 2011 20:30, Stefan Weil wrote: Commit 3d3b8303c6f83b9b245bc774af530a6403cc4ce6 breaks builds with gcc-4.6: hw/fw_cfg.c: In function ‘probe_splashfile’: hw/fw_cfg.c:66:9: error: variable ‘fop_ret’ set but not used [-Werror=unused-but-set-

Re: [Qemu-devel] [PATCH 00/15] sdl: Usability improvements

2011-07-31 Thread Anthony Liguori
On 07/30/2011 04:39 AM, Jan Kiszka wrote: As SDL is my preferred way of working ad-hoc with guests, I had a closer look at oddities and shortcomings that this GUI exposed, at least here on Linux hosts. The result is a series of patches I've now finally polished and completed. Highlights: - fix

Re: [Qemu-devel] [PATCH 09/39] Integrate I/O memory regions into qemu

2011-07-31 Thread Richard Henderson
On 07/31/2011 10:57 AM, Avi Kivity wrote: > +system_io = qemu_malloc(sizeof(*system_io)); > +memory_region_init(system_memory, "io", 65536); > +set_system_io_map(system_io); Cut-paste error on that second line. r~

Re: [Qemu-devel] [RFC PATCH 0/4] Fix subsection ambiguity in the migration format

2011-07-31 Thread Anthony Liguori
On 07/31/2011 06:10 PM, Christoph Hellwig wrote: On Sun, Jul 31, 2011 at 11:43:08PM +0300, Dor Laor wrote: /me caught off guard. I wonder why it wasn't converted to VMSTATE before? virtio is one of the key devices, it's not just random forgotten one that might not care about migration. It just

[Qemu-devel] [0.15][PATCH] alpha-softmmu: Disable for the 0.15 release branch.

2011-07-31 Thread Richard Henderson
The system emulation code was not merged before the branch. Let's leave that work for the next release. Signed-off-by: Richard Henderson --- configure |1 - 1 files changed, 0 insertions(+), 1 deletions(-) diff --git a/configure b/configure index 38e3724..91b8652 100755 --- a/configure +++

Re: [Qemu-devel] [RFC PATCH 0/4] Fix subsection ambiguity in the migration format

2011-07-31 Thread Christoph Hellwig
On Sun, Jul 31, 2011 at 11:43:08PM +0300, Dor Laor wrote: > /me caught off guard. I wonder why it wasn't converted to VMSTATE before? > virtio is one of the key devices, it's not just random forgotten one that > might not care about migration. It just shows the extent of incomplete transitions

Re: [Qemu-devel] [RFC PATCH 0/4] Fix subsection ambiguity in the migration format

2011-07-31 Thread Anthony Liguori
On 07/31/2011 04:25 PM, Dor Laor wrote: On 08/01/2011 12:03 AM, Anthony Liguori wrote: On 07/31/2011 03:57 PM, Dor Laor wrote: On 07/31/2011 11:43 PM, Anthony Liguori wrote: ps: how hard is to finish the vmstate conversion? Can't we just assume not converted code is not functional and just rem

[Qemu-devel] [PATCH] introduce environment variables for all qemu-user options

2011-07-31 Thread Johannes Schauer
Rework option parsing code for linux-user in a table-driven manner to allow environment variables for all commandline options. Also generate usage() output from option table. Signed-off-by: Johannes Schauer --- linux-user/main.c | 518 ++--- 1

Re: [Qemu-devel] [Bug 818647] [NEW] Getting segmentation fault when trying to boot FreeBSD

2011-07-31 Thread Blue Swirl
On Sat, Jul 30, 2011 at 9:13 PM, Wojciech Koszek <818...@bugs.launchpad.net> wrote: > Public bug reported: > > wkoszek@wkoszek:~/bin/qemu/qemu$ git log | head -1 > commit c886edfb851c0c590d4e77f058f2ec8ed95ad1b5 > > wkoszek@wkoszek:~/o/freebsd/sys/boot/i386$ qemu-system-sparc64 --version > QEMU emu

Re: [Qemu-devel] [RFC PATCH 0/4] Fix subsection ambiguity in the migration format

2011-07-31 Thread Dor Laor
On 08/01/2011 12:03 AM, Anthony Liguori wrote: On 07/31/2011 03:57 PM, Dor Laor wrote: On 07/31/2011 11:43 PM, Anthony Liguori wrote: ps: how hard is to finish the vmstate conversion? Can't we just assume not converted code is not functional and just remove all of it? No. VMState is a solutio

Re: [Qemu-devel] [Bug 818645] [NEW] Unhandled OF service in FreeBSD loader - "unimplemented service milliseconds"

2011-07-31 Thread Blue Swirl
On Sat, Jul 30, 2011 at 9:03 PM, Wojciech Koszek <818...@bugs.launchpad.net> wrote: > Public bug reported: > > wkoszek@wkoszek:~/bin/qemu/qemu$ git log | head -1 > commit c886edfb851c0c590d4e77f058f2ec8ed95ad1b5 > > built with default settings. > > Run like that: > /home/wkoszek/bin/qemu-dynamic/bi

Re: [Qemu-devel] [PATCH 00/39] Memory API, batch 2: PCI devices

2011-07-31 Thread Anthony Liguori
On 07/31/2011 01:02 PM, Avi Kivity wrote: 79 files changed, 1654 insertions(+), 2082 deletions(-) Unexpected side effect... But always welcome :-) Regards, Anthony Liguori

Re: [Qemu-devel] [RFC PATCH 0/4] Fix subsection ambiguity in the migration format

2011-07-31 Thread Anthony Liguori
On 07/31/2011 03:57 PM, Dor Laor wrote: On 07/31/2011 11:43 PM, Anthony Liguori wrote: ps: how hard is to finish the vmstate conversion? Can't we just assume not converted code is not functional and just remove all of it? No. VMState is a solution looking for a problem. Many important device

Re: [Qemu-devel] [ANNOUNCE] QEMU 0.15.0-rc1 Release

2011-07-31 Thread Anthony Liguori
On 07/31/2011 11:31 AM, Avi Kivity wrote: On 07/30/2011 03:39 AM, Anthony Liguori wrote: Hi, On behalf of the entire QEMU team, I'm please to announce the release of QEMU 0.15.0-rc1. This is the second release candidate for the 0.15.0 release. make -jlarge fails with: cc1: warning: qapi-gen

Re: [Qemu-devel] [RFC PATCH 0/4] Fix subsection ambiguity in the migration format

2011-07-31 Thread Dor Laor
On 07/31/2011 11:43 PM, Anthony Liguori wrote: On 07/31/2011 05:48 AM, Dor Laor wrote: On 07/30/2011 01:28 AM, Anthony Liguori wrote: No, not at all. Just that converting everything to VMState isn't a prerequisite for building a more robust migration protocol. The main thing is to priorities

Re: [Qemu-devel] [RFC PATCH 0/4] Fix subsection ambiguity in the migration format

2011-07-31 Thread Anthony Liguori
On 07/31/2011 03:43 PM, Dor Laor wrote: On 07/31/2011 09:46 PM, Christoph Hellwig wrote: On Sun, Jul 31, 2011 at 02:45:07PM +0300, Dor Laor wrote: No, definitely not. I think most people using non-x86 architectures don't use the vmsave/vmload/migration features at all, but would be annoyed if t

Re: [Qemu-devel] [RFC PATCH 0/4] Fix subsection ambiguity in the migration format

2011-07-31 Thread Anthony Liguori
On 07/31/2011 05:48 AM, Dor Laor wrote: On 07/30/2011 01:28 AM, Anthony Liguori wrote: No, not at all. Just that converting everything to VMState isn't a prerequisite for building a more robust migration protocol. The main thing is to priorities the problems we're facing with. - Live migration

Re: [Qemu-devel] [RFC PATCH 0/4] Fix subsection ambiguity in the migration format

2011-07-31 Thread Dor Laor
On 07/31/2011 09:46 PM, Christoph Hellwig wrote: On Sun, Jul 31, 2011 at 02:45:07PM +0300, Dor Laor wrote: No, definitely not. I think most people using non-x86 architectures don't use the vmsave/vmload/migration features at all, but would be annoyed if the perfectly functional device models the

Re: [Qemu-devel] [ANNOUNCE] QEMU 0.15.0-rc1 Release

2011-07-31 Thread Anthony Liguori
On 07/31/2011 03:06 AM, Avi Kivity wrote: On 07/30/2011 03:39 AM, Anthony Liguori wrote: Hi, On behalf of the entire QEMU team, I'm please to announce the release of QEMU 0.15.0-rc1. This is the second release candidate for the 0.15.0 release. Unfortunately, it identifies itself as 1.0 devel

[Qemu-devel] [PATCH 13/39] rtl8139: convert to memory API

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

[Qemu-devel] [PATCH 26/39] pcnet: convert to memory API

2011-07-31 Thread Avi Kivity
Also related chips. Signed-off-by: Avi Kivity --- 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 b/hw/lance.c inde

[Qemu-devel] [PATCH 17/39] es1370: convert to memory API

2011-07-31 Thread Avi Kivity
Signed-off-by: Avi Kivity --- hw/es1370.c | 43 +-- 1 files changed, 25 insertions(+), 18 deletions(-) diff --git a/hw/es1370.c b/hw/es1370.c index 1ed62b7..6a01797 100644 --- a/hw/es1370.c +++ b/hw/es1370.c @@ -268,6 +268,7 @@ struct chan { typedef str

[Qemu-devel] [PATCH 10/39] exec.c: fix initialization of system I/O memory region

2011-07-31 Thread Avi Kivity
Signed-off-by: Avi Kivity --- exec.c |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/exec.c b/exec.c index 2fd4adb..11f6641 100644 --- a/exec.c +++ b/exec.c @@ -3823,7 +3823,7 @@ static void memory_map_init(void) set_system_memory_map(system_memory); system_i

[Qemu-devel] [PATCH 35/39] pci: convert pci rom to memory API

2011-07-31 Thread Avi Kivity
Signed-off-by: Avi Kivity --- 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 6aca1af..481eb7e 100644 --- a/hw/pci.c +++ b/hw/pci.c @@ -1857,11 +1857,6 @@ static uint8_t pci_find_capability_list(P

[Qemu-devel] [PATCH 22/39] intel-hda: convert to memory API

2011-07-31 Thread Avi Kivity
Signed-off-by: Avi Kivity --- 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..1e4c71e 100644 --- a/hw/intel-hda.c +++ b/hw/intel-hda.c @@ -177,7 +177,7 @@ struct IntelHDAStat

[Qemu-devel] [PATCH 31/39] uhci: convert to memory API

2011-07-31 Thread Avi Kivity
Signed-off-by: Avi Kivity --- hw/usb-uhci.c | 42 -- 1 files changed, 28 insertions(+), 14 deletions(-) diff --git a/hw/usb-uhci.c b/hw/usb-uhci.c index da74c57..96a17bd 100644 --- a/hw/usb-uhci.c +++ b/hw/usb-uhci.c @@ -132,6 +132,7 @@ typedef struct UH

[Qemu-devel] [PATCH 21/39] ahci: convert to memory API

2011-07-31 Thread Avi Kivity
Signed-off-by: Avi Kivity --- 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 +++ b/hw/ide/ahci

[Qemu-devel] [PATCH 28/39] isa-mmio: concert to memory API

2011-07-31 Thread Avi Kivity
Signed-off-by: Avi Kivity --- 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 */ #include "

[Qemu-devel] [PATCH 18/39] ide: convert to memory API

2011-07-31 Thread Avi Kivity
Signed-off-by: Avi Kivity --- 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 insertions(+), 120 d

[Qemu-devel] [PATCH 05/39] cirrus: simplify bitblt BAR access functions

2011-07-31 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 --- hw/cirrus_vga.c | 81 +-- 1 files changed, 13 insertions(+), 68 deletions(-) diff --git a/hw/cirrus_vga.c b/

[Qemu-devel] [PATCH] memory: synchronize dirty bitmap before unmapping a range

2011-07-31 Thread Avi Kivity
When a range is being unmapped, ask accelerators (e.g. kvm) to synchronize the dirty bitmap to avoid losing information forever. Fixes grub2 screen update. Signed-off-by: Avi Kivity --- Please apply before the PCI batch to avoid bisectability issues (and don't pull, since that removes ordering)

[Qemu-devel] [PATCH 19/39] ivshmem: convert to memory API

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

[Qemu-devel] [PATCH 30/39] ehci: convert to memory API

2011-07-31 Thread Avi Kivity
Signed-off-by: Avi Kivity --- 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 8b0dcc3..025ed1f 100644 --- a/hw/usb-ehci.c +++ b/hw/usb-ehci.c @@ -368,8 +368,7 @@ struct EHCIState {

[Qemu-devel] [PATCH 00/39] Memory API, batch 2: PCI devices

2011-07-31 Thread Avi Kivity
This is a mostly mindless conversion of all QEMU PCI devices to the memory API. After this patchset is applied, it is no longer possible to create a PCI device using the old API. An immediate benefit is that PCI BARs that overlap each other are now handled correctly: currently, the sequence map

[Qemu-devel] [PATCH 08/39] cirrus: simplify linear framebuffer access functions

2011-07-31 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 --- hw/cirrus_vga.c | 74 ++- 1 files changed, 8 insertions(+), 66 deletions(-) diff --git a/hw/cirrus_vga.c b/h

[Qemu-devel] [PATCH 33/39] msix: convert to memory API

2011-07-31 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 --- hw/ivshmem.c| 11 + hw/msix.c | 64 +++ hw/msix.h |6 +--- hw/pci

[Qemu-devel] [PATCH 37/39] pci: fold BAR mapping function into its caller

2011-07-31 Thread Avi Kivity
There is only one function, so no need for a function pointer. Signed-off-by: Avi Kivity --- 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 e9e4874..e6a759a 100644 --- a/hw/pci.c +++ b/hw/pci

[Qemu-devel] [PATCH 24/39] ppc: convert to memory API

2011-07-31 Thread Avi Kivity
Signed-off-by: Avi Kivity --- 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| 32 +

[Qemu-devel] [PATCH 23/39] lsi53c895a: convert to memory API

2011-07-31 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 --- hw/lsi53c895a.c | 258 --- 1 files changed, 56 insertions(+), 202 deletions(-)

[Qemu-devel] [PATCH 25/39] ne2000: convert to memory API

2011-07-31 Thread Avi Kivity
Signed-off-by: Avi Kivity --- 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 e41dbba..ce7b365 1

[Qemu-devel] [PATCH 36/39] pci: remove pci_register_bar()

2011-07-31 Thread Avi Kivity
Superceded by pci_register_bar_region(). The implementations are folded together. Signed-off-by: Avi Kivity --- 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 index 481eb7e..e9

[Qemu-devel] [PATCH 12/39] pci: allow I/O BARs to be registered with pci_register_bar_region()

2011-07-31 Thread Avi Kivity
Signed-off-by: Avi Kivity --- 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 --- a/hw/pci.c +++ b/

[Qemu-devel] [PATCH 39/39] pci: remove support for pre memory API BARs

2011-07-31 Thread Avi Kivity
Not used anymore. Signed-off-by: Avi Kivity --- hw/pci.c | 33 ++--- 1 files changed, 2 insertions(+), 31 deletions(-) diff --git a/hw/pci.c b/hw/pci.c index 6ed08ae..e6a3e56 100644 --- a/hw/pci.c +++ b/hw/pci.c @@ -848,18 +848,7 @@ static void pci_unregister_io_re

[Qemu-devel] [PATCH 15/39] e1000: convert to memory API

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

[Qemu-devel] [PATCH 32/39] xen-platform: convert to memory API

2011-07-31 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 --- hw/xen_platform.c | 84 - 1 files changed, 51 insertions(+), 33 deletions(-) diff --git a/hw/xen_p

[Qemu-devel] [PATCH 09/39] Integrate I/O memory regions into qemu

2011-07-31 Thread Avi Kivity
get_system_io() returns the root I/O memory region. Signed-off-by: Avi Kivity --- 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 c439aba..999fd69 100644 --- a/exec-memory.h +++ b/exec-m

[Qemu-devel] [PATCH 14/39] ac97: convert to memory API

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

[Qemu-devel] [PATCH 06/39] cirrus: simplify vga window mmio access functions

2011-07-31 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 --- hw/cirrus_vga.c | 79 +++--- 1 files changed, 11 insertions(+), 68 deletions(-) diff --git a/hw/cirrus_vga.c b/h

Re: [Qemu-devel] [PATCH v3 0/2] The intro for QEMU disk I/O limits

2011-07-31 Thread Ryan Harper
* Zhi Yong Wu [2011-07-28 05:53]: > The main goal of the patch is to effectively cap the disk I/O speed or counts > of one single VM.It is only one draft, so it unavoidably has some drawbacks, > if you catch them, please let me know. > > The patch will mainly introduce one block I/O throttling

Re: [Qemu-devel] [PATCH 03/39] vga: convert vga and its derivatives to the memory API

2011-07-31 Thread Avi Kivity
On 07/31/2011 09:48 PM, Jan Kiszka wrote: > > I haven't. How does "unconditionally dirty the remapped slot" sound? > > I think it isn't introduced by this patchset, yes? The patch removes the explicit sync from the cirrus code. But the underlying issue is older of course. Ah. So I'll dete

[Qemu-devel] [PATCH 34/39] pci: remove pci_register_bar_simple()

2011-07-31 Thread Avi Kivity
Superceded by pci_register_bar_region(). --- hw/pci.c | 17 - hw/pci.h |3 --- 2 files changed, 0 insertions(+), 20 deletions(-) diff --git a/hw/pci.c b/hw/pci.c index 980840f..6aca1af 100644 --- a/hw/pci.c +++ b/hw/pci.c @@ -903,7 +903,6 @@ void pci_register_bar(PCIDevice *

[Qemu-devel] [PATCH 38/39] pci: rename pci_register_bar_region() to pci_register_bar()

2011-07-31 Thread Avi Kivity
Signed-off-by: Avi Kivity --- 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 |3 +-- hw/ide/vi

[Qemu-devel] [PATCH 03/39] vga: convert vga and its derivatives to the memory API

2011-07-31 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. We no longer need to sync the dirty bitmap of the cirrus mapped memory banks, since the memory API takes care of that for us. [jan: fi

Re: [Qemu-devel] [PATCH 03/39] vga: convert vga and its derivatives to the memory API

2011-07-31 Thread Jan Kiszka
On 2011-07-31 20:46, Avi Kivity wrote: > On 07/31/2011 09:42 PM, Jan Kiszka wrote: >> On 2011-07-31 19:57, Avi Kivity wrote: >> > 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 memor

Re: [Qemu-devel] [RFC PATCH 0/4] Fix subsection ambiguity in the migration format

2011-07-31 Thread Christoph Hellwig
On Sun, Jul 31, 2011 at 02:45:07PM +0300, Dor Laor wrote: >> No, definitely not. I think most people using non-x86 architectures >> don't use the vmsave/vmload/migration features at all, but would >> be annoyed if the perfectly functional device models they were >> using got deleted... > > I didn't

Re: [Qemu-devel] [PATCH 03/39] vga: convert vga and its derivatives to the memory API

2011-07-31 Thread Avi Kivity
On 07/31/2011 09:42 PM, Jan Kiszka wrote: On 2011-07-31 19:57, Avi Kivity wrote: > 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. > > We no longer need to sync the dirty bit

Re: [Qemu-devel] [Bug 818673] [NEW] virtio: trying to map MMIO memory

2011-07-31 Thread Vadim Rozenfeld
On Sun, 2011-07-31 at 18:54 +0100, Stefan Hajnoczi wrote: > On Sun, Jul 31, 2011 at 12:01 AM, Rick Vernam <818...@bugs.launchpad.net> > wrote: > > Public bug reported: > > > > Qemu host is Core i7, running Linux. Guest is Windows XP sp3. > > Often, qemu will crash shortly after starting (1-5 minu

Re: [Qemu-devel] [PATCH 03/39] vga: convert vga and its derivatives to the memory API

2011-07-31 Thread Jan Kiszka
On 2011-07-31 19:57, Avi Kivity wrote: > 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. > > We no longer need to sync the dirty bitmap of the cirrus mapped memory > banks, since

[Qemu-devel] [PATCH 16/39] eepro100: convert to memory API

2011-07-31 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 --- hw/eepro100.c | 182 - 1 files changed, 37 insertions(+), 145 deletions(-) d

[Qemu-devel] [PATCH 20/39] virtio-pci: convert to memory API

2011-07-31 Thread Avi Kivity
except msix. [jan: fix build] Signed-off-by: Avi Kivity --- hw/virtio-pci.c | 74 ++ hw/virtio-pci.h |2 +- 2 files changed, 31 insertions(+), 45 deletions(-) diff --git a/hw/virtio-pci.c b/hw/virtio-pci.c index d685243..c114e1a 100644

[Qemu-devel] [PATCH 27/39] i6300esb: convert to memory API

2011-07-31 Thread Avi Kivity
Also add missing destructor. Signed-off-by: Avi Kivity --- 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..abc2e17 100644 --- a/hw/wdt_i6300esb.c +++ b/hw/w

[Qemu-devel] [PATCH 04/39] cirrus: simplify mmio BAR access functions

2011-07-31 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 --- hw/cirrus_vga.c | 78 +- 1 files changed, 8 insertions(+), 70 deletions(-) diff --git a/hw/cirrus_vga.c b/hw

[Qemu-devel] [PATCH 07/39] vga: simplify vga window mmio access functions

2011-07-31 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 --- hw/cirrus_vga.c |4 +- hw/vga.c| 56 +++---

Re: [Qemu-devel] [PATCH 00/39] Memory API, batch 2: PCI devices

2011-07-31 Thread Avi Kivity
> 79 files changed, 1654 insertions(+), 2082 deletions(-) Unexpected side effect...

[Qemu-devel] [PATCH 11/39] pci: pass I/O address space to new PCI bus

2011-07-31 Thread Avi Kivity
This lets us register BARs in the I/O address space. Signed-off-by: Avi Kivity --- 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 +- hw/pci.c |

[Qemu-devel] [PATCH 29/39] sun4u: convert to memory API

2011-07-31 Thread Avi Kivity
fixes memory leak on repeated BAR map/unmap Signed-off-by: Avi Kivity --- 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 --- a/hw/sun4u.c +++ b/hw/su

[Qemu-devel] [PATCH 02/39] vmsvga: don't remember pci BAR address in callback any more

2011-07-31 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 --- 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 354c221..190b005 100644

[Qemu-devel] [PATCH 01/39] pci: add API to get a BAR's mapped address

2011-07-31 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 --- hw/pci.c |5 + hw/pci.h |1 + 2 files changed, 6 insertions(+), 0 deletions(-) diff --git a/hw/pci.c b/hw/pc

Re: [Qemu-devel] [Bug 818673] [NEW] virtio: trying to map MMIO memory

2011-07-31 Thread Stefan Hajnoczi
On Sun, Jul 31, 2011 at 12:01 AM, Rick Vernam <818...@bugs.launchpad.net> wrote: > Public bug reported: > > Qemu host is Core i7, running Linux.  Guest is Windows XP sp3. > Often, qemu will crash shortly after starting (1-5 minutes) with a statement > "qemu-system-x86_64: virtio: trying to map MMI

Re: [Qemu-devel] Is there any qemu imag

2011-07-31 Thread Stefan Hajnoczi
On Sat, Jul 30, 2011 at 4:29 PM, bala suru wrote: > Hi, > Is there any  qemu image (small OS which support , gcc, ssh, and networking > ) , like linux-0.2.img.bz2 . > > I want this for KVM hyeprvisor .. TinyCoreLinux is small distro that pulls in packages like web browsers and development tools o

Re: [Qemu-devel] [ANNOUNCE] QEMU 0.15.0-rc1 Release

2011-07-31 Thread Avi Kivity
On 07/30/2011 03:39 AM, Anthony Liguori wrote: Hi, On behalf of the entire QEMU team, I'm please to announce the release of QEMU 0.15.0-rc1. This is the second release candidate for the 0.15.0 release. make -jlarge fails with: cc1: warning: qapi-generated: No such file or directory [enabl

Re: [Qemu-devel] [PATCH] introduce environment variables for all qemu-user options

2011-07-31 Thread Peter Maydell
On 31 July 2011 12:51, wrote: > +    if ((r = getenv("QEMU_STACK_SIZE")) != NULL) { > +        guest_stack_size = strtoul(r, (char **)&r, 0); > +        if (guest_stack_size == 0) > +            usage(); > +        if (*r == 'M') > +            guest_stack_size *= 1024 * 1024; > +        else if

[Qemu-devel] [PATCH] introduce environment variables for all qemu-user options

2011-07-31 Thread j . schauer
From: Johannes Schauer A first try to introduce a generic setup for mapping environment variables to command line options. I'm afraid to code something for platforms I can't do runtime tests on, so this is only for linux-user for now. Signed-off-by: Johannes Schauer --- linux-user/main.c |

Re: [Qemu-devel] [RFC PATCH 0/4] Fix subsection ambiguity in the migration format

2011-07-31 Thread Dor Laor
On 07/31/2011 02:37 PM, Peter Maydell wrote: On 31 July 2011 11:48, Dor Laor wrote: ps: how hard is to finish the vmstate conversion? Can't we just assume not converted code is not functional and just remove all of it? No, definitely not. I think most people using non-x86 architectures don't

Re: [Qemu-devel] [RFC PATCH 0/4] Fix subsection ambiguity in the migration format

2011-07-31 Thread Peter Maydell
On 31 July 2011 11:48, Dor Laor wrote: > ps: how hard is to finish the vmstate conversion? Can't we just assume > not converted code is not functional and just remove all of it? No, definitely not. I think most people using non-x86 architectures don't use the vmsave/vmload/migration features at a

Re: [Qemu-devel] [RFC PATCH 0/4] Fix subsection ambiguity in the migration format

2011-07-31 Thread Dor Laor
On 07/30/2011 01:28 AM, Anthony Liguori wrote: No, not at all. Just that converting everything to VMState isn't a prerequisite for building a more robust migration protocol. The main thing is to priorities the problems we're facing with. - Live migration protocol: - VMState conversion is n

Re: [Qemu-devel] [ANNOUNCE] QEMU 0.15.0-rc1 Release

2011-07-31 Thread Avi Kivity
On 07/30/2011 03:39 AM, Anthony Liguori wrote: Hi, On behalf of the entire QEMU team, I'm please to announce the release of QEMU 0.15.0-rc1. This is the second release candidate for the 0.15.0 release. Unfortunately, it identifies itself as 1.0 development: $ git show v0.15.0-rc1:VERSI