[Qemu-devel] [PULL] VirtFS update

2011-12-20 Thread Aneesh Kumar K.V
Hi Anthony, This is the updated pull request after moving the repo to github. I added two patches to the series. The signed tag for-anthony is updated with updated info The following changes since commit 3799ce4ab64f578eb818689a276e4f0c73d01fb5: sd: Remember to reset .expecting_acmd on reset.

[Qemu-devel] [PATCH 2/4] hw/9pfs: Use the correct signed type for different variables

2011-12-20 Thread Aneesh Kumar K.V
From: "Aneesh Kumar K.V" Signed-off-by: Aneesh Kumar K.V --- fsdev/file-op-9p.h |2 +- hw/9pfs/virtio-9p.c | 21 +++-- hw/9pfs/virtio-9p.h |2 +- trace-events|8 4 files changed, 17 insertions(+), 16 deletions(-) diff --git a/fsdev/file-op-9p.h b

Re: [Qemu-devel] OEM Windows in Qemu

2011-12-20 Thread Michael Tokarev
On 20.12.2011 22:23, in...@expertcomputerrepair.com wrote: > Sorry, I don't normally use this email and didn't realize it was set to > html. > > I've been trying for several days now to get my OEM copy of Windows XP > to pre-activate properly in Qemu-kvm. I saw the instructions for > patching the

[Qemu-devel] [PATCH 2/3] virtio-console: Properly initialise class methods

2011-12-20 Thread Amit Shah
The earlier code really was a hack: initialising class methods in an object init function as noted by Anthony. The motivation for that was to not have the virtio-serial-bus call into the callback functions if there was no chardev backend registered. However, that really wasn't a worthwhile optimis

[Qemu-devel] [PATCH 3/3] virtio-serial-bus: Ports are expected to implement 'have_data' callback

2011-12-20 Thread Amit Shah
There's no need to check if ports can accept any incoming data from the guest each time the guest sends data. Check if the port implements such functionality during port initialisation. Signed-off-by: Amit Shah --- hw/virtio-serial-bus.c |6 +++--- 1 files changed, 3 insertions(+), 3 deleti

[Qemu-devel] [PATCH 1/3] virtio-console: Check if chardev backends available before calling into them

2011-12-20 Thread Amit Shah
For the callback functions invoked by the virtio-serial-bus code, check if we have chardev backends registered before we call into the chardev functions. Signed-off-by: Amit Shah --- hw/virtio-console.c | 11 +++ 1 files changed, 11 insertions(+), 0 deletions(-) diff --git a/hw/virtio

Re: [Qemu-devel] [PATCH v2] linux-user: Fix 32-on-64 mmap for x86_64

2011-12-20 Thread Alexander Graf
On 21.12.2011, at 03:43, 陳韋任 wrote: This patch is actually wrong and we should rather make proper -R values the default instead of relying on MAP_32BIT. >>> >>> I don't understand what "make proper -R values" mean

Re: [Qemu-devel] [RFC] Device isolation infrastructure v2

2011-12-20 Thread Aaron Fabbri
On 12/20/11 8:30 PM, "Alex Williamson" wrote: > On Wed, 2011-12-21 at 14:32 +1100, David Gibson wrote: >> On Mon, Dec 19, 2011 at 04:41:56PM +0100, Joerg Roedel wrote: >>> On Mon, Dec 19, 2011 at 11:11:25AM +1100, David Gibson wrote: >>> >>> Well, the iommu-api was designed for amd-vi and vt

Re: [Qemu-devel] [RFC] Device isolation infrastructure v2

2011-12-20 Thread Alex Williamson
On Wed, 2011-12-21 at 14:32 +1100, David Gibson wrote: > On Mon, Dec 19, 2011 at 04:41:56PM +0100, Joerg Roedel wrote: > > On Mon, Dec 19, 2011 at 11:11:25AM +1100, David Gibson wrote: > > > Well.. that's not where it is in Alex's code either. The iommu layer > > > (to the extent that there is suc

Re: [Qemu-devel] [PATCH 00/10] hw/sd.c: Fix various status related bugs

2011-12-20 Thread andrzej zaborowski
Hi Peter, On 18 December 2011 21:37, Peter Maydell wrote: > This patchset fixes a number of bugs in our SD card emulation, mostly > in the status bit handling. In particular, it fixes the issues raised > in https://bugs.launchpad.net/qemu/+bug/597641 . The others are things > I noticed while I wa

Re: [Qemu-devel] [RFC] Device isolation infrastructure v2

2011-12-20 Thread David Gibson
On Mon, Dec 19, 2011 at 04:41:56PM +0100, Joerg Roedel wrote: > On Mon, Dec 19, 2011 at 11:11:25AM +1100, David Gibson wrote: > > Well.. that's not where it is in Alex's code either. The iommu layer > > (to the extent that there is such a "layer") supplies the group info, > > but the group managem

[Qemu-devel] problem with 'xm save' in xen-3.4

2011-12-20 Thread ¤終於aware
Hi, the problem is as follows:(And then, others can't login mostly because of the os' busing and you can't do anything else.) [**@xentest ::三 12月 21::~]$ sudo xm list NameID Mem VCPUs State Time(s) Domain-0

Re: [Qemu-devel] [PATCH v2] linux-user: Fix 32-on-64 mmap for x86_64

2011-12-20 Thread 陳韋任
> >> This patch is actually wrong and we should rather make proper -R values > >> the default instead of relying on MAP_32BIT. > > > > I don't understand what "make proper -R values" means. Where/how we can > > apply > > "-

Re: [Qemu-devel] [RFC][PATCH 8/8 v3] introduce a new monitor command 'dump' to dump guest's memory

2011-12-20 Thread andrzej zaborowski
On 20 December 2011 17:25, Eric Blake wrote: > On 12/20/2011 02:15 AM, Wen Congyang wrote: >> Signed-off-by: Wen Congyang >> --- >>  Makefile.target |    8 +- >>  dump.c          |  452 >> +++ >>  dump.h          |    4 + >>  hmp-commands.hx |

Re: [Qemu-devel] [PATCH 5/6] hw/omap1.c: Separate clkm from omap_mpu_state

2011-12-20 Thread andrzej zaborowski
On 20 December 2011 19:11, Peter Maydell wrote: > From: Juha Riihimäki > > Signed-off-by: Juha Riihimäki > [Riku Voipio: Fixes and restructuring patchset] > Signed-off-by: Riku Voipio > [Peter Maydell: More fixes and cleanups for upstream submission] > Signed-off-by:  Peter Maydell > --- >  hw

Re: [Qemu-devel] [RFC][PATCH 8/8 v3] introduce a new monitor command 'dump' to dump guest's memory

2011-12-20 Thread Wen Congyang
At 12/21/2011 12:25 AM, Eric Blake Write: > On 12/20/2011 02:15 AM, Wen Congyang wrote: >> Signed-off-by: Wen Congyang >> --- >> Makefile.target |8 +- >> dump.c | 452 >> +++ >> dump.h |4 + >> hmp-commands.hx | 16

Re: [Qemu-devel] [Qemu-ppc] [PATCH 2/8] monitor: add ability to dump SLB entries

2011-12-20 Thread David Gibson
On Tue, Dec 20, 2011 at 04:28:47PM +0100, Alexander Graf wrote: > > On 13.12.2011, at 05:24, David Gibson wrote: > > > From: Nishanth Aravamudan > > > > When run with a PPC Book3S (server) CPU Currently 'info tlb' in the > > qemu monitor reports "dump_mmu: unimplemented". However, during > > b

Re: [Qemu-devel] [Qemu-ppc] [0/8] Assorted pseries updates

2011-12-20 Thread David Gibson
On Tue, Dec 20, 2011 at 04:41:25PM +0100, Alexander Graf wrote: > > On 13.12.2011, at 05:24, David Gibson wrote: > > > Now that qemu 1.0 is out there, here are a number of cleanups and > > minor bugfixes for the pseries machine to queue up for post 1.0. Many > > of these fix problems with non-de

[Qemu-devel] [Bug 902148] Re: qemu-img V1.0 hangs on creating Image (0.15.1 runs)

2011-12-20 Thread Michael Niehren
Hi Stefan, after upgrading GCC to V4.5.3 everything work's perfect. thanks for your help, Michael ** Changed in: qemu Status: New => Fix Released -- You received this bug notification because you are a member of qemu- devel-ml, which is subscribed to QEMU. https://bugs.launchpad.net/

Re: [Qemu-devel] [PATCH v5 06/16] apic: Introduce backend/frontend infrastructure for KVM reuse

2011-12-20 Thread Jan Kiszka
On 2011-12-21 00:41, Anthony Liguori wrote: > On 12/20/2011 04:20 PM, Jan Kiszka wrote: >> On 2011-12-20 22:55, Anthony Liguori wrote: >>> The components of the path are the *property* names of the parent >>> device. In the case of the local APIC, you would have something like: >>> >>> /cpus/cpu0/

Re: [Qemu-devel] [PATCH v5 06/16] apic: Introduce backend/frontend infrastructure for KVM reuse

2011-12-20 Thread Anthony Liguori
On 12/20/2011 04:20 PM, Jan Kiszka wrote: On 2011-12-20 22:55, Anthony Liguori wrote: The components of the path are the *property* names of the parent device. In the case of the local APIC, you would have something like: /cpus/cpu0/apic /cpus/cpu1/apic Which would be links on the composition

Re: [Qemu-devel] [PATCH v5 06/16] apic: Introduce backend/frontend infrastructure for KVM reuse

2011-12-20 Thread Jan Kiszka
On 2011-12-20 22:55, Anthony Liguori wrote: > On 12/20/2011 03:45 PM, Jan Kiszka wrote: >> On 2011-12-20 22:38, Anthony Liguori wrote: I'm not talking about migration here, I'm talking about qtree addressability. That is orthogonal, at least right now. >>> >>> qtree is not an ABI. The ou

Re: [Qemu-devel] [PATCH v2 0/2] net: fix some problems with dump backend

2011-12-20 Thread Anthony Liguori
On 11/30/2011 02:35 PM, Hervé Poussineau wrote: This small patchset fixes some problems I've found while using the dump backend. At least first patch may be considered for 1.0. Applied all. Thanks. Regards, Anthony Liguori Changes v1->v2: - Update patches descriptions Hervé Poussineau (2

Re: [Qemu-devel] [PATCH] hw/sysbus.c: Remove unnecessary conditionals

2011-12-20 Thread Anthony Liguori
On 12/19/2011 02:33 PM, Peter Maydell wrote: Now that all sysbus MMIO regions are MemoryRegions, mmio[n].memory is never NULL, and we can remove some unnecessary conditionals. Signed-off-by: Peter Maydell Applied. Thanks. Regards, Anthony Liguori --- A minor tidyup following Benoît's now-

Re: [Qemu-devel] [PATCH v3 00/11] isa: preliminary work for multiple buses

2011-12-20 Thread Anthony Liguori
On 12/15/2011 03:09 PM, Hervé Poussineau wrote: Current patches are a rework of my patches already available at [1]. They don't provide full support for multiple ISA buses (yet), but add a ISABus or ISADevice argument to all ISA functions. They are mostly mechanically touching every instanciation

Re: [Qemu-devel] [PATCH] g_thread_init users: don't call it if glib >= 2.31

2011-12-20 Thread Anthony Liguori
On 12/20/2011 05:41 AM, Alon Levy wrote: since commit f9b29ca03 included in release 2.31 (docs below say 2.32 but that is not correct) and onwards g_thread_init is deprecated and calling it is not required: http://developer.gnome.org/glib/unstable/glib-Deprecated-Thread-APIs.html#g-thread-ini

Re: [Qemu-devel] [PATCH] i440fx: remove piix3 field

2011-12-20 Thread Anthony Liguori
On 12/20/2011 07:10 AM, Paolo Bonzini wrote: Signed-off-by: Paolo Bonzini Applied. Thanks. Regards, Anthony Liguori --- hw/piix_pci.c |3 --- 1 files changed, 0 insertions(+), 3 deletions(-) diff --git a/hw/piix_pci.c b/hw/piix_pci.c index 43c85aa..e188c7a 100644 --- a/hw/piix_pci.

Re: [Qemu-devel] [PATCH v5 06/16] apic: Introduce backend/frontend infrastructure for KVM reuse

2011-12-20 Thread Anthony Liguori
On 12/20/2011 03:45 PM, Jan Kiszka wrote: On 2011-12-20 22:38, Anthony Liguori wrote: I'm not talking about migration here, I'm talking about qtree addressability. That is orthogonal, at least right now. qtree is not an ABI. The output of info qtree can (and will) change over time. That's n

Re: [Qemu-devel] [PATCH v5 06/16] apic: Introduce backend/frontend infrastructure for KVM reuse

2011-12-20 Thread Jan Kiszka
On 2011-12-20 22:38, Anthony Liguori wrote: > On 12/20/2011 03:23 PM, Jan Kiszka wrote: >> On 2011-12-20 20:14, Anthony Liguori wrote: >>> On 12/20/2011 11:02 AM, Jan Kiszka wrote: On 2011-12-20 15:07, Anthony Liguori wrote: > On 12/20/2011 07:57 AM, Paolo Bonzini wrote: >> On 12/20/20

Re: [Qemu-devel] [Bug 902148] Re: qemu-img V1.0 hangs on creating Image (0.15.1 runs)

2011-12-20 Thread Stefan Hajnoczi
On Tue, Dec 20, 2011 at 4:49 PM, Stefan Hajnoczi wrote: > On Tue, Dec 20, 2011 at 3:25 PM, Michael Niehren > <902...@bugs.launchpad.net> wrote: >> here we are. Attached the tgz. I am using no spezial distribution, it's a >> self compiled LFS with >> gcc V4.5.1 >> >> Is there a different compiler-

Re: [Qemu-devel] [PATCH v5 06/16] apic: Introduce backend/frontend infrastructure for KVM reuse

2011-12-20 Thread Anthony Liguori
On 12/20/2011 03:23 PM, Jan Kiszka wrote: On 2011-12-20 20:14, Anthony Liguori wrote: On 12/20/2011 11:02 AM, Jan Kiszka wrote: On 2011-12-20 15:07, Anthony Liguori wrote: On 12/20/2011 07:57 AM, Paolo Bonzini wrote: On 12/20/2011 02:54 PM, Anthony Liguori wrote: In QOM parlance Jan implemen

Re: [Qemu-devel] [PATCH 4/9] arm: add dummy gic security registers

2011-12-20 Thread Peter Maydell
On 20 December 2011 21:06, Mark Langsdorf wrote: > On 12/20/2011 01:58 PM, Peter Maydell wrote: >> On 20 December 2011 19:11, Mark Langsdorf  wrote: >>> From: Rob Herring >>> >>> Signed-off-by: Rob Herring >>> Signed-off-by: Mark Langsdorf >>> --- >>>   hw/arm_gic.c |   10 -- >>>   1 files

Re: [Qemu-devel] [PATCH v5 06/16] apic: Introduce backend/frontend infrastructure for KVM reuse

2011-12-20 Thread Jan Kiszka
On 2011-12-20 20:14, Anthony Liguori wrote: > On 12/20/2011 11:02 AM, Jan Kiszka wrote: >> On 2011-12-20 15:07, Anthony Liguori wrote: >>> On 12/20/2011 07:57 AM, Paolo Bonzini wrote: On 12/20/2011 02:54 PM, Anthony Liguori wrote: >> In QOM parlance Jan implemented this: >> >> abst

[Qemu-devel] [Bug 907063] Re: Error reading VMDK4 with footer instead of header

2011-12-20 Thread bbgordonn
** Attachment added: "qemu-1.0-vmdk4-headers.patch" https://bugs.launchpad.net/bugs/907063/+attachment/2641812/+files/qemu-1.0-vmdk4-headers.patch -- You received this bug notification because you are a member of qemu- devel-ml, which is subscribed to QEMU. https://bugs.launchpad.net/bugs/907

[Qemu-devel] [Bug 907063] [NEW] Error reading VMDK4 with footer instead of header

2011-12-20 Thread bbgordonn
Public bug reported: VMDK4 files can have a footer in the last block, which is the same datastructure as the header but must be used instead if present. In this case, the gd_offset in the usual header at the beginning of the file is the special flag -1 (VMDK 1.1 spec, page 17, "GD_AT_END "). qe

Re: [Qemu-devel] [PATCH 4/9] arm: add dummy gic security registers

2011-12-20 Thread Mark Langsdorf
On 12/20/2011 01:58 PM, Peter Maydell wrote: > On 20 December 2011 19:11, Mark Langsdorf wrote: >> From: Rob Herring >> >> Signed-off-by: Rob Herring >> Signed-off-by: Mark Langsdorf >> --- >> hw/arm_gic.c | 10 -- >> 1 files changed, 8 insertions(+), 2 deletions(-) >> >> diff --git a

Re: [Qemu-devel] [PATCH v2 01/10] qapi: add Visitor interfaces for uint*_t and int*_t

2011-12-20 Thread Anthony Liguori
On 12/20/2011 08:30 AM, Paolo Bonzini wrote: On 12/20/2011 02:50 PM, Anthony Liguori wrote: For saving, you would adapt your visitor-based vmstate "put" routines so that they put things in a dictionary with no regard for integer types (a bit ugly for uint64, but perfectly fine for everything els

Re: [Qemu-devel] [PATCH 9/9] arm: Set frequencies for arm_timer

2011-12-20 Thread Peter Maydell
On 20 December 2011 19:15, Mark Langsdorf wrote: > Use qdev properties to allow board modelers to set the frequencies > for the sp804 timer. Each of the sp804's timers can have an > individual frequency or they share the frequency by default. > The timers default to 1MHz. Is it really worth havin

Re: [Qemu-devel] [ANNOUNCE] qemu-test: a set of tests scripts for QEMU

2011-12-20 Thread Lucas Meneghel Rodrigues
On 12/19/2011 03:55 PM, Anthony Liguori wrote: On 12/19/2011 11:39 AM, Avi Kivity wrote: On 12/19/2011 07:13 PM, Anthony Liguori wrote: Hi, I've published a set of tests I wrote over the weekend on qemu.org. My motivations were 1) to prevent regressions like the libguestfs one and 2) to have a

Re: [Qemu-devel] [PATCH 8/9] Add xgmac ethernet model

2011-12-20 Thread Peter Maydell
On 20 December 2011 19:15, Mark Langsdorf wrote: > This adds very basic support for xgmac block. Missing things include: > > - statistics counters > - WoL support > - rx checksum offload > - chained descriptors (only linear descriptor ring) > - broadcast and multicast handling So, er, what's an x

Re: [Qemu-devel] [PATCH v2 01/10] qapi: add Visitor interfaces for uint*_t and int*_t

2011-12-20 Thread Michael Roth
On 12/20/2011 08:30 AM, Paolo Bonzini wrote: On 12/20/2011 02:50 PM, Anthony Liguori wrote: For saving, you would adapt your visitor-based vmstate "put" routines so that they put things in a dictionary with no regard for integer types (a bit ugly for uint64, but perfectly fine for everything els

Re: [Qemu-devel] [PATCH 7/9] add L2x0/PL310 cache controller device

2011-12-20 Thread Peter Maydell
On 20 December 2011 19:13, Mark Langsdorf wrote: > From: Rob Herring > > This is just a dummy device for ARM L2 cache controllers. > > Signed-off-by: Rob Herring > Signed-off-by: Mark Langsdorf This is missing save/load support. > --- >  Makefile.target |    2 +- >  hw/arm_l2x0.c   |  109 > +

Re: [Qemu-devel] [PATCH 4/9] arm: add dummy gic security registers

2011-12-20 Thread Peter Maydell
On 20 December 2011 19:11, Mark Langsdorf wrote: > From: Rob Herring > > Signed-off-by: Rob Herring > Signed-off-by: Mark Langsdorf > --- >  hw/arm_gic.c |   10 -- >  1 files changed, 8 insertions(+), 2 deletions(-) > > diff --git a/hw/arm_gic.c b/hw/arm_gic.c > index 9b52119..5974c2f 1

Re: [Qemu-devel] [PATCH 3/9] arm: add missing v7 cp15 registers

2011-12-20 Thread Peter Maydell
On 20 December 2011 19:10, Mark Langsdorf wrote: > From: Rob Herring > > Signed-off-by: Rob Herring > Signed-off-by: Mark Langsdorf > > Conflicts: > >        target-arm/cpu.h >        target-arm/helper.c Commit messages shouldn't have Conflicts notes in them. You could also use more detail her

Re: [Qemu-devel] [PATCH v2] multiboot: Fix bss segment support

2011-12-20 Thread Alexander Graf
On 20.12.2011, at 19:49, Göran Weinholt wrote: > Alexander Graf writes: > >> Yes, this patch makes things work again :). Thanks a lot! >> >> The only thing I could nitpick on would be the coding style - checkpatch.pl >> complains :). Could you please resend with braces? >> Justin, Please al

Re: [Qemu-devel] [PATCH 2/9] Add trustzone support.

2011-12-20 Thread Peter Maydell
On 20 December 2011 19:10, Mark Langsdorf wrote: > From: juha.riihim...@nokia.com > > Conflicts: > >        target-arm/cpu.h >        target-arm/helper.c > > Signed-off-by: Mark Langsdorf All sorts of problems here, I'm afraid. * you can't submit a patch written by somebody else and without

Re: [Qemu-devel] [PATCH 1/9] arm: add missing scu registers

2011-12-20 Thread Peter Maydell
On 20 December 2011 19:10, Mark Langsdorf wrote: > From: Rob Herring > > Add power control and non-secure access ctrl registers > > Signed-off-by: Rob Herring > Signed-off-by: Mark Langsdorf > --- >  hw/a9mpcore.c |   26 -- >  1 files changed, 24 insertions(+), 2 deletio

[Qemu-devel] [PATCH 1/9] arm: add missing scu registers

2011-12-20 Thread Mark Langsdorf
From: Rob Herring Add power control and non-secure access ctrl registers Signed-off-by: Rob Herring Signed-off-by: Mark Langsdorf --- hw/a9mpcore.c | 26 -- 1 files changed, 24 insertions(+), 2 deletions(-) diff --git a/hw/a9mpcore.c b/hw/a9mpcore.c index cd2985f..

[Qemu-devel] [PATCH 3/9] arm: add missing v7 cp15 registers

2011-12-20 Thread Mark Langsdorf
From: Rob Herring Signed-off-by: Rob Herring Signed-off-by: Mark Langsdorf Conflicts: target-arm/cpu.h target-arm/helper.c --- target-arm/cpu.h|1 + target-arm/helper.c |7 +++ 2 files changed, 8 insertions(+), 0 deletions(-) diff --git a/target-arm/cpu.h b/

[Qemu-devel] [PATCH 9/9] arm: Set frequencies for arm_timer

2011-12-20 Thread Mark Langsdorf
Use qdev properties to allow board modelers to set the frequencies for the sp804 timer. Each of the sp804's timers can have an individual frequency or they share the frequency by default. The timers default to 1MHz. Signed-off-by: Mark Langsdorf --- hw/arm_timer.c | 36 +++

[Qemu-devel] [PATCH 8/9] Add xgmac ethernet model

2011-12-20 Thread Mark Langsdorf
This adds very basic support for xgmac block. Missing things include: - statistics counters - WoL support - rx checksum offload - chained descriptors (only linear descriptor ring) - broadcast and multicast handling Signed-off-by: Rob Herring Signed-off-by: Mark Langsdorf --- Makefile.target |

Re: [Qemu-devel] [PATCH v5 06/16] apic: Introduce backend/frontend infrastructure for KVM reuse

2011-12-20 Thread Anthony Liguori
On 12/20/2011 11:02 AM, Jan Kiszka wrote: On 2011-12-20 15:07, Anthony Liguori wrote: On 12/20/2011 07:57 AM, Paolo Bonzini wrote: On 12/20/2011 02:54 PM, Anthony Liguori wrote: In QOM parlance Jan implemented this: abstract class Object abstract class Device class APIC: { backend: link } ab

[Qemu-devel] [PATCH 7/9] add L2x0/PL310 cache controller device

2011-12-20 Thread Mark Langsdorf
From: Rob Herring This is just a dummy device for ARM L2 cache controllers. Signed-off-by: Rob Herring Signed-off-by: Mark Langsdorf --- Makefile.target |2 +- hw/arm_l2x0.c | 109 +++ 2 files changed, 110 insertions(+), 1 deletion

[Qemu-devel] [PATCH 6/9] ahci: add support for non-PCI based controllers

2011-12-20 Thread Mark Langsdorf
From: Rob Herring Add support for ahci on sysbus. Signed-off-by: Rob Herring Signed-off-by: Mark Langsdorf --- hw/ide/ahci.c | 35 +++ 1 files changed, 35 insertions(+), 0 deletions(-) diff --git a/hw/ide/ahci.c b/hw/ide/ahci.c index 135d0ee..8b56509 100644

[Qemu-devel] [PATCH 5/9] ahci: convert ahci_reset to use AHCIState

2011-12-20 Thread Mark Langsdorf
From: Rob Herring Use AHCIState instead of AHCIPCIState so the function can be used for non-PCI based AHCI controllers. Signed-off-by: Rob Herring Signed-off-by: Mark Langsdorf --- hw/ide/ahci.c | 14 +++--- hw/ide/ich.c |4 ++-- 2 files changed, 9 insertions(+), 9 deletions(-

[Qemu-devel] [PATCH 4/9] arm: add dummy gic security registers

2011-12-20 Thread Mark Langsdorf
From: Rob Herring Signed-off-by: Rob Herring Signed-off-by: Mark Langsdorf --- hw/arm_gic.c | 10 -- 1 files changed, 8 insertions(+), 2 deletions(-) diff --git a/hw/arm_gic.c b/hw/arm_gic.c index 9b52119..5974c2f 100644 --- a/hw/arm_gic.c +++ b/hw/arm_gic.c @@ -274,7 +274,7 @@ sta

[Qemu-devel] [PATCH 2/9] Add trustzone support.

2011-12-20 Thread Mark Langsdorf
From: juha.riihim...@nokia.com Conflicts: target-arm/cpu.h target-arm/helper.c Signed-off-by: Mark Langsdorf --- target-arm/cpu.h |4 + target-arm/helper.c | 556 +- target-arm/machine.c |6 + 3 files changed, 335

[Qemu-devel] [PATCH [0/9] various ARM fixes

2011-12-20 Thread Mark Langsdorf
This is a collection of patches that make minor fixes to the models for various ARM devices. --Mark Langsdorf Calxeda, Inc.

Re: [Qemu-devel] [PATCH v2] multiboot: Fix bss segment support

2011-12-20 Thread Göran Weinholt
Alexander Graf writes: > Yes, this patch makes things work again :). Thanks a lot! > > The only thing I could nitpick on would be the coding style - checkpatch.pl > complains :). Could you please resend with braces? > Justin, Please also queue this for 1.0-stable when it comes in its final form.

[Qemu-devel] [PATCH 2/6] hw/omap1.c: Separate PWL from omap_mpu_state

2011-12-20 Thread Peter Maydell
From: Juha Riihimäki Signed-off-by: Juha Riihimäki [Riku Voipio: Fixes and restructuring patchset] Signed-off-by: Riku Voipio [Peter Maydell: More fixes and cleanups for upstream submission] Signed-off-by: Peter Maydell --- hw/omap.h |8 +--- hw/omap1.c | 60 ++

[Qemu-devel] [PATCH 4/6] hw/omap1.c: Separate dpll_ctl from omap_mpu_state

2011-12-20 Thread Peter Maydell
From: Juha Riihimäki Signed-off-by: Juha Riihimäki [Riku Voipio: Fixes and restructuring patchset] Signed-off-by: Riku Voipio [Peter Maydell: More fixes and cleanups for upstream submission] Signed-off-by: Peter Maydell --- hw/omap.h |6 +- hw/omap1.c | 28 ++--

[Qemu-devel] [PATCH 5/6] hw/omap1.c: Separate clkm from omap_mpu_state

2011-12-20 Thread Peter Maydell
From: Juha Riihimäki Signed-off-by: Juha Riihimäki [Riku Voipio: Fixes and restructuring patchset] Signed-off-by: Riku Voipio [Peter Maydell: More fixes and cleanups for upstream submission] Signed-off-by: Peter Maydell --- hw/omap.h | 16 +--- hw/omap1.c | 127 ++

[Qemu-devel] [PATCH 6/6] hw/omap1.c: Drop unused includes

2011-12-20 Thread Peter Maydell
Drop includes of qemu-timer.h, qemu-char.h and pc.h as they are no longer needed. Signed-off-by: Peter Maydell --- hw/omap1.c |4 1 files changed, 0 insertions(+), 4 deletions(-) diff --git a/hw/omap1.c b/hw/omap1.c index 5fc67e9..f89dca5 100644 --- a/hw/omap1.c +++ b/hw/omap1.c @@ -20

[Qemu-devel] [PATCH 1/6] hw/omap1.c: omap_mpuio_init() need not be public

2011-12-20 Thread Peter Maydell
omap_mpuio_init() is only used and defined in omap1.c, so make it static. Signed-off-by: Peter Maydell --- hw/omap.h |4 hw/omap1.c |2 +- 2 files changed, 1 insertions(+), 5 deletions(-) diff --git a/hw/omap.h b/hw/omap.h index 42eb361..5fe33db 100644 --- a/hw/omap.h +++ b/hw/oma

[Qemu-devel] [PATCH 3/6] hw/omap1.c: Separate PWT from omap_mpu_state

2011-12-20 Thread Peter Maydell
From: Juha Riihimäki Signed-off-by: Juha Riihimäki [Riku Voipio: Fixes and restructuring patchset] Signed-off-by: Riku Voipio [Peter Maydell: More fixes and cleanups for upstream submission] Signed-off-by: Peter Maydell --- hw/omap.h | 10 +- hw/omap1.c | 57

Re: [Qemu-devel] OEM Windows in Qemu

2011-12-20 Thread inbox
Sorry, I don't normally use this email and didn't realize it was set to html. I've been trying for several days now to get my OEM copy of Windows XP to pre-activate properly in Qemu-kvm. I saw the instructions for patching the seabios here: http://lists.gnu.org/archive/html/qemu-devel/2011-03/msg

[Qemu-devel] [PATCH 19/27] scsi: convert to QEMU Object Model

2011-12-20 Thread Anthony Liguori
Signed-off-by: Anthony Liguori --- hw/scsi-bus.c | 95 +++- hw/scsi-disk.c| 159 - hw/scsi-generic.c | 29 ++ hw/scsi.h | 31 ++ 4 files changed, 201 insertions(+), 113 deletions

[Qemu-devel] [PATCH 14/27] ssi: convert to QEMU Object Model

2011-12-20 Thread Anthony Liguori
Signed-off-by: Anthony Liguori --- hw/ads7846.c | 17 - hw/max111x.c | 34 -- hw/spitz.c | 39 +++ hw/ssd0323.c | 17 - hw/ssi-sd.c| 17 - hw/ssi.c |

[Qemu-devel] [PATCH 22/27] not-for-upstream: virtio-serial: stub out a strange hack

2011-12-20 Thread Anthony Liguori
You shouldn't override class methods in an object initialization function. Whatever the code is trying to achieve here, it needs to be rethought and done in a better way. Amit, if you can give me some insight into what's going on here, I can take a look at refactoring. Cc: Amit Shah --- hw/virt

[Qemu-devel] [PATCH 12/27] usb: convert to QEMU Object Model

2011-12-20 Thread Anthony Liguori
Signed-off-by: Anthony Liguori --- hw/usb-bt.c | 33 ++ hw/usb-bus.c| 179 +++ hw/usb-ccid.c | 38 +++- hw/usb-desc.c | 18 +++--- hw/usb-hid.c| 108 -- hw/usb-hub.c|

[Qemu-devel] [PATCH 0/6] omap1: Separate omap1 subdevices from omap_mpu_state

2011-12-20 Thread Peter Maydell
This patchset is some minor cleanup which pulls out the data fields of omap_mpu_state which are really specific to the omap1 into their own structures in omap1.c. (At some point they can then be converted fully into qdev devices I guess.) There's also a couple of trivial cleanups from me in there.

[Qemu-devel] [PATCH 15/27] i2c: rename i2c_slave -> I2CSlave

2011-12-20 Thread Anthony Liguori
Signed-off-by: Anthony Liguori --- hw/ds1338.c | 10 +- hw/hw.h |4 ++-- hw/i2c.c | 30 +++--- hw/i2c.h | 18 ++ hw/lm832x.c | 10 +- hw/max7310.c | 10 +- hw/pxa2xx.c | 10 +- hw/smbus.

[Qemu-devel] [PATCH 17/27] hda-codec: convert to QEMU Object Model

2011-12-20 Thread Anthony Liguori
Signed-off-by: Anthony Liguori --- hw/hda-audio.c | 58 ++- hw/intel-hda.c | 31 + hw/intel-hda.h | 26 3 files changed, 71 insertions(+), 44 deletions(-) diff --git a/hw/hda-audio.c b/

[Qemu-devel] [PATCH 08/27] qdev: add class_init to DeviceInfo

2011-12-20 Thread Anthony Liguori
Since we are still dynamically creating TypeInfo, we need to chain the class_init function in order to be able to make use of it within subclasses of TYPE_DEVICE. This will disappear once we register TypeInfos directly. Signed-off-by: Anthony Liguori --- hw/qdev.c |4 hw/qdev.h |5

[Qemu-devel] [PATCH 03/27] qdev: move qdev->info to class

2011-12-20 Thread Anthony Liguori
Right now, DeviceInfo acts as the class for qdev. In order to switch to a proper ObjectClass derivative, we need to ween all of the callers off of interacting directly with the info pointer. Signed-off-by: Anthony Liguori --- hw/acpi_piix4.c|4 +- hw/cirrus_vga.c|2 +- h

[Qemu-devel] [PATCH 07/27] qdev: add a interface to register subclasses

2011-12-20 Thread Anthony Liguori
In order to introduce inheritance while still using the qdev registration interfaces, we need to be able to use a parent other than TYPE_DEVICE. Add a new interface that allows this. Signed-off-by: Anthony Liguori --- hw/qdev.c |9 +++-- hw/qdev.h |1 + 2 files changed, 8 insertions

[Qemu-devel] [PATCH 09/27] qdev: prepare source tree for code conversion

2011-12-20 Thread Anthony Liguori
These are various small stylistic changes which help make things more consistent such that the automated conversion script can be simpler. It's not necessary to agree or disagree with these style changes because all of this code is going to be rewritten by the patch monkey script anyway. Signed-o

[Qemu-devel] [PATCH 16/27] i2c: smbus: convert to QEMU Object Model

2011-12-20 Thread Anthony Liguori
This converts two types because smbus is implemented as a subclass of i2c. It's extremely difficult to convert these two independently. Signed-off-by: Anthony Liguori --- hw/ds1338.c | 21 + hw/i2c.c | 83 +--- hw/i2

[Qemu-devel] [PATCH 02/27] qdev: integrate with QEMU Object Model

2011-12-20 Thread Anthony Liguori
This is a very shallow integration. We register a TYPE_DEVICE but only use QOM as basically a memory allocator. This will make all devices show up as QOM objects but they will all carry the TYPE_DEVICE. Signed-off-by: Anthony Liguori --- hw/qdev.c | 27 +-- hw/qdev.h

[Qemu-devel] [PATCH 13/27] ccid: convert to QEMU Object Model

2011-12-20 Thread Anthony Liguori
Signed-off-by: Anthony Liguori --- hw/ccid-card-emulated.c | 27 ++-- hw/ccid-card-passthru.c | 27 ++-- hw/ccid.h | 28 +++-- hw/usb-ccid.c | 76 +++ 4 files changed, 109 insertions(+)

[Qemu-devel] [PATCH 20/27] not-for-upstream: spapr: break default console

2011-12-20 Thread Anthony Liguori
I think David has an idea about how to fix this properly. Cc: David Gibson --- hw/spapr_vty.c |2 ++ 1 files changed, 2 insertions(+), 0 deletions(-) diff --git a/hw/spapr_vty.c b/hw/spapr_vty.c index 2849961..29cb006 100644 --- a/hw/spapr_vty.c +++ b/hw/spapr_vty.c @@ -154,6 +154,7 @@ stat

[Qemu-devel] [PATCH 04/27] qdev: don't access name through info

2011-12-20 Thread Anthony Liguori
We already have a QOM interface for this so let's use it. Signed-off-by: Anthony Liguori --- hw/e1000.c |2 +- hw/eepro100.c |2 +- hw/etraxfs_eth.c|2 +- hw/hda-audio.c |2 +- hw/intel-hda.c |2 +- hw/lan9118.c|

[Qemu-devel] [PATCH 24/27] grackle: remove broken pci device

2011-12-20 Thread Anthony Liguori
I have no idea what's going on here, but this is broken and cannot possibly work because: 1) It's qdev name conflicts with a device that sits on SysBus 2) The PCI constructor expects a SysBus device... but's it's a PCIDevice If you do qdev_create("grackle"), the code expects to get the SysBus

[Qemu-devel] [PATCH 10/27] not-for-upstream: disable non-qdev pci devices

2011-12-20 Thread Anthony Liguori
Obviously, this isn't an acceptable approach. We need to convert these devices to qdev. --- hw/macio.c |5 + hw/openpic.c|5 + hw/ppc4xx_pci.c |5 + hw/prep_pci.c |5 + 4 files changed, 20 insertions(+), 0 deletions(-) diff --git a/hw/macio.c b/hw/macio

[Qemu-devel] [PATCH 25/27] unin_pci: remove phantom qdev devices in unin_pci

2011-12-20 Thread Anthony Liguori
Same problem as with grackle. This code can't possibly work. Signed-off-by: Anthony Liguori --- hw/unin_pci.c | 77 - 1 files changed, 0 insertions(+), 77 deletions(-) diff --git a/hw/unin_pci.c b/hw/unin_pci.c index 14d9914..b3365fe 10

[Qemu-devel] [PATCH 11/27] isa: convert to QEMU Object Model

2011-12-20 Thread Anthony Liguori
Signed-off-by: Anthony Liguori --- hw/applesmc.c| 18 -- hw/cs4231a.c | 20 +--- hw/debugcon.c| 16 +++- hw/fdc.c | 24 +++- hw/gus.c | 20 +--- hw/i8254.c | 22 ++

[Qemu-devel] [PATCH 18/27] ide: convert to QEMU Object Model

2011-12-20 Thread Anthony Liguori
Signed-off-by: Anthony Liguori --- hw/ide/internal.h | 20 ++--- hw/ide/qdev.c | 111 + 2 files changed, 82 insertions(+), 49 deletions(-) diff --git a/hw/ide/internal.h b/hw/ide/internal.h index 00b28df..c808a0d 100644 --- a/hw/ide/

[Qemu-devel] [PATCH 21/27] spapr: convert to QEMU Object Model

2011-12-20 Thread Anthony Liguori
Signed-off-by: Anthony Liguori --- hw/spapr_llan.c | 37 +++-- hw/spapr_vio.c | 47 --- hw/spapr_vio.h | 35 ++- hw/spapr_vscsi.c | 35 ++- hw/s

[Qemu-devel] [PATCH 23/27] virtio-serial: convert to QEMU Object Model

2011-12-20 Thread Anthony Liguori
Signed-off-by: Anthony Liguori --- hw/virtio-console.c| 67 +--- hw/virtio-serial-bus.c | 70 + hw/virtio-serial.h | 81 ++-- 3 files changed, 128 insertions(+), 9

Re: [Qemu-devel] [PATCH v6 4/4] Add support for net bridge

2011-12-20 Thread Corey Bryant
On 12/19/2011 06:15 PM, Anthony Liguori wrote: On 12/19/2011 04:55 PM, Corey Bryant wrote: diff --git a/net.c b/net.c index f7bebf8..9296224 100644 --- a/net.c +++ b/net.c @@ -952,6 +952,14 @@ static const struct { .type = QEMU_OPT_STRING, .help = "script to shut down the interface", }, { +

[Qemu-devel] [PATCH] Strip trailing '\n' from error_report()'s first argument (again)

2011-12-20 Thread Markus Armbruster
Commit 6daf194d got rid of them, but Hans and Gerd added some more lately. Tracked down with this Coccinelle semantic patch: @r@ expression fmt; position p; @@ error_report(fmt, ...)@p @script:python@ fmt << r.fmt; p << r.p; @@ if "\\n" in str(fmt): print "%s:%s:%s:%s" % (

Re: [Qemu-devel] [PATCH v5 06/16] apic: Introduce backend/frontend infrastructure for KVM reuse

2011-12-20 Thread Jan Kiszka
On 2011-12-20 15:07, Anthony Liguori wrote: > On 12/20/2011 07:57 AM, Paolo Bonzini wrote: >> On 12/20/2011 02:54 PM, Anthony Liguori wrote: In QOM parlance Jan implemented this: abstract class Object abstract class Device class APIC: { backend: link } abstract class A

[Qemu-devel] [PATCH 01/27] qom: add the base Object class

2011-12-20 Thread Anthony Liguori
This class provides the main building block for QEMU Object Model and is extensively documented in the header file. It is largely inspired by GObject. Signed-off-by: Anthony Liguori --- Makefile.objs |2 + hw/object.c | 469 + hw/ob

[Qemu-devel] [Bug 902148] Re: qemu-img V1.0 hangs on creating Image (0.15.1 runs)

2011-12-20 Thread Stefan Hajnoczi
** Bug watch added: GCC Bugzilla #45967 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=45967 -- You received this bug notification because you are a member of qemu- devel-ml, which is subscribed to QEMU. https://bugs.launchpad.net/bugs/902148 Title: qemu-img V1.0 hangs on creating Image (0.15.

Re: [Qemu-devel] [PATCH 00/27] qom: add QEMU Object Model type hierarchy to qdev

2011-12-20 Thread Anthony Liguori
On 12/20/2011 10:51 AM, Anthony Liguori wrote: This is series 2/4 of the QOM refactoring. These series are divided up based on the major scripted code conversions. Dang, this should have been an RFC, apologies. This series makes qdev a proper Object and converts qdev's type inheritance to Q

[Qemu-devel] [PATCH 06/27] pci: check for an initialized QOM object instead of looking for an info link

2011-12-20 Thread Anthony Liguori
We want to eliminate DeviceInfo so update the PCI check to look for a valid class pointer. Signed-off-by: Anthony Liguori --- hw/pci.c |4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/hw/pci.c b/hw/pci.c index 4fc46c2..3ea6223 100644 --- a/hw/pci.c +++ b/hw/pci.c @@ -1

[Qemu-devel] [PATCH 05/27] qdev: use a wrapper to access reset and promote reset to a class method

2011-12-20 Thread Anthony Liguori
Signed-off-by: Anthony Liguori --- hw/intel-hda.c |4 +--- hw/lsi53c895a.c |2 +- hw/qdev.c | 22 +- hw/qdev.h | 10 +- 4 files changed, 28 insertions(+), 10 deletions(-) diff --git a/hw/intel-hda.c b/hw/intel-hda.c index 1b42e10..09459b8 1006

[Qemu-devel] [PATCH 00/27] qom: add QEMU Object Model type hierarchy to qdev

2011-12-20 Thread Anthony Liguori
This is series 2/4 of the QOM refactoring. These series are divided up based on the major scripted code conversions. This series makes qdev a proper Object and converts qdev's type inheritance to QOM inheritance. The first half of the series are manual cleanups/refactorings. The second half is

Re: [Qemu-devel] [Bug 902148] Re: qemu-img V1.0 hangs on creating Image (0.15.1 runs)

2011-12-20 Thread Stefan Hajnoczi
On Tue, Dec 20, 2011 at 3:25 PM, Michael Niehren <902...@bugs.launchpad.net> wrote: > here we are. Attached the tgz. I am using no spezial distribution, it's a > self compiled LFS with > gcc V4.5.1 > > Is there a different compiler-call if i use --enable-debug, which then > works ? Richard Sandif

Re: [Qemu-devel] [PATCH V2 1/5] vl.c: Do not save RAM state when Xen is used.

2011-12-20 Thread Anthony PERARD
On Sun, 18 Dec 2011, Avi Kivity wrote: > On 12/15/2011 05:12 PM, Anthony Liguori wrote: > > On 12/09/2011 03:54 PM, Anthony PERARD wrote: > >> In Xen case, the guest RAM is not handle by QEMU, and it is saved by > >> Xen tools. > >> So, we just avoid to register the RAM save state handler. > >> >

  1   2   >