[Qemu-devel] [PATCH v7 1/3] VFIO: Wrapper for getting reference to vfio_device from device

2013-03-08 Thread Vijay Mohan Pandarathil
- Added vfio_device_get_from_dev() as wrapper to get reference to vfio_device from struct device. - Added vfio_device_data() as a wrapper to get device_data from vfio_device. Signed-off-by: Vijay Mohan Pandarathil --- drivers/vfio/vfio.c | 30 +++

[Qemu-devel] [PATCH v7 2/3] VFIO-AER: Vfio-pci driver changes for supporting AER

2013-03-08 Thread Vijay Mohan Pandarathil
- New VFIO_SET_IRQ ioctl option to pass the eventfd that is signaled when an error occurs in the vfio_pci_device - Register pci_error_handler for the vfio_pci driver - When the device encounters an error, the error handler registered by the vfio_pci dr

[Qemu-devel] [PATCH v7 3/3] QEMU-AER: Qemu changes to support AER for VFIO-PCI devices

2013-03-08 Thread Vijay Mohan Pandarathil
- Create eventfd per vfio device assigned to a guest and register an event handler - This fd is passed to the vfio_pci driver through the SET_IRQ ioctl - When the device encounters an error, the eventfd is signalled and the qemu eventfd handler gets inv

[Qemu-devel] [PATCH v7 0/3] AER-KVM: Error containment of VFIO devices assigned to KVM guests

2013-03-08 Thread Vijay Mohan Pandarathil
Add support for error containment when a VFIO device assigned to a KVM guest encounters an error. This is for PCIe devices/drivers that support AER functionality. When the host OS is notified of an error in a device either through the firmware first approach or through an interrupt handled by the A

[Qemu-devel] [PATCH uq/master 2/2] kvm: forward INIT signals coming from the chipset

2013-03-08 Thread Paolo Bonzini
CPU_INTERRUPT_INIT can also be generated if you have an internal APIC, since the keyboard controller and the southbridge can also pulse the CPU's INIT# pin. Exit the VCPU is one is received, and process it by changing the mp_state to KVM_MP_STATE_INIT_RECEIVED. Signed-off-by: Paolo Bonzini ---

[Qemu-devel] [PATCH uq/master 1/2] kvm: detect errors from kvm_arch_process_async_events

2013-03-08 Thread Paolo Bonzini
The next patch will call a ioctl from kvm_arch_process_async_events. Trap errors and abort the program if one comes. Signed-off-by: Paolo Bonzini --- kvm-all.c | 8 +++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/kvm-all.c b/kvm-all.c index 4decfdc..bc1534c 100644 --- a/kvm

[Qemu-devel] [PATCH uq/master 0/2] CPU reset (INIT#) support for KVM

2013-03-08 Thread Paolo Bonzini
This is a follow up to the series I posted earlier this week to support CPU soft reset. It is a no-op without that series, but it can be applied independently. The combined series is available at branch x86-soft-reset of my github repository (git://github.com/bonzini/qemu.git). With this series

Re: [Qemu-devel] [PATCH] RTC: enable lost_tick_policy=slew as default (v2)

2013-03-08 Thread Paolo Bonzini
Il 08/03/2013 18:53, Anthony Liguori ha scritto: >> Anthony mentioned that this >> >> http://article.gmane.org/gmane.comp.emulators.qemu/160699 >> >> Is the proper way to do it. > > That breaks too. I don't have a solution but I also don't remember what > the exact failures are. What about a mor

Re: [Qemu-devel] [PATCH V8 10/20] qmp: add interface query-snapshots

2013-03-08 Thread Wenchao Xia
于 2013-3-9 7:30, Eric Blake 写道: On 03/06/2013 11:07 PM, Wenchao Xia wrote: This interface now return valid internal snapshots for whole vm. s/now return/returns/ OK. Signed-off-by: Wenchao Xia --- block/qapi.c | 22 + qapi-schema.json | 14

Re: [Qemu-devel] [PATCH V8 09/20] block: add image info query function bdrv_query_image_info()

2013-03-08 Thread Wenchao Xia
于 2013-3-9 7:08, Eric Blake 写道: On 03/06/2013 11:07 PM, Wenchao Xia wrote: This patch adds function bdrv_query_image_info(), which will retrieve image info in qmp object format. The implementation are s/are/is/ OK. based on the code moved from qemu-img.c, but use block layer s/use/use

Re: [Qemu-devel] [PATCH V8 08/20] block: add filter for vm snapshot in bdrv_query_snapshot_info_list()

2013-03-08 Thread Wenchao Xia
于 2013-3-9 6:55, Eric Blake 写道: On 03/06/2013 11:07 PM, Wenchao Xia wrote: This patch adds a parameter to tell whether return valid snapshots for whole VM only. Signed-off-by: Wenchao Xia --- block/qapi.c | 39 +-- include/block/qapi.h |1

Re: [Qemu-devel] [PATCH V8 06/20] block: move collect_snapshots() and collect_image_info() to block/qapi.c

2013-03-08 Thread Wenchao Xia
于 2013-3-9 6:04, Eric Blake 写道: On 03/06/2013 11:07 PM, Wenchao Xia wrote: This patch is just for making review easier, those two functions will be modified and renamed later. Signed-off-by: Wenchao Xia --- + +void bdrv_collect_image_info(BlockDriverState *bs, +

Re: [Qemu-devel] [PATCH V8 05/20] qemu-img: remove unused parameter in collect_image_info()

2013-03-08 Thread Wenchao Xia
于 2013-3-9 4:34, Eric Blake 写道: On 03/06/2013 11:07 PM, Wenchao Xia wrote: Parameter *fmt was not used, so remove it. Reviewed-by: Eric Blake Signed-off-by: Wenchao Xia Typically, these annotations should be kept in chronological order. That is, the first line should always be a Signed-

Re: [Qemu-devel] [PATCH V8 03/20] block: move bdrv_snapshot_find() to block/snapshot.c

2013-03-08 Thread Wenchao Xia
> On 03/06/2013 11:07 PM, Wenchao Xia wrote: This patch also fix small code style error reported by check script. Signed-off-by: Wenchao Xia --- block/snapshot.c | 23 +++ include/block/snapshot.h |9 + savevm.c | 23 +--

Re: [Qemu-devel] [PATCH V8 02/20] build: add block/qapi.c

2013-03-08 Thread Wenchao Xia
于 2013-3-9 4:22, Eric Blake 写道: > On 03/06/2013 11:07 PM, Wenchao Xia wrote: >>This file will have qmp related functions for block. To avoid conflict and >> tip better, macro in header file is BLOCK_QAPI_H instead of QAPI_H. >> >> Signed-off-by: Wenchao Xia >> --- > >> --- /dev/null >> +++ b/

Re: [Qemu-devel] [PATCH V8 01/20] build: add block/snapshot.c

2013-03-08 Thread Wenchao Xia
> On 03/06/2013 11:07 PM, Wenchao Xia wrote: >>This file will have internal snapshot related functions. >> >> Signed-off-by: Wenchao Xia >> --- > >> --- /dev/null >> +++ b/include/block/snapshot.h >> @@ -0,0 +1,4 @@ >> +#ifndef SNAPSHOT_H > > Introducing a new file without a copyright notic

Re: [Qemu-devel] [PATCH V8 10/20] qmp: add interface query-snapshots

2013-03-08 Thread Eric Blake
On 03/06/2013 11:07 PM, Wenchao Xia wrote: > This interface now return valid internal snapshots for whole vm. s/now return/returns/ > > Signed-off-by: Wenchao Xia > --- > block/qapi.c | 22 + > qapi-schema.json | 14 + > qmp-commands.hx | 55 >

Re: [Qemu-devel] [PATCH V8 09/20] block: add image info query function bdrv_query_image_info()

2013-03-08 Thread Eric Blake
On 03/06/2013 11:07 PM, Wenchao Xia wrote: > This patch adds function bdrv_query_image_info(), which will > retrieve image info in qmp object format. The implementation are s/are/is/ > based on the code moved from qemu-img.c, but use block layer s/use/uses/ > function to get snapshot info. >

Re: [Qemu-devel] [PATCH V8 08/20] block: add filter for vm snapshot in bdrv_query_snapshot_info_list()

2013-03-08 Thread Eric Blake
On 03/06/2013 11:07 PM, Wenchao Xia wrote: > This patch adds a parameter to tell whether return valid snapshots > for whole VM only. > > Signed-off-by: Wenchao Xia > --- > block/qapi.c | 39 +-- > include/block/qapi.h |1 + > qemu-img.c

Re: [Qemu-devel] [PATCH V8 07/20] block: add snapshot info query function bdrv_query_snapshot_info_list()

2013-03-08 Thread Eric Blake
On 03/06/2013 11:07 PM, Wenchao Xia wrote: > This patch adds function bdrv_query_snapshot_info_list(), which will > retrieve snapshot info of an image in qmp object format. The implementation > is based on the code moved from qemu-img.c with modification to fit more > for qmp based block layer AP

Re: [Qemu-devel] [PATCH V8 06/20] block: move collect_snapshots() and collect_image_info() to block/qapi.c

2013-03-08 Thread Eric Blake
On 03/06/2013 11:07 PM, Wenchao Xia wrote: > This patch is just for making review easier, those two functions will > be modified and renamed later. > > Signed-off-by: Wenchao Xia > --- > + > +void bdrv_collect_image_info(BlockDriverState *bs, > + ImageInfo *info, >

[Qemu-devel] [PATCH 27/66] target-ppc: Extract 604e alias

2013-03-08 Thread Alexander Graf
From: Andreas Färber Signed-off-by: Andreas Färber Signed-off-by: Alexander Graf --- target-ppc/translate_init.c |4 +--- 1 files changed, 1 insertions(+), 3 deletions(-) diff --git a/target-ppc/translate_init.c b/target-ppc/translate_init.c index 03284c7..c909410 100644 --- a/target-ppc/

[Qemu-devel] [PATCH 54/66] target-ppc: Change "POWER7" CPU alias

2013-03-08 Thread Alexander Graf
From: Andreas Färber Let it resolve to v2.3 rather than v2.0. Suggested-by: David Gibson Signed-off-by: Andreas Färber Signed-off-by: Alexander Graf --- target-ppc/translate_init.c |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/target-ppc/translate_init.c b/target-

[Qemu-devel] [PATCH 60/66] PPC: Fix dma interrupt

2013-03-08 Thread Alexander Graf
From: Amadeusz Sławiński In openbios (drivers/ide.c) they are set to 000d 0002 000e 0003 000f 0004 (The last one seems to be not implemented in qemu) It follows convention of how they are set on real machines, both id

[Qemu-devel] [PATCH 61/66] PPC: xnu kernel expects FLUSH to be cleared on STOP

2013-03-08 Thread Alexander Graf
From: Amadeusz Sławiński otherwise it gets stuck in a loop so clear it when unsetting run when flush is set void IODBDMAStop( volatile IODBDMAChannelRegisters *registers) { IOSetDBDMAChannelControl( registers, IOClearDBDMAChannelControlBits( kdbdmaRun ) | IOSetDB

[Qemu-devel] [PATCH 62/66] target-ppc: Make host CPU a subclass of the host's CPU model

2013-03-08 Thread Alexander Graf
From: Andreas Färber This avoids assigning individual class fields and contributors forgetting to add field assignments in KVM-only code. ppc_cpu_class_find_by_pvr() requires the CPU model classes to be registered, so defer host CPU type registration to kvm_arch_init(). Only register the host C

Re: [Qemu-devel] [PATCH V8 03/20] block: move bdrv_snapshot_find() to block/snapshot.c

2013-03-08 Thread Eric Blake
On 03/06/2013 11:07 PM, Wenchao Xia wrote: > This patch also fix small code style error reported by check script. > > Signed-off-by: Wenchao Xia > --- > block/snapshot.c | 23 +++ > include/block/snapshot.h |9 + > savevm.c | 23 +

Re: [Qemu-devel] [PATCH V8 05/20] qemu-img: remove unused parameter in collect_image_info()

2013-03-08 Thread Eric Blake
On 03/06/2013 11:07 PM, Wenchao Xia wrote: > Parameter *fmt was not used, so remove it. > > Reviewed-by: Eric Blake > > Signed-off-by: Wenchao Xia Typically, these annotations should be kept in chronological order. That is, the first line should always be a Signed-off-by (you have to write a

[Qemu-devel] [PATCH 2/5] s390: virtio-ccw maintainer

2013-03-08 Thread Alexander Graf
From: Cornelia Huck Add myself as maintainer for virtio-ccw and the s390-ccw-virtio machine. Signed-off-by: Cornelia Huck [agraf: add myself for virtio-ccw machine] Signed-off-by: Alexander Graf --- MAINTAINERS | 14 ++ 1 files changed, 14 insertions(+), 0 deletions(-) diff --g

[Qemu-devel] [PATCH 5/5] s390/virtio-ccw: remove redundant call to blockdev_mark_auto_del

2013-03-08 Thread Alexander Graf
From: Christian Borntraeger blockdev_mark_auto_del is already called in virtio-blk-exit. Remove the redundant call. Signed-off-by: Christian Borntraeger Signed-off-by: Jens Freimann Signed-off-by: Alexander Graf --- hw/s390x/virtio-ccw.c |1 - 1 files changed, 0 insertions(+), 1 deletion

Re: [Qemu-devel] [PATCH 2/2] qga: add windows implementation for guest-set-time

2013-03-08 Thread Eric Blake
On 03/08/2013 09:56 AM, Lei Li wrote: > Signed-off-by: Lei Li > --- > qga/commands-win32.c | 35 +++ > 1 files changed, 35 insertions(+), 0 deletions(-) > > + > +time = time_ns / 100 + W32_FT_OFFSET; > +/* FILETIME values should be less than 0x8

Re: [Qemu-devel] [PATCH V8 01/20] build: add block/snapshot.c

2013-03-08 Thread Eric Blake
On 03/06/2013 11:07 PM, Wenchao Xia wrote: > This file will have internal snapshot related functions. > > Signed-off-by: Wenchao Xia > --- > --- /dev/null > +++ b/include/block/snapshot.h > @@ -0,0 +1,4 @@ > +#ifndef SNAPSHOT_H Introducing a new file without a copyright notice is a no-no. --

[Qemu-devel] [PATCH 66/66] pseries: Add compatible property to root of device tree

2013-03-08 Thread Alexander Graf
From: David Gibson Currently, for the pseries machine the device tree supplied by qemu to SLOF and from there to the guest does not include a 'compatible property' at the root level. Usually that works fine, since in this case the compatible property doesn't really give any information not alrea

[Qemu-devel] [PULL 0/5] s390 patch queue 2013-03-08

2013-03-08 Thread Alexander Graf
Hi Blue / Aurelien, This is my current patch queue for s390. Please pull. Alex The following changes since commit 0bc472a9d6b80567c212023c5eae413f4dfb53ad: Kuo-Jung Su (1): hw/nand.c: correct the sense of the BUSY/READY status bit are available in the git repository at: git://git

[Qemu-devel] [PATCH 49/66] target-ppc: Turn descriptive CPU family comments into device descriptions

2013-03-08 Thread Alexander Graf
From: Andreas Färber This gets rid of some more overly long comments that have lost most of their purpose now that in most cases there's only two functions left per CPU family. The class field is inherited by the actual CPU models, so override it. Signed-off-by: Andreas Färber Signed-off-by: A

Re: [Qemu-devel] [PATCH V8 02/20] build: add block/qapi.c

2013-03-08 Thread Eric Blake
On 03/06/2013 11:07 PM, Wenchao Xia wrote: > This file will have qmp related functions for block. To avoid conflict and > tip better, macro in header file is BLOCK_QAPI_H instead of QAPI_H. > > Signed-off-by: Wenchao Xia > --- > --- /dev/null > +++ b/include/block/qapi.h > @@ -0,0 +1,4 @@ > +#

Re: [Qemu-devel] [PATCH 1/2] qga: add windows implementation for guest-get-time

2013-03-08 Thread Eric Blake
On 03/08/2013 09:56 AM, Lei Li wrote: > Signed-off-by: Lei Li > --- > qga/commands-win32.c | 32 > 1 files changed, 32 insertions(+), 0 deletions(-) > > + > + time_ns = (int64_t)((time.ns100 - W32_FT_OFFSET) * 100); This could overflow, but only so many yea

[Qemu-devel] [PATCH 64/66] target-ppc: Report CPU aliases for QMP

2013-03-08 Thread Alexander Graf
From: Andreas Färber The QMP query-cpu-definitions implementation iterated over CPU classes only, which were getting less and less as aliases were extracted. Keep them in QMP as valid -cpu arguments even if not guaranteed stable. Signed-off-by: Andreas Färber Signed-off-by: Alexander Graf ---

[Qemu-devel] [PATCH 4/5] s390/css: Fix subchannel detection

2013-03-08 Thread Alexander Graf
From: Christian Borntraeger We have to consider the m bit to find the real channel subsystem when determining the last subchannel. If we fail to take this into account, removal of a subchannel in the middle of a big list of devices will stop device detection after a reboot. Signed-off-by: Chris

[Qemu-devel] [PATCH 58/66] target-ppc: Synchronize FPU state with KVM

2013-03-08 Thread Alexander Graf
From: David Gibson Currently qemu does not get and put the state of the floating point and vector registers to KVM. This is obviously a problem for savevm, as well as possibly being problematic for debugging of FP-using guests. This patch fixes this by using new extensions to the ONE_REG interf

[Qemu-devel] [PATCH 3/5] Allow virtio-net features for legacy s390 virtio bus

2013-03-08 Thread Alexander Graf
From: Christian Borntraeger Enable all virtio-net features for the legacy s390 virtio bus. This also fixes kernel BUG at /usr/src/packages/BUILD/kernel-default-3.0.58/linux-3.0/drivers/s390/kvm/kvm_virtio.c:121! Signed-off-by: Christian Borntraeger Cc: qemu-sta...@nongnu.org Signed-off-by: Ale

Re: [Qemu-devel] [PATCH 0/3] small virtio-ccw and css patches

2013-03-08 Thread Alexander Graf
On 22.02.2013, at 20:01, Jens Freimann wrote: > Alex, > > The following changes since commit 1143df5c72fd1f88b4b2b0774d11bf0ba6eb44d6: > > target-s390x: Pass S390CPU to s390_{add, del}_running_cpu() (2013-02-01 > 01:58:50 +0100) > > are available in the git repository at: > > git://github.

[Qemu-devel] [PATCH 56/66] Save memory allocation in the elf loader

2013-03-08 Thread Alexander Graf
From: Fabien Chouteau The current elf loader uses too much memory. For example, I have a executable with a bss section of 400 MB and I set the ram size to 512 MB. Qemu uses about 780MB of RAM (which is fine), but there's a peak at 1.6 GB during initialization (this is not fine). This patch fixes

[Qemu-devel] [PATCH 1/5] s390: simplify kvm cpu init

2013-03-08 Thread Alexander Graf
From: Christian Borntraeger There is no special code right now and the reset ioctl is done later on in the the reset handler anyway. Lets simplify the cpu init. Signed-off-by: Christian Borntraeger Signed-off-by: Alexander Graf --- target-s390x/kvm.c |9 ++--- 1 files changed, 2 inser

[Qemu-devel] [PATCH 45/66] target-ppc: Introduce abstract CPU family types

2013-03-08 Thread Alexander Graf
From: Andreas Färber Instead of assigning *_ constants, set .parent to a family type. Introduce a POWERPC_FAMILY() macro to keep type registration close to its implementation. This macro will need tweaking later. Signed-off-by: Andreas Färber Signed-off-by: Alexander Graf --- target-ppc/tran

Re: [Qemu-devel] [PATCH 1/3] virtio-ccw: remove qdev_unparent in unplug routing

2013-03-08 Thread Alexander Graf
On 25.02.2013, at 12:10, Christian Borntraeger wrote: > On 25/02/13 11:44, Paolo Bonzini wrote: >> Il 25/02/2013 09:09, Christian Borntraeger ha scritto: >>> Hmm, the old sequence was >>> >>> object_unparent(OBJECT(dev)); >>> qdev_free(dev) ---+ >>> | >>>

[Qemu-devel] [PATCH 55/66] pseries: Implement h_read hcall

2013-03-08 Thread Alexander Graf
From: Erlon Cruz This h_call is useful for DLPAR in future amongst other things. Given an index it fetches the corresponding PTE stored in the htab. Signed-off-by: Erlon Cruz Acked-by: David Gibson Signed-off-by: Alexander Graf --- hw/spapr_hcall.c | 31 +++ 1 f

[Qemu-devel] [PATCH 47/66] target-ppc: Register all types for TARGET_PPCEMB

2013-03-08 Thread Alexander Graf
From: Andreas Färber Don't attempt to suppress registration of CPU types, since the criteria is actually a property of the class and should thus become a field. Since we can't check a field set in a class_init function before registering the type that leads to execution of that function, guard th

[Qemu-devel] [PATCH 65/66] target-ppc: Move CPU aliases out of translate_init.c

2013-03-08 Thread Alexander Graf
From: Andreas Färber Move array of CPU aliases to cpu-models.c, alongside model definitions. This requires to zero-terminate the aliases array since ARRAY_SIZE() can no longer be used in translate_init.c then. Suggested-by: Alexander Graf Signed-off-by: Andreas Färber Signed-off-by: Alexander

[Qemu-devel] [PATCH 40/66] target-ppc: Extract 405GPe alias

2013-03-08 Thread Alexander Graf
From: Andreas Färber Signed-off-by: Andreas Färber Signed-off-by: Alexander Graf --- target-ppc/translate_init.c |4 +--- 1 files changed, 1 insertions(+), 3 deletions(-) diff --git a/target-ppc/translate_init.c b/target-ppc/translate_init.c index 4e5278d..3fa131f 100644 --- a/target-ppc/

[Qemu-devel] [PATCH 57/66] target-ppc: Add mechanism for synchronizing SPRs with KVM

2013-03-08 Thread Alexander Graf
From: David Gibson Currently when runing under KVM on ppc, we synchronize a certain number of vital SPRs to KVM through the SET_SREGS call. This leaves out quite a lot of important SPRs which are maintained in KVM. It would be helpful to have their contents in qemu for debugging purposes, and w

[Qemu-devel] [PATCH 63/66] target-ppc: List alias names alongside CPU models

2013-03-08 Thread Alexander Graf
From: Andreas Färber Revert adding a separate -cpu ? output section for aliases and list them per CPU subclass. Requested-by: Alexander Graf Signed-off-by: Andreas Färber Signed-off-by: Alexander Graf --- target-ppc/translate_init.c | 23 +++ 1 files changed, 11 inserti

[Qemu-devel] [PATCH 33/66] target-ppc: Extract MPC82xx alias

2013-03-08 Thread Alexander Graf
From: Andreas Färber Signed-off-by: Andreas Färber Signed-off-by: Alexander Graf --- target-ppc/translate_init.c |4 +--- 1 files changed, 1 insertions(+), 3 deletions(-) diff --git a/target-ppc/translate_init.c b/target-ppc/translate_init.c index a4eae26..2ab7d16 100644 --- a/target-ppc/

[Qemu-devel] [PATCH 35/66] target-ppc: Extract MPC82xx aliases to *_HiP4

2013-03-08 Thread Alexander Graf
From: Andreas Färber Signed-off-by: Andreas Färber Signed-off-by: Alexander Graf --- target-ppc/translate_init.c | 24 ++-- 1 files changed, 6 insertions(+), 18 deletions(-) diff --git a/target-ppc/translate_init.c b/target-ppc/translate_init.c index 8fd68ed..6ba6d26 100

[Qemu-devel] [PATCH 24/66] target-ppc: Extract 603e alias

2013-03-08 Thread Alexander Graf
From: Andreas Färber Signed-off-by: Andreas Färber Signed-off-by: Alexander Graf --- target-ppc/translate_init.c |4 +--- 1 files changed, 1 insertions(+), 3 deletions(-) diff --git a/target-ppc/translate_init.c b/target-ppc/translate_init.c index e6be35c..59a1644 100644 --- a/target-ppc/

[Qemu-devel] [PATCH 51/66] target-ppc: Update Coding Style for CPU models

2013-03-08 Thread Alexander Graf
From: Andreas Färber Drop the space in #if defined (TODO). Signed-off-by: Andreas Färber Signed-off-by: Alexander Graf --- target-ppc/translate_init.c | 200 +- 1 files changed, 100 insertions(+), 100 deletions(-) diff --git a/target-ppc/translate_ini

[Qemu-devel] [PATCH 53/66] target-ppc: Fix remaining microcontroller typos among models

2013-03-08 Thread Alexander Graf
From: Andreas Färber controler -> controller Signed-off-by: Andreas Färber Signed-off-by: Alexander Graf --- target-ppc/cpu-models.c | 12 ++-- 1 files changed, 6 insertions(+), 6 deletions(-) diff --git a/target-ppc/cpu-models.c b/target-ppc/cpu-models.c index f0be585..66408c0 100

[Qemu-devel] [PATCH 43/66] target-ppc: Get model name from type name

2013-03-08 Thread Alexander Graf
From: Andreas Färber We are about to drop the redundant name field along with ppc_def_t. Signed-off-by: Andreas Färber Signed-off-by: Alexander Graf --- target-ppc/translate_init.c | 13 ++--- 1 files changed, 10 insertions(+), 3 deletions(-) diff --git a/target-ppc/translate_init.

[Qemu-devel] [PATCH 14/66] target-ppc: Extract 74x7[A] aliases

2013-03-08 Thread Alexander Graf
From: Andreas Färber Signed-off-by: Andreas Färber Signed-off-by: Alexander Graf --- target-ppc/translate_init.c | 14 -- 1 files changed, 4 insertions(+), 10 deletions(-) diff --git a/target-ppc/translate_init.c b/target-ppc/translate_init.c index 86b5c91..27e625e 100644 --- a/

[Qemu-devel] [PATCH 59/66] target-ppc: Fix PPC_DUMP_SPR_ACCESS build

2013-03-08 Thread Alexander Graf
From: Andreas Färber A victim of the d523dd00a7d73b28f2e99acf45a4b3f92e56e40a AREG0 conversion, insert the missing cpu_env arguments. Signed-off-by: Andreas Färber Signed-off-by: Alexander Graf --- target-ppc/translate_init.c |4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff

[Qemu-devel] [PATCH 36/66] target-ppc: Extract MPC82xx_HiP{3, 4} aliases

2013-03-08 Thread Alexander Graf
From: Andreas Färber Signed-off-by: Andreas Färber Signed-off-by: Alexander Graf --- target-ppc/translate_init.c | 56 ++ 1 files changed, 14 insertions(+), 42 deletions(-) diff --git a/target-ppc/translate_init.c b/target-ppc/translate_init.c index 6

[Qemu-devel] [PATCH 18/66] target-ppc: Extract 7448 alias

2013-03-08 Thread Alexander Graf
From: Andreas Färber Signed-off-by: Andreas Färber Signed-off-by: Alexander Graf --- target-ppc/translate_init.c |4 +--- 1 files changed, 1 insertions(+), 3 deletions(-) diff --git a/target-ppc/translate_init.c b/target-ppc/translate_init.c index 7bc401b..4af 100644 --- a/target-ppc/

[Qemu-devel] [PATCH 44/66] target-ppc: Convert CPU definitions

2013-03-08 Thread Alexander Graf
From: Andreas Färber Turn the array of model definitions into a set of self-registering QOM types with their own class_init. Unique identifiers are obtained from the combination of PVR, SVR and family identifiers; this requires all alias #defines to be removed from the list. Possibly there are so

[Qemu-devel] [PATCH 37/66] target-ppc: Extract MPC52xx alias

2013-03-08 Thread Alexander Graf
From: Andreas Färber Signed-off-by: Andreas Färber Signed-off-by: Alexander Graf --- target-ppc/translate_init.c |7 ++- 1 files changed, 2 insertions(+), 5 deletions(-) diff --git a/target-ppc/translate_init.c b/target-ppc/translate_init.c index 89c9e24..625811e 100644 --- a/target-p

[Qemu-devel] [PATCH 25/66] target-ppc: Extract 603r alias

2013-03-08 Thread Alexander Graf
From: Andreas Färber Signed-off-by: Andreas Färber Signed-off-by: Alexander Graf --- target-ppc/translate_init.c |4 +--- 1 files changed, 1 insertions(+), 3 deletions(-) diff --git a/target-ppc/translate_init.c b/target-ppc/translate_init.c index 59a1644..69455c4 100644 --- a/target-ppc/

[Qemu-devel] [PATCH 28/66] target-ppc: Extract MPC85xx aliases

2013-03-08 Thread Alexander Graf
From: Andreas Färber Signed-off-by: Andreas Färber Signed-off-by: Alexander Graf --- target-ppc/translate_init.c | 102 +++--- 1 files changed, 17 insertions(+), 85 deletions(-) diff --git a/target-ppc/translate_init.c b/target-ppc/translate_init.c index c

[Qemu-devel] [PATCH 29/66] target-ppc: Extract e500v1/e500v2 aliases

2013-03-08 Thread Alexander Graf
From: Andreas Färber Signed-off-by: Andreas Färber Signed-off-by: Alexander Graf --- target-ppc/translate_init.c |8 ++-- 1 files changed, 2 insertions(+), 6 deletions(-) diff --git a/target-ppc/translate_init.c b/target-ppc/translate_init.c index 9939af5..91473dc 100644 --- a/target-

[Qemu-devel] [PATCH 41/66] target-ppc: Extract 970 aliases

2013-03-08 Thread Alexander Graf
From: Andreas Färber Signed-off-by: Andreas Färber Signed-off-by: Alexander Graf --- target-ppc/translate_init.c |8 ++-- 1 files changed, 2 insertions(+), 6 deletions(-) diff --git a/target-ppc/translate_init.c b/target-ppc/translate_init.c index 3fa131f..bcb22cc 100644 --- a/target-

[Qemu-devel] [PATCH 34/66] target-ppc: Extract MPC8247/MPC8248/MPC8270-80 aliases

2013-03-08 Thread Alexander Graf
From: Andreas Färber This depends on the fix for "G2leGP3" PVR. Signed-off-by: Andreas Färber Signed-off-by: Alexander Graf --- target-ppc/translate_init.c | 28 +++- 1 files changed, 7 insertions(+), 21 deletions(-) diff --git a/target-ppc/translate_init.c b/target

[Qemu-devel] [PATCH 42/66] target-ppc: Extract POWER7 alias

2013-03-08 Thread Alexander Graf
From: Andreas Färber Signed-off-by: Andreas Färber Signed-off-by: Alexander Graf --- target-ppc/translate_init.c |3 +-- 1 files changed, 1 insertions(+), 2 deletions(-) diff --git a/target-ppc/translate_init.c b/target-ppc/translate_init.c index bcb22cc..9d4831f 100644 --- a/target-ppc/t

[Qemu-devel] [PATCH 30/66] target-ppc: Extract MPC83xx aliases

2013-03-08 Thread Alexander Graf
From: Andreas Färber Signed-off-by: Andreas Färber Signed-off-by: Alexander Graf --- target-ppc/translate_init.c | 20 1 files changed, 4 insertions(+), 16 deletions(-) diff --git a/target-ppc/translate_init.c b/target-ppc/translate_init.c index 91473dc..8f765ad 100644

[Qemu-devel] [PATCH 38/66] target-ppc: Extract MPC5200/MPC5200B aliases

2013-03-08 Thread Alexander Graf
From: Andreas Färber Signed-off-by: Andreas Färber Signed-off-by: Alexander Graf --- target-ppc/translate_init.c | 12 ++-- 1 files changed, 2 insertions(+), 10 deletions(-) diff --git a/target-ppc/translate_init.c b/target-ppc/translate_init.c index 625811e..2e41f0b 100644 --- a/ta

[Qemu-devel] [PATCH 15/66] target-ppc: Extract 74x5 as aliases

2013-03-08 Thread Alexander Graf
From: Andreas Färber Signed-off-by: Andreas Färber Signed-off-by: Alexander Graf --- target-ppc/translate_init.c |7 ++- 1 files changed, 2 insertions(+), 5 deletions(-) diff --git a/target-ppc/translate_init.c b/target-ppc/translate_init.c index 27e625e..b7c9781 100644 --- a/target-p

[Qemu-devel] [PATCH 19/66] target-ppc: Extract 7410 alias

2013-03-08 Thread Alexander Graf
From: Andreas Färber Signed-off-by: Andreas Färber Signed-off-by: Alexander Graf --- target-ppc/translate_init.c |4 +--- 1 files changed, 1 insertions(+), 3 deletions(-) diff --git a/target-ppc/translate_init.c b/target-ppc/translate_init.c index 4af..3fd8fd7 100644 --- a/target-ppc/

[Qemu-devel] [PATCH 22/66] target-ppc: Extract 750 aliases

2013-03-08 Thread Alexander Graf
From: Andreas Färber Signed-off-by: Andreas Färber Signed-off-by: Alexander Graf --- target-ppc/translate_init.c | 24 ++-- 1 files changed, 6 insertions(+), 18 deletions(-) diff --git a/target-ppc/translate_init.c b/target-ppc/translate_init.c index 5981d98..86db9a5 100

[Qemu-devel] [PATCH 01/66] pseries: Add cleanup hook for PAPR virtual LAN device

2013-03-08 Thread Alexander Graf
From: David Gibson Currently the spapr-vlan device does not supply a cleanup call for its NetClientInfo structure. With current qemu versions, that leads to a SEGV on exit, when net_cleanup() attempts to call the cleanup handlers on all net clients. Signed-off-by: David Gibson Signed-off-by: A

[Qemu-devel] [PATCH 21/66] target-ppc: Extract 7x5 aliases

2013-03-08 Thread Alexander Graf
From: Andreas Färber Signed-off-by: Andreas Färber Signed-off-by: Alexander Graf --- target-ppc/translate_init.c |7 ++- 1 files changed, 2 insertions(+), 5 deletions(-) diff --git a/target-ppc/translate_init.c b/target-ppc/translate_init.c index a97dfb7..5981d98 100644 --- a/target-p

[Qemu-devel] [PATCH 32/66] target-ppc: Extract e200 alias

2013-03-08 Thread Alexander Graf
From: Andreas Färber Signed-off-by: Andreas Färber Signed-off-by: Alexander Graf --- target-ppc/translate_init.c |4 +--- 1 files changed, 1 insertions(+), 3 deletions(-) diff --git a/target-ppc/translate_init.c b/target-ppc/translate_init.c index d2cee80..a4eae26 100644 --- a/target-ppc/

[Qemu-devel] [PATCH 31/66] target-ppc: Extract e300 alias

2013-03-08 Thread Alexander Graf
From: Andreas Färber Signed-off-by: Andreas Färber Signed-off-by: Alexander Graf --- target-ppc/translate_init.c |4 +--- 1 files changed, 1 insertions(+), 3 deletions(-) diff --git a/target-ppc/translate_init.c b/target-ppc/translate_init.c index 8f765ad..d2cee80 100644 --- a/target-ppc/

[Qemu-devel] [PATCH 09/66] target-ppc: Extract MPC5xx aliases

2013-03-08 Thread Alexander Graf
From: Andreas Färber Their PVR differed but was defined to MPC5xx. Signed-off-by: Andreas Färber Signed-off-by: Alexander Graf --- target-ppc/translate_init.c | 81 --- 1 files changed, 15 insertions(+), 66 deletions(-) diff --git a/target-ppc/transl

[Qemu-devel] [PATCH 13/66] target-ppc: Turn "ppc32" and "ppc64" CPUs into aliases

2013-03-08 Thread Alexander Graf
From: Andreas Färber Signed-off-by: Andreas Färber Signed-off-by: Alexander Graf --- target-ppc/translate_init.c | 36 +--- 1 files changed, 5 insertions(+), 31 deletions(-) diff --git a/target-ppc/translate_init.c b/target-ppc/translate_init.c index fb0a366.

[Qemu-devel] [PATCH 39/66] target-ppc: Extract MPC8240 alias

2013-03-08 Thread Alexander Graf
From: Andreas Färber Signed-off-by: Andreas Färber Signed-off-by: Alexander Graf --- target-ppc/translate_init.c |8 +++- 1 files changed, 3 insertions(+), 5 deletions(-) diff --git a/target-ppc/translate_init.c b/target-ppc/translate_init.c index 2e41f0b..4e5278d 100644 --- a/target-

[Qemu-devel] [PATCH 20/66] target-ppc: Extract 7400 alias

2013-03-08 Thread Alexander Graf
From: Andreas Färber Signed-off-by: Andreas Färber Signed-off-by: Alexander Graf --- target-ppc/translate_init.c |4 +--- 1 files changed, 1 insertions(+), 3 deletions(-) diff --git a/target-ppc/translate_init.c b/target-ppc/translate_init.c index 3fd8fd7..a97dfb7 100644 --- a/target-ppc/

[Qemu-devel] [PATCH 07/66] target-ppc: Extract aliases from definitions list

2013-03-08 Thread Alexander Graf
From: Andreas Färber Move definitions that were 100% identical except for the name into a list of aliases so that we don't register duplicate CPU types. Drop the accompanying comments since they don't really add value. We need to support recursive lookup due to code names referencing a generic n

[Qemu-devel] [PULL 00/66] ppc patch queue 2013-03-08

2013-03-08 Thread Alexander Graf
Hi Blue / Aurelien, This is my current patch queue for ppc. Please pull. Alex The following changes since commit 0bc472a9d6b80567c212023c5eae413f4dfb53ad: Kuo-Jung Su (1): hw/nand.c: correct the sense of the BUSY/READY status bit are available in the git repository at: git://gith

[Qemu-devel] [PATCH 12/66] target-ppc: Extract 440 aliases

2013-03-08 Thread Alexander Graf
From: Andreas Färber Signed-off-by: Andreas Färber Signed-off-by: Alexander Graf --- target-ppc/translate_init.c | 23 +-- 1 files changed, 5 insertions(+), 18 deletions(-) diff --git a/target-ppc/translate_init.c b/target-ppc/translate_init.c index 8a3cf9f..fb0a366 1006

[Qemu-devel] [PATCH 23/66] target-ppc: Extract 740/750 aliases

2013-03-08 Thread Alexander Graf
From: Andreas Färber Signed-off-by: Andreas Färber Signed-off-by: Alexander Graf --- target-ppc/translate_init.c |7 ++- 1 files changed, 2 insertions(+), 5 deletions(-) diff --git a/target-ppc/translate_init.c b/target-ppc/translate_init.c index 86db9a5..e6be35c 100644 --- a/target-p

[Qemu-devel] [PATCH 10/66] target-ppc: Extract MGT823/MPC8xx as aliases

2013-03-08 Thread Alexander Graf
From: Andreas Färber They used different PVRs but were defined to MPC8xx. Signed-off-by: Andreas Färber Signed-off-by: Alexander Graf --- target-ppc/translate_init.c | 93 --- 1 files changed, 17 insertions(+), 76 deletions(-) diff --git a/target-ppc

[Qemu-devel] [PATCH 17/66] target-ppc: Extract 7450 alias

2013-03-08 Thread Alexander Graf
From: Andreas Färber Signed-off-by: Andreas Färber Signed-off-by: Alexander Graf --- target-ppc/translate_init.c |4 +--- 1 files changed, 1 insertions(+), 3 deletions(-) diff --git a/target-ppc/translate_init.c b/target-ppc/translate_init.c index bd3076c..7bc401b 100644 --- a/target-ppc/

[Qemu-devel] [PATCH 26/66] target-ppc: Extract 601/601v aliases

2013-03-08 Thread Alexander Graf
From: Andreas Färber Signed-off-by: Andreas Färber Signed-off-by: Alexander Graf --- target-ppc/translate_init.c |8 ++-- 1 files changed, 2 insertions(+), 6 deletions(-) diff --git a/target-ppc/translate_init.c b/target-ppc/translate_init.c index 69455c4..03284c7 100644 --- a/target-

[Qemu-devel] [PATCH 04/66] target-ppc: Update error handling in ppc_cpu_realize()

2013-03-08 Thread Alexander Graf
From: Andreas Färber Commit fe828a4d4b7a5617cda7b24e95e327bfb71d790e added a new fatal error message while QOM realize'ification was in flight. Convert it to return an Error instead of exit()ing. Signed-off-by: Andreas Färber Signed-off-by: Alexander Graf --- target-ppc/translate_init.c |

[Qemu-devel] [PATCH 16/66] target-ppc: Extract 74x1 aliases

2013-03-08 Thread Alexander Graf
From: Andreas Färber Signed-off-by: Andreas Färber Signed-off-by: Alexander Graf --- target-ppc/translate_init.c |7 ++- 1 files changed, 2 insertions(+), 5 deletions(-) diff --git a/target-ppc/translate_init.c b/target-ppc/translate_init.c index b7c9781..bd3076c 100644 --- a/target-p

[Qemu-devel] [PATCH 02/66] target-ppc: Fix CPU_POWERPC_MPC8547E

2013-03-08 Thread Alexander Graf
From: Andreas Färber It was defined to ..._MPC8545E_v21 rather than ..._MPC8547E_v21. Due to both resolving to CPU_POWERPC_e500v2_v21 this did not show. Fixing this nontheless helps with QOM'ifying CPU aliases. Signed-off-by: Andreas Färber Signed-off-by: Alexander Graf --- target-ppc/transl

[Qemu-devel] [PATCH 11/66] target-ppc: Extract 40x aliases

2013-03-08 Thread Alexander Graf
From: Andreas Färber Signed-off-by: Andreas Färber Signed-off-by: Alexander Graf --- target-ppc/translate_init.c | 25 +++-- 1 files changed, 7 insertions(+), 18 deletions(-) diff --git a/target-ppc/translate_init.c b/target-ppc/translate_init.c index 6a86e10..8a3cf9f 10

[Qemu-devel] [PATCH 08/66] target-ppc: Make -cpu "ppc" an alias to "ppc32"

2013-03-08 Thread Alexander Graf
From: Andreas Färber Drop the #if 0'ed alternative to make it "ppc64" for TARGET_PPC64. If we ever want to change it, we can more easily do so now. Signed-off-by: Andreas Färber Signed-off-by: Alexander Graf --- target-ppc/translate_init.c | 29 + 1 files changed

[Qemu-devel] [PATCH 03/66] target-ppc: Fix "G2leGP3" PVR

2013-03-08 Thread Alexander Graf
From: Andreas Färber Unlike derived PVR constants mapped to CPU_POWERPC_G2LEgp3, the "G2leGP3" model definition itself used the CPU_POWERPC_G2LEgp1 PVR. Fixing this will allow to alias CPU_POWERPC_G2LEgp3-using types to "G2leGP3". Signed-off-by: Andreas Färber Signed-off-by: Alexander Graf --

[Qemu-devel] [PATCH 05/66] target-ppc: Drop nested TARGET_PPC64 guard for POWER7

2013-03-08 Thread Alexander Graf
From: Andreas Färber It is within a large TARGET_PPC64 section from 970 to 620, so an #endif /* TARGET_PPC64 */ is confusing. Clean this up. Signed-off-by: Andreas Färber Signed-off-by: Alexander Graf --- target-ppc/translate_init.c |2 -- 1 files changed, 0 insertions(+), 2 deletions(-)

[Qemu-devel] [PATCH] MinGW: Replace setsockopt by qemu_setsocketopt

2013-03-08 Thread Stefan Weil
Instead of adding missing type casts which are needed by MinGW for the 4th argument, the patch uses qemu_setsockopt which was invented for this purpose. Signed-off-by: Stefan Weil --- I did not fix some coding style issues in modified slirp code (tabs, line length). Nor did I replace setsockopt

Re: [Qemu-devel] [PATCH] RTC: enable lost_tick_policy=slew as default (v2)

2013-03-08 Thread Anthony Liguori
Marcelo Tosatti writes: > On Thu, Mar 07, 2013 at 09:25:17AM +0100, Paolo Bonzini wrote: >> Il 12/12/2012 22:36, Marcelo Tosatti ha scritto: >> > >> > RTC interrupt reinjection has no known negative effect. Lack of >> > RTC interrupt reinjection, though, has negative effects: time drift >> > for

Re: [Qemu-devel] [PATCH v4 3/6] add backup related monitor commands

2013-03-08 Thread Dietmar Maurer
> >> 1. QEMU can neither backup nor restore without help from the management > >>tool. > > > > Backup works perfectly with the current patches. You can easily > > trigger a backup using a HMP command. This is not really important, but > > works. > > If you send me a VMA file I can't restore i

  1   2   >