[Qemu-devel] [PATCH] rbd: add discard support

2012-05-01 Thread Josh Durgin
Change the write flag to an operation type in RBDAIOCB, and make the buffer optional since discard doesn't use it. Discard is first included in librbd 0.1.2 (which is in Ceph 0.46). If librbd is too old, leave out qemu_rbd_aio_discard entirely, so the old behavior is preserved. Signed-off-by:

Re: [Qemu-devel] Memory API: handling unassigned physical memory

2012-05-01 Thread Blue Swirl
On Mon, Apr 30, 2012 at 13:52, Mark Cave-Ayland mark.cave-ayl...@ilande.co.uk wrote: On 30/04/12 14:27, Peter Maydell wrote: Hi Peter, IMO the best fix is to unsysbus the device and qomify it instead.  This way we're 100% flexible in how we can attach it. You don't need to wait for QOM

Re: [Qemu-devel] Memory API: handling unassigned physical memory

2012-05-01 Thread Blue Swirl
On Mon, Apr 30, 2012 at 14:33, Mark Cave-Ayland mark.cave-ayl...@ilande.co.uk wrote: On 30/04/12 15:03, Peter Maydell wrote: Therefore I can't change it to my (modified) sbus_mmio_map() function because it would break other non-SPARC platforms, and AIUI there is nothing in the memory API

[Qemu-devel] [PATCH v7 0/5] add i.MX31 support

2012-05-01 Thread Peter Chubb
This patch series adds rudimentary support for the Freescale i.MX31 SoC, and the Kyoto Micro KZM-ARM11-01, an evaluation board built around the Freescale i.MX31. Changes since last patch round: (v6) * shortened patch titles * canonised spelling of `Freescale' * Fixed 10 to 32-bit sign

[Qemu-devel] [PATCH v7 5/5] i.MX31: KZM-ARM11-01 evaluation board

2012-05-01 Thread Peter Chubb
Board support for Kyoto Micro's KZM-ARM11-01, an evaluation board built around the Freescale i.MX31. Signed-off-by: Philip O'Sullivan phil...@ok-labs.com Signed-off-by: Peter Chubb peter.ch...@nicta.com.au --- Makefile.target |2 hw/kzm.c| 155

[Qemu-devel] [PATCH v7 4/5] i.MX31: Interrupt Controller

2012-05-01 Thread Peter Chubb
Implement the Freescale i.MX31 advanced vectored interrupt controller, at least to the extent it is used by Linux 3.x Vectors are not implemented. Signed-off-by: Philip O'Sullivan phil...@ok-labs.com Signed-off-by: Peter Chubb peter.ch...@nicta.com.au Reviewed-by: Peter Maydell

[Qemu-devel] [PATCH v7 2/5] i.MX31: Clock Control Module

2012-05-01 Thread Peter Chubb
For Linux to be able to work out how fast its clocks are going, so that timer ticks come approximately at the right time, it needs to be able to query the clock control module (CCM). This is the start of a CCM implementation. It currently knows only about the MCU, HSP and IPG clocks --- i.e.,

Re: [Qemu-devel] [Bug 992067] Re: Windows 2008R2 very slow cold boot when 4GB memory

2012-05-01 Thread Gleb Natapov
On Mon, Apr 30, 2012 at 06:07:55PM -, Anthony Liguori wrote: This should be resolved by using Hyper-V relaxed timers which is in the latest development version of QEMU. You would need to add -cpu host,+hv_relaxed to the command line to verify this. The described scenario still shouldn't

[Qemu-devel] [PATCH v7 3/5] i.MX31: Timers

2012-05-01 Thread Peter Chubb
Implement the timers on the Freescale i.MX31 SoC. This is not a complete implementation, but gives enough for Linux to boot and run. In particular external triggers, which are not useful under QEMU, are not implemented. Signed-off-by: Philip O'Sullivan phil...@ok-labs.com Signed-off-by: Peter

[Qemu-devel] [PATCH v7 1/5] i.MX: UART support

2012-05-01 Thread Peter Chubb
Implement the Freescale i.MX UART. This uart is used in a variety of SoCs, including some by Motorola, as well as in the Freescale i.MX series. This patch gives only a `bare-bones' implementation, enough to run Linux or OKL4, but that's about it. Signed-off-by: Philip O'Sullivan

Re: [Qemu-devel] [PATCH] increase BlockConf.min_io_size type from uint16_t to uint32_t

2012-05-01 Thread Stefan Hajnoczi
On Mon, Apr 30, 2012 at 4:52 PM, Michael Tokarev m...@tls.msk.ru wrote: This value is used currently for virtio-blk only.  It was defined as uint16_t before, which is the same as in kernel=user interface (in virtio_blk.h, struct virtio_blk_config).  But the problem is that in kernel=user

Re: [Qemu-devel] Poking a sun4v machine

2012-05-01 Thread Andreas Färber
Am 30.04.2012 19:38, schrieb Artyom Tarasenko: On Mon, Apr 30, 2012 at 7:15 PM, Andreas Färber afaer...@suse.de wrote: Am 30.04.2012 18:39, schrieb Artyom Tarasenko: Tried to boot QEMU Niagara machine with the firmware from the OpenSPARC T1 emulator (

Re: [Qemu-devel] [PATCH] rbd: add discard support

2012-05-01 Thread Stefan Hajnoczi
On Tue, May 1, 2012 at 7:16 AM, Josh Durgin josh.dur...@dreamhost.com wrote: Change the write flag to an operation type in RBDAIOCB, and make the buffer optional since discard doesn't use it. Discard is first included in librbd 0.1.2 (which is in Ceph 0.46). If librbd is too old, leave out

Re: [Qemu-devel] [PATCH] increase BlockConf.min_io_size type from uint16_t to uint32_t

2012-05-01 Thread Michael Tokarev
On 01.05.2012 12:27, Stefan Hajnoczi wrote: On Mon, Apr 30, 2012 at 4:52 PM, Michael Tokarev m...@tls.msk.ru wrote: This value is used currently for virtio-blk only. It was defined as uint16_t before, which is the same as in kernel=user interface (in virtio_blk.h, struct virtio_blk_config).

[Qemu-devel] [PATCH 1/8] booke:Use MMU API for creating initial mapping for secondary cpus

2012-05-01 Thread Alexander Graf
From: Bharat Bhushan r65...@freescale.com Initial Mapping creation for secondary CPU in SMP was missing new MMU API. Signed-off-by: Bharat Bhushan bharat.bhus...@freescale.com Signed-off-by: Alexander Graf ag...@suse.de --- hw/ppce500_spin.c |1 + 1 files changed, 1 insertions(+), 0

Re: [Qemu-devel] [PATCH for-1.1 0/2] qemu-ga: Build fixes for Solaris/illumos

2012-05-01 Thread Stefan Hajnoczi
On Mon, Apr 30, 2012 at 5:00 PM, Andreas Färber andreas.faer...@web.de wrote: Hello, Here's a mini-series fixing the build on illumos like I had requested Lee to do. Patch 1 introduces a Solaris-only workaround for O_ASYNC that we could generalize for 1.2 (ifdef O_ASYNC seemed a bit risky

Re: [Qemu-devel] [PATCH 1/2] async: Use bool for boolean struct members and remove a hole

2012-05-01 Thread Stefan Hajnoczi
On Sun, Apr 29, 2012 at 07:08:45PM +0200, Stefan Weil wrote: Using bool reduces the size of the structure and improves readability. A hole in the structure was removed. Signed-off-by: Stefan Weil s...@weilnetz.de --- async.c |6 +++--- 1 files changed, 3 insertions(+), 3 deletions(-)

Re: [Qemu-devel] [Qemu-ppc] [PATCH 20/22] ppc: move load and store helpers, switch to AREG0 free mode

2012-05-01 Thread Blue Swirl
On Mon, Apr 30, 2012 at 11:51, Alexander Graf ag...@suse.de wrote: On 30.04.2012, at 12:45, Alexander Graf wrote: On 22.04.2012, at 15:26, Blue Swirl wrote: Add an explicit CPUPPCState parameter instead of relying on AREG0 and rename op_helper.c (which only contains load and store helpers)

Re: [Qemu-devel] Poking a sun4v machine

2012-05-01 Thread Blue Swirl
On Mon, Apr 30, 2012 at 16:39, Artyom Tarasenko atar4q...@gmail.com wrote: Tried to boot QEMU Niagara machine with the firmware from the OpenSPARC T1 emulator ( www.opensparc.net/opensparc-t1/download.html ) , and it dies very early. The reason: in translate.c #define hypervisor(dc)

Re: [Qemu-devel] Poking a sun4v machine

2012-05-01 Thread Blue Swirl
On Mon, Apr 30, 2012 at 17:38, Artyom Tarasenko atar4q...@gmail.com wrote: On Mon, Apr 30, 2012 at 7:15 PM, Andreas Färber afaer...@suse.de wrote: Am 30.04.2012 18:39, schrieb Artyom Tarasenko: Tried to boot QEMU Niagara machine with the firmware from the OpenSPARC T1 emulator (

[Qemu-devel] [PULL 0/3] Trivial patches for 21 April to 1 May 2012

2012-05-01 Thread Stefan Hajnoczi
The following changes since commit 42fe1c245f0239ebcdc084740a1777ac3699d071: main-loop: Fix build for w32 and w64 (2012-04-28 09:25:54 +) are available in the git repository at: git://github.com/stefanha/qemu.git trivial-patches for you to fetch changes up to

[Qemu-devel] [PATCH 3/3] iohandler: Use bool for boolean struct member and remove holes

2012-05-01 Thread Stefan Hajnoczi
From: Stefan Weil s...@weilnetz.de Using bool reduces the size of the structure and improves readability. Two holes in the structure were removed. Signed-off-by: Stefan Weil s...@weilnetz.de Signed-off-by: Stefan Hajnoczi stefa...@linux.vnet.ibm.com --- iohandler.c |4 ++-- 1 file changed,

[Qemu-devel] [PATCH 1/3] configure: Fix creation of symbolic links for MinGW toolchain

2012-05-01 Thread Stefan Hajnoczi
From: Stefan Weil s...@weilnetz.de The MinGW toolchain on w32/w64 hosts does not create symbolic links, but implements 'ln -s' similar to 'cp -r'. In incremental out of tree builds, this resulted in files which were not updated when their counterparts in the QEMU source tree changed. Especially

[Qemu-devel] [PATCH 8/8] target-ppc: Some support for dumping TLB_EMB TLBs

2012-05-01 Thread Alexander Graf
From: François Revol re...@free.fr Add mmubooke_dump_mmu(). TODO: Add printing of individual flags. Signed-off-by: François Revol re...@free.fr [agraf: fix coding style] Signed-off-by: Alexander Graf ag...@suse.de --- target-ppc/helper.c | 50

[Qemu-devel] [PATCH 4/8] pseries: Implement automatic PAPR VIO address allocation

2012-05-01 Thread Alexander Graf
From: David Gibson da...@gibson.dropbear.id.au PAPR virtual IO (VIO) devices require a unique, but otherwise arbitrary, address used as a token to the hypercalls which manipulate them. Currently the pseries machine code does an ok job of allocating these addresses when the legacy -net nic /

[Qemu-devel] [PATCH 2/3] async: Use bool for boolean struct members and remove a hole

2012-05-01 Thread Stefan Hajnoczi
From: Stefan Weil s...@weilnetz.de Using bool reduces the size of the structure and improves readability. A hole in the structure was removed. Signed-off-by: Stefan Weil s...@weilnetz.de Signed-off-by: Stefan Hajnoczi stefa...@linux.vnet.ibm.com --- async.c |6 +++--- 1 file changed, 3

[Qemu-devel] [PATCH 7/8] ppce500_spin: Replace assert by hw_error (fixes compiler warning)

2012-05-01 Thread Alexander Graf
From: Stefan Weil s...@weilnetz.de The default case in function spin_read should never be reached, therefore the old code used assert(0) to abort QEMU. This does not work when QEMU is compiled with macro NDEBUG defined. In this case (and also when the compiler does not know that assert never

[Qemu-devel] [PATCH 5/8] pseries: Use the same interrupt swizzling for host bridges as p2p bridges

2012-05-01 Thread Alexander Graf
From: David Gibson da...@gibson.dropbear.id.au Currently the pseries PCI code uses a somewhat strange scheme of PCI irq allocation - one per slot up to a maximum that's greater than the usual 4. This scheme more or less worked, because we were able to tell the guest the irq mapping in the device

[Qemu-devel] [PATCH 6/8] pseries: Fix use of global CPU state

2012-05-01 Thread Alexander Graf
From: Peter Portante peter.porta...@redhat.com Commit ed120055c7f9b26b5707d3ceabbe5a3f06aaf937 (Implement PAPR VPA functions for pSeries shared processor partitions) introduced the deregister_dtl() function and typo emv as name of its argument. This went unnoticed because the code in that

[Qemu-devel] [PULL 0/8] ppc patch queue 2012-05-01

2012-05-01 Thread Alexander Graf
Hi Anthony, This is my current patch queue for ppc. Please pull. Alex The following changes since commit 42fe1c245f0239ebcdc084740a1777ac3699d071: Stefan Weil (1): main-loop: Fix build for w32 and w64 are available in the git repository at: git://repo.or.cz/qemu/agraf.git

[Qemu-devel] [PATCH 2/8] PPC: Fix up e500 cache size setting

2012-05-01 Thread Alexander Graf
When initializing the e500 code, we need to expose its cache line size for user and system mode, while the mmu details are only interesting for system emulation. Split the 2 switch statements apart, allowing us to #ifdef out the mmu parts for user mode emulation while keeping all cache

[Qemu-devel] [PATCH 3/8] linux-user: Fix undefined HOST_LONG_SIZE on PPC hosts

2012-05-01 Thread Alexander Graf
On my PPC host, HOST_LONG_SIZE is not defined even after running configure. Use the normal C way of determining the long size instead. Signed-off-by: Alexander Graf ag...@suse.de --- thunk.h |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/thunk.h b/thunk.h index

Re: [Qemu-devel] [PATCH 1/4] exec: prepare for splitting

2012-05-01 Thread Andreas Färber
Am 22.04.2012 17:35, schrieb Blue Swirl: Make s_cputlb_empty_entry 'const'. Rename tlb_flush_jmp_cache() to tb_flush_jmp_cache(). Refactor code to add cpu_tlb_reset_dirty_all(), memory_region_section_get_iotlb() and memory_region_is_unassigned(). Remove unused cpu_tlb_update_dirty().

Re: [Qemu-devel] [PATCH v2] sdl: Add QEMU mascot icon for use with SDL

2012-05-01 Thread Andreas Färber
Am 23.04.2012 22:11, schrieb Stefan Weil: Am 13.04.2012 22:24, schrieb Stefan Weil: This is a bitmap file (32x32x4) derived from the official QEMU mascot (which was designed by Benoît Canet). I stripped the text from the SVG to get a nearly square image and converted the result to BMP without

Re: [Qemu-devel] [PULL] QOM CPUState for sh4, m68k and mips

2012-05-01 Thread Blue Swirl
On Wed, Apr 25, 2012 at 14:23, Andreas Färber afaer...@suse.de wrote: Hello Anthony, Blue, Please pull the remainder of the QOM CPU conversions: sh4, m68k and mips. There was no reaction from the listed maintainers to my patches for weeks nor to the MAINTAINERS RFC for one week, so please

Re: [Qemu-devel] [PULL v2] PReP patch queue 2012-04-30

2012-05-01 Thread Blue Swirl
On Mon, Apr 30, 2012 at 15:24, Andreas Färber andreas.faer...@web.de wrote: Hello Blue, Please pull the PowerPC Reference Platform (PReP) queue into qemu.git master. Thanks, pulled. The following changes since commit 42fe1c245f0239ebcdc084740a1777ac3699d071:  main-loop: Fix build for w32

Re: [Qemu-devel] [PULL] Cocoa patch queue 2012-05-01

2012-05-01 Thread Blue Swirl
On Mon, Apr 30, 2012 at 22:15, Andreas Färber andreas.faer...@web.de wrote: Hello Blue, Please pull the Cocoa queue into qemu.git master. Thanks, pulled. The following changes since commit 42fe1c245f0239ebcdc084740a1777ac3699d071:  Stefan Weil (1):        main-loop: Fix build for w32 and

Re: [Qemu-devel] [PULL] MAINTAINERS tidying and stable trees

2012-05-01 Thread Blue Swirl
On Wed, Apr 25, 2012 at 15:17, Andreas Färber afaer...@suse.de wrote: Hello Anthony, Please pull the uncontroversial parts of MAINTAINERS updates. I'm leaving out the Maintained upgrades and would ask you to apply the 0.15 patch once we've figured that out. For darwin-user I'll send a

Re: [Qemu-devel] [PATCH 1/4] exec: prepare for splitting

2012-05-01 Thread Blue Swirl
On Tue, May 1, 2012 at 11:02, Andreas Färber afaer...@suse.de wrote: Am 22.04.2012 17:35, schrieb Blue Swirl: Make s_cputlb_empty_entry 'const'. Rename tlb_flush_jmp_cache() to tb_flush_jmp_cache(). Refactor code to add cpu_tlb_reset_dirty_all(), memory_region_section_get_iotlb() and

Re: [Qemu-devel] [PATCH] vga: Don't switch to 1 x 1 character text screen

2012-05-01 Thread Blue Swirl
Thanks, applied. On Sat, Apr 28, 2012 at 19:16, Stefan Weil s...@weilnetz.de wrote: Initially, vga_get_text_resolution returns a text resolution of 1 x 1 (vga register values are 0). This is visible during MIPS Malta boot with SDL. It also occurs with the i386 or x86_64 system emulation when

Re: [Qemu-devel] [PATCH] main-loop: Calculate poll timeout using timeout argument

2012-05-01 Thread Blue Swirl
Thanks, applied. On Sun, Apr 29, 2012 at 17:15, Stefan Weil s...@weilnetz.de wrote: The timeout argument was unused up to now, but it can be used to reduce the poll_timeout when it is infinite (negative value) or larger than timeout. Signed-off-by: Stefan Weil s...@weilnetz.de ---  

Re: [Qemu-devel] [PATCH for-1.1 0/2] qemu-ga: Build fixes for Solaris/illumos

2012-05-01 Thread Blue Swirl
Thanks, applied all. On Mon, Apr 30, 2012 at 16:00, Andreas Färber andreas.faer...@web.de wrote: Hello, Here's a mini-series fixing the build on illumos like I had requested Lee to do. Patch 1 introduces a Solaris-only workaround for O_ASYNC that we could generalize for 1.2 (ifdef O_ASYNC

Re: [Qemu-devel] [PATCH 1/4] exec: prepare for splitting

2012-05-01 Thread Andreas Färber
Am 01.05.2012 13:47, schrieb Blue Swirl: On Tue, May 1, 2012 at 11:02, Andreas Färber afaer...@suse.de wrote: Am 22.04.2012 17:35, schrieb Blue Swirl: Make s_cputlb_empty_entry 'const'. Rename tlb_flush_jmp_cache() to tb_flush_jmp_cache(). Refactor code to add cpu_tlb_reset_dirty_all(),

Re: [Qemu-devel] [PATCH] qemu: fix cpuid eax for kvm cpu

2012-05-01 Thread Avi Kivity
On 04/30/2012 05:42 PM, Michael S. Tsirkin wrote: cpuid eax should return the max leaf so that guests can find out the valid range. This matches Xen et al. Tested using -cpu kvm64. Signed-off-by: Michael S. Tsirkin m...@redhat.com --- target-i386/kvm.c |2 +- 1 files changed, 1

Re: [Qemu-devel] Memory API: handling unassigned physical memory

2012-05-01 Thread Avi Kivity
On 04/30/2012 04:40 PM, Peter Maydell wrote: On 30 April 2012 14:36, Avi Kivity a...@redhat.com wrote: On 04/30/2012 04:27 PM, Peter Maydell wrote: On 30 April 2012 14:23, Avi Kivity a...@redhat.com wrote: IMO the best fix is to unsysbus the device and qomify it instead. This way we're

Re: [Qemu-devel] Memory API: handling unassigned physical memory

2012-05-01 Thread Peter Maydell
On 1 May 2012 13:39, Avi Kivity a...@redhat.com wrote: On 04/30/2012 04:40 PM, Peter Maydell wrote: I wrote it for essentially the purpose described above :-) If you're the owner of the sysbus device in question then it's entirely fine as you are the one deciding whether to use the

Re: [Qemu-devel] Memory API: handling unassigned physical memory

2012-05-01 Thread Avi Kivity
On 04/30/2012 04:43 PM, Anthony Liguori wrote: On 04/30/2012 08:36 AM, Avi Kivity wrote: On 04/30/2012 04:27 PM, Peter Maydell wrote: On 30 April 2012 14:23, Avi Kivitya...@redhat.com wrote: IMO the best fix is to unsysbus the device and qomify it instead. This way we're 100% flexible in

Re: [Qemu-devel] Memory API: handling unassigned physical memory

2012-05-01 Thread Avi Kivity
On 05/01/2012 03:41 PM, Peter Maydell wrote: On 1 May 2012 13:39, Avi Kivity a...@redhat.com wrote: On 04/30/2012 04:40 PM, Peter Maydell wrote: I wrote it for essentially the purpose described above :-) If you're the owner of the sysbus device in question then it's entirely fine as you

Re: [Qemu-devel] Memory API: handling unassigned physical memory

2012-05-01 Thread Peter Maydell
On 1 May 2012 13:42, Avi Kivity a...@redhat.com wrote: sysbus should just die. Totally agreed. It's not going to go quietly though... -- PMM

Re: [Qemu-devel] Memory API: handling unassigned physical memory

2012-05-01 Thread Avi Kivity
On 04/30/2012 04:40 PM, Mark Cave-Ayland wrote: On 30/04/12 14:23, Avi Kivity wrote: Hi Avi, My understanding based upon this is that it would be impossible to register a different parent MemoryRegion without duplicating the init function for all shared devices which seems undesirable :(

Re: [Qemu-devel] Memory API: handling unassigned physical memory

2012-05-01 Thread Avi Kivity
On 05/01/2012 03:43 PM, Peter Maydell wrote: On 1 May 2012 13:42, Avi Kivity a...@redhat.com wrote: sysbus should just die. Totally agreed. It's not going to go quietly though... Not if you keep suggesting workarounds when I tell unsuspecting developers to qomify their devices. -- error

Re: [Qemu-devel] [PATCH] qemu: fix cpuid eax for kvm cpu

2012-05-01 Thread Michael S. Tsirkin
On Tue, May 01, 2012 at 03:38:43PM +0300, Avi Kivity wrote: On 04/30/2012 05:42 PM, Michael S. Tsirkin wrote: cpuid eax should return the max leaf so that guests can find out the valid range. This matches Xen et al. Tested using -cpu kvm64. Signed-off-by: Michael S. Tsirkin

Re: [Qemu-devel] Memory API: handling unassigned physical memory

2012-05-01 Thread Peter Maydell
On 1 May 2012 13:48, Avi Kivity a...@redhat.com wrote: On 05/01/2012 03:43 PM, Peter Maydell wrote: On 1 May 2012 13:42, Avi Kivity a...@redhat.com wrote: sysbus should just die. Totally agreed. It's not going to go quietly though... Not if you keep suggesting workarounds when I tell

Re: [Qemu-devel] Memory API: handling unassigned physical memory

2012-05-01 Thread Avi Kivity
On 05/01/2012 03:49 PM, Peter Maydell wrote: On 1 May 2012 13:48, Avi Kivity a...@redhat.com wrote: On 05/01/2012 03:43 PM, Peter Maydell wrote: On 1 May 2012 13:42, Avi Kivity a...@redhat.com wrote: sysbus should just die. Totally agreed. It's not going to go quietly though... Not

Re: [Qemu-devel] [PATCH] qemu: fix cpuid eax for kvm cpu

2012-05-01 Thread Avi Kivity
On 05/01/2012 03:49 PM, Michael S. Tsirkin wrote: On Tue, May 01, 2012 at 03:38:43PM +0300, Avi Kivity wrote: On 04/30/2012 05:42 PM, Michael S. Tsirkin wrote: cpuid eax should return the max leaf so that guests can find out the valid range. This matches Xen et al. Tested using

Re: [Qemu-devel] KVM call agenda for May, Thrusday 1st

2012-05-01 Thread Juan Quintela
Peter Portante peter.a.porta...@gmail.com wrote: On Mon, Apr 30, 2012 at 7:58 AM, Anthony Liguori anth...@codemonkey.ws wrote: On 04/30/2012 04:17 AM, Juan Quintela wrote: Hi Please send in any agenda items you are interested in

Re: [Qemu-devel] [PATCH v2 4/5] configure: check for supported Python 2.x versions

2012-05-01 Thread Lluís Vilanova
Stefan Hajnoczi writes: The tracetool code requires Python 2.4, which was released in 2004. Check for a supported Python version so we can give a clear error message. Signed-off-by: Stefan Hajnoczi stefa...@linux.vnet.ibm.com --- configure |7 --- 1 file changed, 4 insertions(+),

Re: [Qemu-devel] [PATCH v2 5/5] tracetool: avoid pkgutil.iter_modules() Python 2.7 function

2012-05-01 Thread Lluís Vilanova
Stefan Hajnoczi writes: The pkgutil.iter_modules() function provides a way to enumerate child modules. Unfortunately it's missing in Python 2.7 so we must implement similar behavior ourselves. Signed-off-by: Stefan Hajnoczi stefa...@linux.vnet.ibm.com Reviewed-by: Lluís Vilanova

Re: [Qemu-devel] Poking a sun4v machine

2012-05-01 Thread Artyom Tarasenko
On Tue, May 1, 2012 at 11:19 AM, Blue Swirl blauwir...@gmail.com wrote: On Mon, Apr 30, 2012 at 16:39, Artyom Tarasenko atar4q...@gmail.com wrote: Tried to boot QEMU Niagara machine with the firmware from the OpenSPARC T1 emulator ( www.opensparc.net/opensparc-t1/download.html ) , and it dies

Re: [Qemu-devel] Memory API: handling unassigned physical memory

2012-05-01 Thread Anthony Liguori
On 05/01/2012 08:01 AM, Avi Kivity wrote: On 05/01/2012 03:49 PM, Peter Maydell wrote: On 1 May 2012 13:48, Avi Kivitya...@redhat.com wrote: On 05/01/2012 03:43 PM, Peter Maydell wrote: On 1 May 2012 13:42, Avi Kivitya...@redhat.com wrote: sysbus should just die. Totally agreed. It's not

Re: [Qemu-devel] Memory API: handling unassigned physical memory

2012-05-01 Thread Anthony Liguori
On 05/01/2012 01:57 AM, Blue Swirl wrote: On Mon, Apr 30, 2012 at 13:52, Mark Cave-Ayland mark.cave-ayl...@ilande.co.uk wrote: On 30/04/12 14:27, Peter Maydell wrote: Hi Peter, IMO the best fix is to unsysbus the device and qomify it instead. This way we're 100% flexible in how we can

Re: [Qemu-devel] KVM call agenda for May, Thrusday 1st

2012-05-01 Thread Juan Quintela
Juan Quintela quint...@redhat.com wrote: Hi Please send in any agenda items you are interested in covering. Iht was Tuesday 1st. Anthony said that he can't attend, there are no topics yet, and half of Europe (at least) is on holiday. So, call got cancelled. Later, Juan. /me learning to

Re: [Qemu-devel] Poking a sun4v machine

2012-05-01 Thread Blue Swirl
On Tue, May 1, 2012 at 13:33, Artyom Tarasenko atar4q...@gmail.com wrote: On Tue, May 1, 2012 at 11:19 AM, Blue Swirl blauwir...@gmail.com wrote: On Mon, Apr 30, 2012 at 16:39, Artyom Tarasenko atar4q...@gmail.com wrote: Tried to boot QEMU Niagara machine with the firmware from the OpenSPARC

Re: [Qemu-devel] Poking a sun4v machine

2012-05-01 Thread Artyom Tarasenko
On Tue, May 1, 2012 at 11:25 AM, Blue Swirl blauwir...@gmail.com wrote: On Mon, Apr 30, 2012 at 17:38, Artyom Tarasenko atar4q...@gmail.com wrote: On Mon, Apr 30, 2012 at 7:15 PM, Andreas Färber afaer...@suse.de wrote: Am 30.04.2012 18:39, schrieb Artyom Tarasenko: Tried to boot QEMU Niagara

Re: [Qemu-devel] Memory API: handling unassigned physical memory

2012-05-01 Thread Peter Maydell
On 1 May 2012 14:50, Anthony Liguori anth...@codemonkey.ws wrote: On 05/01/2012 03:49 PM, Peter Maydell wrote: When QOM supports (1) exporting gpio signals and This is trivial.  It'll come in as soon as 1.2 opens up. You need to get it through code review first... (just as a random example,

Re: [Qemu-devel] [PATCH] sdl: Avoid unnecessary resizing of the display surface

2012-05-01 Thread Paolo Bonzini
Il 01/05/2012 07:53, Stefan Weil ha scritto: If neither width nor height changes, nothing has to be done. Cc: Anthony Liguori aligu...@us.ibm.com Signed-off-by: Stefan Weil s...@weilnetz.de --- This patch improves SDL for any host (for example with remote X displays), but the main reason

Re: [Qemu-devel] Poking a sun4v machine

2012-05-01 Thread Artyom Tarasenko
On Tue, May 1, 2012 at 10:35 AM, Andreas Färber afaer...@suse.de wrote: Am 30.04.2012 19:38, schrieb Artyom Tarasenko: On Mon, Apr 30, 2012 at 7:15 PM, Andreas Färber afaer...@suse.de wrote: Am 30.04.2012 18:39, schrieb Artyom Tarasenko: Tried to boot QEMU Niagara machine with the firmware

Re: [Qemu-devel] Poking a sun4v machine

2012-05-01 Thread Blue Swirl
On Tue, May 1, 2012 at 13:54, Artyom Tarasenko atar4q...@gmail.com wrote: On Tue, May 1, 2012 at 11:25 AM, Blue Swirl blauwir...@gmail.com wrote: On Mon, Apr 30, 2012 at 17:38, Artyom Tarasenko atar4q...@gmail.com wrote: On Mon, Apr 30, 2012 at 7:15 PM, Andreas Färber afaer...@suse.de wrote:

Re: [Qemu-devel] Memory API: handling unassigned physical memory

2012-05-01 Thread Anthony Liguori
On 05/01/2012 09:00 AM, Peter Maydell wrote: On 1 May 2012 14:50, Anthony Liguorianth...@codemonkey.ws wrote: On 05/01/2012 03:49 PM, Peter Maydell wrote: When QOM supports (1) exporting gpio signals and This is trivial. It'll come in as soon as 1.2 opens up. You need to get it through

Re: [Qemu-devel] Memory API: handling unassigned physical memory

2012-05-01 Thread Avi Kivity
On 05/01/2012 04:50 PM, Anthony Liguori wrote: On 05/01/2012 08:01 AM, Avi Kivity wrote: On 05/01/2012 03:49 PM, Peter Maydell wrote: On 1 May 2012 13:48, Avi Kivitya...@redhat.com wrote: On 05/01/2012 03:43 PM, Peter Maydell wrote: On 1 May 2012 13:42, Avi Kivitya...@redhat.com wrote:

Re: [Qemu-devel] Memory API: handling unassigned physical memory

2012-05-01 Thread Anthony Liguori
On 05/01/2012 09:09 AM, Avi Kivity wrote: On 05/01/2012 04:50 PM, Anthony Liguori wrote: On 05/01/2012 08:01 AM, Avi Kivity wrote: On 05/01/2012 03:49 PM, Peter Maydell wrote: On 1 May 2012 13:48, Avi Kivitya...@redhat.com wrote: On 05/01/2012 03:43 PM, Peter Maydell wrote: On 1 May 2012

Re: [Qemu-devel] Memory API: handling unassigned physical memory

2012-05-01 Thread Peter Maydell
On 1 May 2012 15:06, Anthony Liguori anth...@codemonkey.ws wrote: Do you mean: -    qdev_connect_gpio_out(dev-qdev, 0, irq_set[2]); +    pin_connect_qemu_irq(s-int_out[0], irq_set[2]); There are three ways to do this: 1) pin_connect_qemu_irq(i8259_get_int_out(s), irq_set[2]); No good

Re: [Qemu-devel] [Qemu-ppc] [PATCH 20/22] ppc: move load and store helpers, switch to AREG0 free mode

2012-05-01 Thread Alexander Graf
On 01.05.2012, at 11:15, Blue Swirl blauwir...@gmail.com wrote: On Mon, Apr 30, 2012 at 11:51, Alexander Graf ag...@suse.de wrote: On 30.04.2012, at 12:45, Alexander Graf wrote: On 22.04.2012, at 15:26, Blue Swirl wrote: Add an explicit CPUPPCState parameter instead of relying on

Re: [Qemu-devel] Memory API: handling unassigned physical memory

2012-05-01 Thread Avi Kivity
On 05/01/2012 05:15 PM, Anthony Liguori wrote: I think a nice fix would be to make it_shift as memory region mutator and allow it to be set after initialization. Indeed I wanted to make it_shift as part of the memory core. But a mutator? It doesn't change in real hardware, so this looks

Re: [Qemu-devel] Memory API: handling unassigned physical memory

2012-05-01 Thread Anthony Liguori
On 05/01/2012 09:20 AM, Peter Maydell wrote: On 1 May 2012 15:06, Anthony Liguorianth...@codemonkey.ws wrote: Do you mean: -qdev_connect_gpio_out(dev-qdev, 0, irq_set[2]); +pin_connect_qemu_irq(s-int_out[0], irq_set[2]); There are three ways to do this: 1)

Re: [Qemu-devel] Memory API: handling unassigned physical memory

2012-05-01 Thread Anthony Liguori
On 05/01/2012 09:26 AM, Avi Kivity wrote: On 05/01/2012 05:15 PM, Anthony Liguori wrote: I think a nice fix would be to make it_shift as memory region mutator and allow it to be set after initialization. Indeed I wanted to make it_shift as part of the memory core. But a mutator? It doesn't

Re: [Qemu-devel] Memory API: handling unassigned physical memory

2012-05-01 Thread Peter Maydell
On 1 May 2012 16:09, Anthony Liguori anth...@codemonkey.ws wrote: On 05/01/2012 09:20 AM, Peter Maydell wrote: This is a bit verbose. Something more like  pin_connect(s, int_out[0], self, int_set[2]); This is incorrect, it would have to be: Error *err = NULL; if (pin_connect(s, in_out[0],

Re: [Qemu-devel] Memory API: handling unassigned physical memory

2012-05-01 Thread Anthony Liguori
On 05/01/2012 10:20 AM, Peter Maydell wrote: On 1 May 2012 16:09, Anthony Liguorianth...@codemonkey.ws wrote: On 05/01/2012 09:20 AM, Peter Maydell wrote: This is a bit verbose. Something more like pin_connect(s, int_out[0], self, int_set[2]); This is incorrect, it would have to be:

[Qemu-devel] [PATCH for-1.1] linux-user: fix emulation of /proc/self/maps

2012-05-01 Thread Peter Maydell
From: Alexander Graf ag...@suse.de Improve the emulation of /proc/self/maps by reading the underlying host maps file and passing lines through with addresses adjusted to be guest addresses. This is necessary to avoid false triggers of the glibc check that a format string containing '%n' is not in

Re: [Qemu-devel] [PATCH v2 4/5] configure: check for supported Python 2.x versions

2012-05-01 Thread Stefan Hajnoczi
On Tue, May 1, 2012 at 2:20 PM, Lluís Vilanova vilan...@ac.upc.edu wrote: Stefan Hajnoczi writes: The tracetool code requires Python 2.4, which was released in 2004. Check for a supported Python version so we can give a clear error message. Signed-off-by: Stefan Hajnoczi

Re: [Qemu-devel] Memory API: handling unassigned physical memory

2012-05-01 Thread Peter Maydell
On 1 May 2012 16:26, Anthony Liguori anth...@codemonkey.ws wrote: On 05/01/2012 10:20 AM, Peter Maydell wrote: The assumption is that failure to connect is a fatal error, and we can happily just assert()/hw_error()/etc. So that means that we have a bug from someone miss-typing, instead of

[Qemu-devel] [RFC 0/5] block: File descriptor passing using -open-hook-fd

2012-05-01 Thread Stefan Hajnoczi
Libvirt can take advantage of SELinux to restrict the QEMU process and prevent it from opening files that it should not have access to. This improves security because it prevents the attacker from escaping the QEMU process if they manage to gain control. NFS has been a pain point for SELinux

[Qemu-devel] [RFC 2/5] block: add new command line parameter that and protocol description

2012-05-01 Thread Stefan Hajnoczi
From: Anthony Liguori aligu...@us.ibm.com Signed-off-by: Anthony Liguori aligu...@us.ibm.com Signed-off-by: Stefan Hajnoczi stefa...@linux.vnet.ibm.com --- qemu-options.hx | 42 ++ 1 file changed, 42 insertions(+) diff --git a/qemu-options.hx

[Qemu-devel] [RFC 3/5] block: plumb up open-hook-fd option

2012-05-01 Thread Stefan Hajnoczi
From: Anthony Liguori aligu...@us.ibm.com Implement the open hook UNIX domain socket protocol and accept passed file descriptors. Signed-off-by: Anthony Liguori aligu...@us.ibm.com Signed-off-by: Stefan Hajnoczi stefa...@linux.vnet.ibm.com --- block.c | 107

[Qemu-devel] [RFC 4/5] osdep: add qemu_recvmsg() wrapper

2012-05-01 Thread Stefan Hajnoczi
Usually we need to set O_CLOEXEC, which is platform-specific. Add a wrapper like qemu_open() but for qemu_recvmsg(). Signed-off-by: Stefan Hajnoczi stefa...@linux.vnet.ibm.com --- block.c |5 + osdep.c | 46 ++ qemu-common.h |

[Qemu-devel] [RFC 1/5] block: add open() wrapper that can be hooked by libvirt

2012-05-01 Thread Stefan Hajnoczi
From: Anthony Liguori aligu...@us.ibm.com Signed-off-by: Anthony Liguori aligu...@us.ibm.com Signed-off-by: Stefan Hajnoczi stefa...@linux.vnet.ibm.com --- block.c |5 + block/raw-posix.c | 16 block/raw-win32.c |2 +- block/vdi.c |2 +-

[Qemu-devel] [RFC 5/5] Example -open-hook-fd server

2012-05-01 Thread Stefan Hajnoczi
This patch implements a demo server for the new -open-hook-fd feature. It opens any filename given to it by QEMU and therefore adds no true security. But it serves as a good debugging tool to see what requests QEMU is making. $ gcc -o test-fd-passing -Wall test-fd-passing.c $

[Qemu-devel] [PATCH v3 2/5] tracetool: use Python 2.4-compatible __import__() arguments

2012-05-01 Thread Stefan Hajnoczi
In Python 2.5 keyword arguments were added to __import__(). Avoid using them to achieve Python 2.4 compatibility. Signed-off-by: Stefan Hajnoczi stefa...@linux.vnet.ibm.com Reviewed-by: Lluís Vilanova vilan...@ac.upc.edu --- scripts/tracetool/__init__.py |2 +- 1 file changed, 1

Re: [Qemu-devel] [PATCH v3 5/5] configure: check for supported Python 2.x versions

2012-05-01 Thread Lluís Vilanova
Stefan Hajnoczi writes: The tracetool code requires Python 2.4, which was released in 2004. Check for a supported Python version so we can give a clear error message. Signed-off-by: Stefan Hajnoczi stefa...@linux.vnet.ibm.com Reviewed-by: Lluís Vilanova vilan...@ac.upc.edu --- configure

Re: [Qemu-devel] [libvirt] [RFC 5/5] Example -open-hook-fd server

2012-05-01 Thread Stefan Hajnoczi
On Tue, May 1, 2012 at 4:31 PM, Stefan Hajnoczi stefa...@linux.vnet.ibm.com wrote: This patch implements a demo server for the new -open-hook-fd feature. It opens any filename given to it by QEMU and therefore adds no true security.  But it serves as a good debugging tool to see what requests

[Qemu-devel] [PATCH v3 5/5] configure: check for supported Python 2.x versions

2012-05-01 Thread Stefan Hajnoczi
The tracetool code requires Python 2.4, which was released in 2004. Check for a supported Python version so we can give a clear error message. Signed-off-by: Stefan Hajnoczi stefa...@linux.vnet.ibm.com --- configure |7 --- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git

Re: [Qemu-devel] [Bug 992067] Re: Windows 2008R2 very slow cold boot when 4GB memory

2012-05-01 Thread Alexandre DERUMIER
Hi, I was having this problem with qemu 0.15 , (win2008R2 x64 4GB). guest with 32gb ram take around 40min to boot. (When windows fill memory at boot, memory grow slowly) but now with last qemu kvm git (proxmox 2.0 distrib), it's working fine. (can tell for qemu 1.0) - Mail original

Re: [Qemu-devel] [PATCH v2] sdl: Add QEMU mascot icon for use with SDL

2012-05-01 Thread Stefan Weil
Am 01.05.2012 13:19, schrieb Andreas Färber: Am 23.04.2012 22:11, schrieb Stefan Weil: Am 13.04.2012 22:24, schrieb Stefan Weil: This is a bitmap file (32x32x4) derived from the official QEMU mascot (which was designed by Benoît Canet). I stripped the text from the SVG to get a nearly square

[Qemu-devel] [PATCH v3 4/5] tracetool: avoid pkgutil.iter_modules() Python 2.7 function

2012-05-01 Thread Stefan Hajnoczi
The pkgutil.iter_modules() function provides a way to enumerate child modules. Unfortunately it's missing in Python 2.7 so we must implement similar behavior ourselves. Signed-off-by: Stefan Hajnoczi stefa...@linux.vnet.ibm.com Reviewed-by: Lluís Vilanova vilan...@ac.upc.edu ---

[Qemu-devel] [PATCH v3 3/5] tracetool: avoid str.rpartition() Python 2.5 function

2012-05-01 Thread Stefan Hajnoczi
The str.rpartition() function is related to str.split() and is used for splitting strings. It was introduced in Python 2.5 and therefore cannot be used in tracetool as Python 2.4 compatibility is required. Replace the code using str.rsplit(). Signed-off-by: Stefan Hajnoczi

[Qemu-devel] [PATCH v3 0/5] tracetool: Python 2.4 compatibility fixes

2012-05-01 Thread Stefan Hajnoczi
The new Python tracetool implementation works great but does not run on older Python installations. This series takes us back to the happy days of Python 2.4, which was released in 2004. As a result tracetool should now work again on Mac OS X v10.5.8, OpenIndiana oi_151a, Solaris 10 U9, and Red

[Qemu-devel] [PATCH v3 1/5] tracetool: use Python 2.4-compatible exception handling syntax

2012-05-01 Thread Stefan Hajnoczi
The newer except exception-type as exception: syntax is not supported by Python 2.4, we need to use except exception-type, exception:. Tested all trace backends with Python 2.4. Reported-by: Andreas Färber afaer...@suse.de Signed-off-by: Stefan Hajnoczi stefa...@linux.vnet.ibm.com Reviewed-by:

Re: [Qemu-devel] [Qemu-ppc] [PATCH 20/22] ppc: move load and store helpers, switch to AREG0 free mode

2012-05-01 Thread Blue Swirl
On Tue, May 1, 2012 at 14:25, Alexander Graf ag...@suse.de wrote: On 01.05.2012, at 11:15, Blue Swirl blauwir...@gmail.com wrote: On Mon, Apr 30, 2012 at 11:51, Alexander Graf ag...@suse.de wrote: On 30.04.2012, at 12:45, Alexander Graf wrote: On 22.04.2012, at 15:26, Blue Swirl wrote:

Re: [Qemu-devel] Memory API: handling unassigned physical memory

2012-05-01 Thread Anthony Liguori
On May 1, 2012 10:37 AM, Peter Maydell peter.mayd...@linaro.org wrote: On 1 May 2012 16:26, Anthony Liguori anth...@codemonkey.ws wrote: On 05/01/2012 10:20 AM, Peter Maydell wrote: The assumption is that failure to connect is a fatal error, and we can happily just assert()/hw_error()/etc.

Re: [Qemu-devel] [PATCH 3/8] linux-user: Fix undefined HOST_LONG_SIZE on PPC hosts

2012-05-01 Thread Andreas Färber
Am 01.05.2012 10:58, schrieb Alexander Graf: On my PPC host, HOST_LONG_SIZE is not defined even after running configure. Use the normal C way of determining the long size instead. Signed-off-by: Alexander Graf ag...@suse.de --- thunk.h |2 +- 1 files changed, 1 insertions(+), 1

  1   2   >