[Qemu-devel] [PATCH 09/10] convert IDE as piix3 proper QOM child

2012-11-07 Thread Wanpeng Li
convert IDE as piix3 proper QOM child. IDE creation for the PIIX3 is done by calling object_init() with qdev_init() being called for each child device in the PIIX3 ::init function. Signed-off-by: Wanpeng Li --- hw/i440fx.c |6 ++ hw/ide.h |6 -- hw/ide/internal.h

[Qemu-devel] [PATCH 03/10] convert PIT as piix3 proper QOM child

2012-11-07 Thread Wanpeng Li
convert PIT as piix3 proper QOM child. PIT creation for the PIIX3 is done by calling object_init() with qdev_init() being called for each child device in the PIIX3 ::init function. Signed-off-by: Anthony Liguori Signed-off-by: Wanpeng Li --- hw/i8254.c |2 +- hw/i8254_internal.h

[Qemu-devel] [PATCH 00/10] piix3: create all child devices as proper QOM children

2012-11-07 Thread Wanpeng Li
All of the devices described in the PIIX3 as being implemented within the PIIX3 are created as child devices of the PIIX3 object in QEMU. PIIX3 has-a RTC, has-a I8042, has-a PCSPK, etc. All child device creation for the PIIX3 is done by calling object_init() with qdev_init() being called for each

[Qemu-devel] [PATCH 05/10] convert PORT92 as piix3 proper QOM child

2012-11-07 Thread Wanpeng Li
convert PORT92 as piix3 proper QOM child. PORT92 creation for the PIIX3 is done by calling object_init() with qdev_init() being called for each child device in the PIIX3 ::init function. Signed-off-by: Wanpeng Li --- hw/pc.c| 25 - hw/pc.h|3 +++ hw/piix3.

[Qemu-devel] [PATCH 02/10] convert HPET as piix3 proper QOM child

2012-11-07 Thread Wanpeng Li
convert HPET as piix3 proper QOM child. HPET creation for the PIIX3 is done by calling object_init() with qdev_init() being called for each child device in the PIIX3 ::init function. Signed-off-by: Anthony Liguori Signed-off-by: Wanpeng Li --- hw/hpet.c | 35 ---

[Qemu-devel] [PATCH v5 2/3] merge pc_piix.c to pc.c

2012-11-07 Thread Wanpeng Li
A long time ago, there was a grand plan to merge q35 chipset support. The start of that series was a refactoring of pc.c which split a bunch of the "common" functionality into a separate file that could be shared by the two. But q35 never got merged and the refactoring, in retrospect, just made th

[Qemu-devel] [PATCH 10/10] convert IOAPIC as piix3 proper QOM child

2012-11-07 Thread Wanpeng Li
convert IOAPIC as piix3 proper QOM child. IOAPIC creation for the PIIX3 is done by calling object_init() with qdev_init() being called for each child device in the PIIX3 ::init function. Signed-off-by: Wanpeng Li --- hw/ioapic.c |2 +- hw/ioapic.h |2 -- hw/ioapic_int

[Qemu-devel] [PATCH 08/10] convert VMMOUSE as piix3 proper QOM child

2012-11-07 Thread Wanpeng Li
convert VMMOUSE as piix3 proper QOM child. VMMOUSE creation for the PIIX3 is done by calling object_init() with qdev_init() being called for each child device in the PIIX3 ::init function. Signed-off-by: Wanpeng Li --- hw/pc.c | 15 ++- hw/piix3.c | 10 ++ hw/pii

[Qemu-devel] [PATCH 07/10] convert VMPORT as piix3 proper QOM child

2012-11-07 Thread Wanpeng Li
convert VMPORT as piix3 proper QOM child. VMPORT creation for the PIIX3 is done by calling object_init() with qdev_init() being called for each child device in the PIIX3 ::init function. Signed-off-by: Wanpeng Li --- hw/pc.c |1 - hw/pc.h |5 - hw/piix3.c | 11 ++

[Qemu-devel] [PATCH 06/10] convert i8042 as piix3 proper QOM child

2012-11-07 Thread Wanpeng Li
convert i8042 as piix3 proper QOM child. I8042 creation for the PIIX3 is done by calling object_init() with qdev_init() being called for each child device in the PIIX3 ::init function. Signed-off-by: Wanpeng Li --- hw/pc.c|9 ++--- hw/pckbd.c | 24 +--- hw/pii

[Qemu-devel] [PATCH 04/10] convert PCSPK as piix3 proper QOM child

2012-11-07 Thread Wanpeng Li
convert PCSPK as piix3 proper QOM child. PCSPK creation for the PIIX3 is done by calling object_init() with qdev_init() being called for each child device in the PIIX3 ::init function. Signed-off-by: Wanpeng Li --- hw/pcspk.c | 19 +-- hw/pcspk.h | 19 +++ hw

[Qemu-devel] [PATCH 01/10] convert RTC as piix3 proper QOM child

2012-11-07 Thread Wanpeng Li
convert RTC as piix3 proper QOM child. RTC creation for the PIIX3 is done by calling object_init() with qdev_init() being called for each child device in the PIIX3 ::init function. Signed-off-by: Anthony Liguori Signed-off-by: Wanpeng Li --- hw/mc146818rtc.c | 29 +---

[Qemu-devel] [PATCH v5 3/3] convert pci-host to QOM

2012-11-07 Thread Wanpeng Li
Take advantage of Andreas's pci-host patchset, add instance_init function to fully implement convert pci-host to QOM. Signed-off-by: Anthony Liguori Signed-off-by: Wanpeng Li --- hw/pci_host.c |9 + 1 files changed, 9 insertions(+), 0 deletions(-) diff --git a/hw/pci_host.c b/hw/pc

[Qemu-devel] [PATCH v5 0/3] refactor PC machine, i440fx and piix3 to take advantage of QOM

2012-11-07 Thread Wanpeng Li
This series aggressively refactors the PC machine initialization to be more modelled and less ad-hoc. The highlights of this series are: 1) Things like -m and -bios-name are now device model properties 2) The i440fx and piix3 are now modelled in a thorough fashion 3) i440fx_init is trivialized

[Qemu-devel] RFC: Partial workaround for buggy guest virtio-balloon driver

2012-11-07 Thread David Gibson
Linux kernel commits 1a87228f5f1d316002c7c161316f5524592be766 "virtio_balloon: Fix endian bug" and 3ccc9372ed0fab33d20f10be3c1efd5776ff5913 "virtio_balloon: fix handling of PAGE_SIZE != 4k" fixed two serious bugs in their (guest side) handling of the virtio balloon. In practice, these bugs only af

[Qemu-devel] [QEMU PATCH] microblaze: translate.c: Fix swaph decoding

2012-11-07 Thread Peter Crosthwaite
The swaph instruction was not decoding correctly. s/1e1/1e2 on the 9 LSBs on the instruction decode. Reported-by: David Holsgrove Signed-off-by: Peter Crosthwaite --- target-microblaze/translate.c |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/target-microblaze/transl

[Qemu-devel] mask specific partition from guest

2012-11-07 Thread ching
Hi all, I am trying to boot a real Linux OS inside qemu. The OS resides on a real disk with a partition layout: 1. data 2. os 3. data Partiton 1 is being used by the host and i would like to hide it from guest. In virtualbox/vmware, this can be done by creating a vmdk file marking correspondi

Re: [Qemu-devel] [PATCH] Fix out-of-tree and cross compile builds for pixman

2012-11-07 Thread Johnson, Eric
Sorry, I didn’t let the make finish but I think there will be linking errors with the previous because libpixman-1.a may not be built. The following changes to Gerd's rebase/pixman branch will completely build (except s390x). On RHEL 5.7 (no pixman on system): $ ../kraxel.org/configure --without

Re: [Qemu-devel] [PATCH] Fix out-of-tree and cross compile builds for pixman

2012-11-07 Thread Johnson, Eric
This may not be the prettiest fix for the pixman dependency but it seems to work. diff --git a/configure b/configure index f0bc726..fcb744e 100755 --- a/configure +++ b/configure @@ -4154,6 +4154,10 @@ echo "QEMU_CFLAGS+=$cflags" >> $config_target_mak echo "QEMU_INCLUDES+=$includes" >> $config_t

Re: [Qemu-devel] scsi-hd with discard_granularity and unmap results in Aborted Commands

2012-11-07 Thread Stefan Priebe
Am 06.11.2012 23:42, schrieb Paolo Bonzini: i wantes to use scsi unmap with rbd. rbd documention says you need to set discard_granularity=512 for the device. I'm using qemu 1.2. If i set this and send an UNMAP command i get this kernel output: The discard request is failing. Please check wh

Re: [Qemu-devel] qemu.org DNS status

2012-11-07 Thread Stefan Weil
Am 02.11.2012 20:10, schrieb anth...@codemonkey.ws: Hi, I wanted to update everyone on the qemu.org DNS status. This morning it was reported that the two nameservers that qemu.org is configured to use are down. I do not have access to the DNS records for qemu.org as they are graciously donate

Re: [Qemu-devel] Qemu Monitor

2012-11-07 Thread Kevin Wolf
Forwarding your mail to qemu-devel, where it really belongs. Keivn Am 07.11.2012 14:32, schrieb Muhammad Nouman: > Hi ! I am trying to use qemu monitor *info tlb* But when i enter > ctrl+a+c ,and then enter info tlb , i don't find *info tlb* option in > the monitors list given below. > > (qemu)

Re: [Qemu-devel] 64-on-32 TCG broken

2012-11-07 Thread Kirill Batuzov
> diff --git a/tcg/tcg.c b/tcg/tcg.c > index c3a7f19..1133438 100644 > --- a/tcg/tcg.c > +++ b/tcg/tcg.c > @@ -1329,8 +1329,8 @@ static void tcg_liveness_analysis(TCGContext *s) > the low part. The result can be optimized to a simple > add or sub. This happens ofte

Re: [Qemu-devel] [PATCH] Fix out-of-tree and cross compile builds for pixman

2012-11-07 Thread Gerd Hoffmann
Hi, > The internal pixman code is also too old for cross compilations with > MinGW-w64. It already fails when running configure. > > Newer versions of pixman compile after a trivial modification which > is needed to avoid redefined symbols: I'd prefer to not have local patches. Can you submit

Re: [Qemu-devel] [PATCH] Fix out-of-tree and cross compile builds for pixman

2012-11-07 Thread Gerd Hoffmann
On 11/03/12 21:15, Blue Swirl wrote: > On Sat, Nov 3, 2012 at 7:02 PM, Peter Maydell > wrote: >> On 3 November 2012 19:47, Blue Swirl wrote: >>> --- a/Makefile >>> +++ b/Makefile >>> @@ -122,7 +122,7 @@ subdir-pixman: pixman/Makefile >>> $(call quiet-command,$(MAKE) $(SUBDIR_MAKEFLAGS) -

Re: [Qemu-devel] [PATCH 2/8] usb-redir: Store interrupt receiving status in the bufp-queue

2012-11-07 Thread Paolo Bonzini
Il 06/11/2012 15:08, Hans de Goede ha scritto: > Since we handle interrupt out async, and not buffered like iso-out, there is > no need for a separate status flag, instead store any reported error status > into the bufp queue. > > Signed-off-by: Hans de Goede > --- > hw/usb/redirect.c | 24 +

Re: [Qemu-devel] [PATCH 8/8] usb-hid: Allow connecting to a USB-2 device

2012-11-07 Thread Paolo Bonzini
Il 06/11/2012 15:08, Hans de Goede ha scritto: > Our ehci code has is capable of significantly lowering the wakeup rate > for the hcd emulation while the device is idle. It is possible to add > similar code ot the uhci emulation, but that simply is not there atm, > and there is no reason why a (vir