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 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 that allows me to m

[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 ext

[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 Signed-off-by: Peter Chubb --- Makefile.target |2 hw/kzm.c| 155 2 files changed, 156 i

[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 Signed-off-by: Peter Chubb Reviewed-by: Peter Maydell --- Makefile.target |2 hw/imx_avic.c | 409 ++

[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., t

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

[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 Signed-off-by: Peter Chubb Reviewed-by: P

[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 Signed-off-by

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 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 interface the

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 wrote: >> Am 30.04.2012 18:39, schrieb Artyom Tarasenko: >>> Tried to boot QEMU Niagara machine with the firmware from the >>> OpenSPARC T1 emulator ( www.opensparc.net/opensparc-t1/download.html ) >>>

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 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 qemu_rbd_aio_discard en

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 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

[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 Initial Mapping creation for secondary CPU in SMP was missing new MMU API. Signed-off-by: Bharat Bhushan Signed-off-by: Alexander Graf --- hw/ppce500_spin.c |1 + 1 files changed, 1 insertions(+), 0 deletions(-) diff --git a/hw/ppce500_spin.c b/hw/ppce500_spin.c inde

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 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 to me on Hard Fr

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 > --- > async.c |6 +++--- > 1 files changed, 3 insertions(+), 3 deletions(-) Thanks, a

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 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 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) (dc->mem_idx == MMU_HY

Re: [Qemu-devel] Poking a sun4v machine

2012-05-01 Thread Blue Swirl
On Mon, Apr 30, 2012 at 17:38, Artyom Tarasenko wrote: > On Mon, Apr 30, 2012 at 7:15 PM, Andreas Färber wrote: >> Am 30.04.2012 18:39, schrieb Artyom Tarasenko: >>> Tried to boot QEMU Niagara machine with the firmware from the >>> OpenSPARC T1 emulator ( www.opensparc.net/opensparc-t1/download.h

[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 c97feed13cded953b11465829f6

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

2012-05-01 Thread Stefan Hajnoczi
From: Stefan Weil Using bool reduces the size of the structure and improves readability. Two holes in the structure were removed. Signed-off-by: Stefan Weil Signed-off-by: Stefan Hajnoczi --- iohandler.c |4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/iohandler.c b/

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

2012-05-01 Thread Stefan Hajnoczi
From: Stefan Weil 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 for Makefile* thi

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

2012-05-01 Thread Alexander Graf
From: François Revol Add mmubooke_dump_mmu(). TODO: Add printing of individual flags. Signed-off-by: François Revol [agraf: fix coding style] Signed-off-by: Alexander Graf --- target-ppc/helper.c | 50 ++ 1 files changed, 50 insertions(+), 0

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

2012-05-01 Thread Alexander Graf
From: David Gibson 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 / -serial and so forth options a

[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 Using bool reduces the size of the structure and improves readability. A hole in the structure was removed. Signed-off-by: Stefan Weil Signed-off-by: Stefan Hajnoczi --- async.c |6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/async.c b/async.c in

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

2012-05-01 Thread Alexander Graf
From: Stefan Weil 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 returns), there is a

[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 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 tree, however it's a bit odd

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

2012-05-01 Thread Alexander Graf
From: Peter Portante 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 function can access the global

[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 ppc-for-

[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 information

[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 --- thunk.h |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/thunk.h b/thunk.h index 5be8f91..87025c3 1006

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_di

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 wi

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 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 apply to let

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 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 and w64 (2012-04

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 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 w64 > > are avai

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 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 separate PULL. T

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 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 >> memory_

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 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 it runs in

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 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 > --- >  main-loop.c |    6 +- >  1 fi

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 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 ri

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 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 > --- > target-i386/kvm.c |2 +- > 1 files changed, 1 insertions

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 wrote: > > On 04/30/2012 04:27 PM, Peter Maydell wrote: > >> On 30 April 2012 14:23, Avi Kivity 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 Peter Maydell
On 1 May 2012 13:39, Avi Kivity 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 >> traditional map f

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 Kivity 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 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 t

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

2012-05-01 Thread Peter Maydell
On 1 May 2012 13:42, Avi Kivity 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 undes

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 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 compiling com

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. Ts

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

2012-05-01 Thread Peter Maydell
On 1 May 2012 13:48, Avi Kivity wrote: > On 05/01/2012 03:43 PM, Peter Maydell wrote: >> On 1 May 2012 13:42, Avi Kivity 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 > developer

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 wrote: > > On 05/01/2012 03:43 PM, Peter Maydell wrote: > >> On 1 May 2012 13:42, Avi Kivity wrote: > >> > sysbus should just die. > >> > >> Totally agreed. It's not going to go quietly though... > > > > Not if you kee

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. > > > > >

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

2012-05-01 Thread Juan Quintela
Peter Portante wrote: > On Mon, Apr 30, 2012 at 7:58 AM, Anthony Liguori > wrote: > > On 04/30/2012 04:17 AM, Juan Quintela wrote: > > > > Hi > > Please send in any agenda items you are interested in > covering. > > > > FYI

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 > --- > configure |7 --- > 1 file changed, 4 insertions(+), 3 deletions(-) > di

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 Reviewed-by: Lluís Vilanova > --- > scripts/tracetool/back

Re: [Qemu-devel] Poking a sun4v machine

2012-05-01 Thread Artyom Tarasenko
On Tue, May 1, 2012 at 11:19 AM, Blue Swirl wrote: > On Mon, Apr 30, 2012 at 16:39, Artyom Tarasenko 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 tra

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 Kivity wrote: On 05/01/2012 03:43 PM, Peter Maydell wrote: On 1 May 2012 13:42, Avi Kivity wrote: sysbus should just die. Totally agreed. It's not going to go quietly though...

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 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 w

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

2012-05-01 Thread Juan Quintela
Juan Quintela 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 type Tuesday instead

Re: [Qemu-devel] Poking a sun4v machine

2012-05-01 Thread Blue Swirl
On Tue, May 1, 2012 at 13:33, Artyom Tarasenko wrote: > On Tue, May 1, 2012 at 11:19 AM, Blue Swirl wrote: >> On Mon, Apr 30, 2012 at 16:39, Artyom Tarasenko wrote: >>> Tried to boot QEMU Niagara machine with the firmware from the >>> OpenSPARC T1 emulator ( www.opensparc.net/opensparc-t1/downlo

Re: [Qemu-devel] Poking a sun4v machine

2012-05-01 Thread Artyom Tarasenko
On Tue, May 1, 2012 at 11:25 AM, Blue Swirl wrote: > On Mon, Apr 30, 2012 at 17:38, Artyom Tarasenko wrote: >> On Mon, Apr 30, 2012 at 7:15 PM, Andreas Färber wrote: >>> Am 30.04.2012 18:39, schrieb Artyom Tarasenko: Tried to boot QEMU Niagara machine with the firmware from the OpenSPA

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

2012-05-01 Thread Peter Maydell
On 1 May 2012 14:50, Anthony Liguori 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, this commit: ht

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 > Signed-off-by: Stefan Weil > --- > > This patch improves SDL for any host (for example with remote X displays), > but the main reason why I wrote it was another

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 wrote: > Am 30.04.2012 19:38, schrieb Artyom Tarasenko: >> On Mon, Apr 30, 2012 at 7:15 PM, Andreas Färber wrote: >>> Am 30.04.2012 18:39, schrieb Artyom Tarasenko: Tried to boot QEMU Niagara machine with the firmware from the OpenSPARC T1

Re: [Qemu-devel] Poking a sun4v machine

2012-05-01 Thread Blue Swirl
On Tue, May 1, 2012 at 13:54, Artyom Tarasenko wrote: > On Tue, May 1, 2012 at 11:25 AM, Blue Swirl wrote: >> On Mon, Apr 30, 2012 at 17:38, Artyom Tarasenko wrote: >>> On Mon, Apr 30, 2012 at 7:15 PM, Andreas Färber wrote: Am 30.04.2012 18:39, schrieb Artyom Tarasenko: > Tried to boot

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 Liguori 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...

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 Kivity wrote: On 05/01/2012 03:43 PM, Peter Maydell wrote: > On 1 May 2012 13:42, Avi Kivity wrote: >> sysbus should

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 Kivity wrote: On 05/01/2012 03:43 PM, Peter Maydell wrote: On 1 May 2012 13:42, Avi Kivit

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

2012-05-01 Thread Peter Maydell
On 1 May 2012 15:06, Anthony Liguori 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 unless you're

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 wrote: > On Mon, Apr 30, 2012 at 11:51, Alexander Graf 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 r

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 thi

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 Liguori 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), i

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 c

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

2012-05-01 Thread Peter Maydell
On 1 May 2012 16:09, Anthony Liguori 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]", self

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 Liguori 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

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

2012-05-01 Thread Peter Maydell
From: Alexander Graf 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 writable memo

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 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 >> --- >>  configure |    7

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

2012-05-01 Thread Peter Maydell
On 1 May 2012 16:26, Anthony Liguori 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 your > hotplug att

[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 beca

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

2012-05-01 Thread Stefan Hajnoczi
From: Anthony Liguori Signed-off-by: Anthony Liguori Signed-off-by: Stefan Hajnoczi --- qemu-options.hx | 42 ++ 1 file changed, 42 insertions(+) diff --git a/qemu-options.hx b/qemu-options.hx index a169792..ccf4d1d 100644 --- a/qemu-options.hx +++ b/

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

2012-05-01 Thread Stefan Hajnoczi
From: Anthony Liguori Implement the open hook UNIX domain socket protocol and accept passed file descriptors. Signed-off-by: Anthony Liguori Signed-off-by: Stefan Hajnoczi --- block.c | 107 - block.h |2 + block/raw

[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 --- block.c |5 + osdep.c | 46 ++ qemu-common.h |2 ++ 3 files changed, 49 i

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

2012-05-01 Thread Stefan Hajnoczi
From: Anthony Liguori Signed-off-by: Anthony Liguori Signed-off-by: Stefan Hajnoczi --- block.c |5 + block/raw-posix.c | 16 block/raw-win32.c |2 +- block/vdi.c |2 +- block/vmdk.c |6 +++--- block/vpc.c |2 +- block/vvfat

[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 $ ./test-fd-passin

[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 Reviewed-by: Lluís Vilanova --- scripts/tracetool/__init__.py |2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/tracetoo

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 Reviewed-by: Lluís Vilanova > --- > configure |7 --- > 1 file changed, 4 inse

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 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 is making. > >  $ g

[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 --- configure |7 --- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/configure b/configure index 25

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 i

[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 Reviewed-by: Lluís Vilanova --- scripts/tracetool/backend/__init__.py |8 ++-- script

[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 Reviewed-by: Lluís Vi

[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 H

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

2012-05-01 Thread Stefan Hajnoczi
The newer "except as :" syntax is not supported by Python 2.4, we need to use "except , :". Tested all trace backends with Python 2.4. Reported-by: Andreas Färber Signed-off-by: Stefan Hajnoczi Reviewed-by: Lluís Vilanova --- scripts/tracetool.py |4 ++-- 1 file changed, 2 insertions(+),

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 wrote: > > > On 01.05.2012, at 11:15, Blue Swirl wrote: > >> On Mon, Apr 30, 2012 at 11:51, Alexander Graf wrote: >>> >>> On 30.04.2012, at 12:45, Alexander Graf wrote: >>> On 22.04.2012, at 15:26, Blue Swirl wrote: > Add an explici

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

2012-05-01 Thread Anthony Liguori
On May 1, 2012 10:37 AM, "Peter Maydell" wrote: > > On 1 May 2012 16:26, Anthony Liguori 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 hav

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 > --- > thunk.h |2 +- > 1 files changed, 1 insertions(+), 1 deletions(-

Re: [Qemu-devel] [PATCH 05/14] qdev: use wrapper for qdev_get_path

2012-05-01 Thread Anthony Liguori
Hi Gerd, Could you carefully review the USB changes here? I'm not really sure what our contract is with the guest in terms of ABI compatibility. I think it's good but it could use a second set of eyes. Regards, Anthony Liguori On 05/01/2012 01:18 PM, Anthony Liguori wrote: This makes it

[Qemu-devel] [PATCH 04/14] qdev: don't allow globals to be set by bus name

2012-05-01 Thread Anthony Liguori
This is technically a compatibility breaker. However: 1) libvirt does not rely on this (it always uses the driver name) 2) This behavior isn't actually documented anywhere (the docs just say driver). 3) I suspect there are less than three people on earth that even know this is possible (minu

  1   2   >