Re: [Qemu-devel] [RFC v2 3/7] m48t59: register a QOM type for each nvram type we support

2013-04-26 Thread Artyom Tarasenko
On Sat, Apr 20, 2013 at 12:39 PM, Blue Swirl wrote: > On Sat, Apr 20, 2013 at 9:56 AM, Artyom Tarasenko wrote: >> On Sat, Apr 20, 2013 at 11:34 AM, Blue Swirl wrote: >>> On Sun, Apr 14, 2013 at 9:41 PM, Artyom Tarasenko >>> wrote: On Sun, Apr 14, 2013 at 10:05 AM, Hervé Poussineau

[Qemu-devel] [PATCH 3/3] sparc64: use direct interrupt mapping for PCI devices

2013-04-26 Thread Artyom Tarasenko
Every PCI Slot in PBM has 4 directly mapped IRQ lines. Use the IRQ routing schema 0bssnn (Bus, Slot, interrupt Number) described in Section 19.3.3 of UltraSPARC™-IIi User's Manual. Please note that this patch requires the OpenBIOS counterpart patch. Signed-off-by: Artyom Tarasenko --- hw/pci-ho

[Qemu-devel] [PATCH 2/3] sparc64: fix loosing interrupts

2013-04-26 Thread Artyom Tarasenko
- clear interrupts only on writing to the interrupt clear registers - don't overwrite a currently active interrupt request - use the correct addresses for the interrupt clear registers (section 19.3.3.3 of the UltraSPARC™-IIi User’s Manual) Signed-off-by: Artyom Tarasenko --- hw/pci-host/apb.c

[Qemu-devel] [PATCH 1/3] sparc64: allow 64 IRQ lines

2013-04-26 Thread Artyom Tarasenko
According to UltraSPARC™-IIi User’s Manual, PBM has 64 IRQ lines. Signed-off-by: Artyom Tarasenko --- hw/pci-host/apb.c |2 +- hw/sparc64/sun4u.c |2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/hw/pci-host/apb.c b/hw/pci-host/apb.c index b4981d7..3bc0d10 100644 ---

[Qemu-devel] [PATCH 0/3] sparc64 fixes

2013-04-26 Thread Artyom Tarasenko
Various fixes: On the real hardware IRQ lines of the PCI bus are not shared. In the previous QEMU implementation before this series, all PCI devices used the IRQ line 0. Combined with auto-clearing interrupts this made the guest OS extremely unstable. The test case is installing Debian Wheezy / spa

Re: [Qemu-devel] [PATCH 01/10] Common: Add a default bootindex for all applicable devices

2013-04-26 Thread Gleb Natapov
On Fri, Apr 26, 2013 at 11:34:24PM +0200, Dominik Dingel wrote: > On Fri, 26 Apr 2013 22:13:14 +0300 > Gleb Natapov wrote: > > > On Fri, Apr 26, 2013 at 01:55:23PM -0500, Anthony Liguori wrote: > > > Dominik Dingel writes: > > > > > > > On Fri, 26 Apr 2013 11:36:11 -0500 > > > > Anthony Liguori

Re: [Qemu-devel] [PATCH 0/3] block: block-backup live backup command

2013-04-26 Thread Wenchao Xia
于 2013-4-24 0:25, Stefan Hajnoczi 写道: > This series adds a new QMP command, block-backup, which takes a point-in-time > snapshot of a block device. The snapshot is copied out to a target block > device. A simple example is: > >block-backup device=virtio0 format=qcow2 target=backup-20130401.q

Re: [Qemu-devel] [PATCH 3/3] s390-virtio-bus: sync config only when config_len is not zero

2013-04-26 Thread Jason Wang
On 04/27/2013 01:07 AM, Alexander Graf wrote: > On 26.04.2013, at 10:34, Jason Wang wrote: > >> virtio-rng-s390 has zero config length, so no need to sync its config >> otherwise >> qemu will crash since vdev->config is NULL. > Why is it NULL? As far as I see, virtio-rng's config_len is zero, so

Re: [Qemu-devel] [PATCH 1/3] virtio-pci: properly validate address before accessing config

2013-04-26 Thread Jason Wang
On 04/26/2013 10:27 PM, Petr Matousek wrote: > On Fri, Apr 26, 2013 at 04:34:02PM +0800, Jason Wang wrote: >> There are several several issues in the current checking: >> >> - The check was based on the minus of unsigned values which can overflow >> - It was done after .{set|get}_config() which can

Re: [Qemu-devel] [PATCH] virtio-net: properly check the vhost status during status set

2013-04-26 Thread Jason Wang
On 04/26/2013 08:26 PM, Michael S. Tsirkin wrote: > On Fri, Apr 26, 2013 at 06:27:40PM +0800, Jason Wang wrote: >> Commit 32993698 (vhost: disable on tap link down) tries to disable the vhost >> also when the peer's link is down. But the check was not done properly, the >> vhost were only started w

Re: [Qemu-devel] [PATCH 7/7] block: dump to monitor for bdrv_snapshot_dump() and bdrv_image_info_dump()

2013-04-26 Thread Wenchao Xia
于 2013-4-26 22:46, Stefan Hajnoczi 写道: On Fri, Apr 26, 2013 at 05:31:15PM +0800, Wenchao Xia wrote: @@ -2586,10 +2585,12 @@ void do_info_snapshots(Monitor *mon, const QDict *qdict) } if (total > 0) { -monitor_printf(mon, "%s\n", bdrv_snapshot_dump(buf, sizeof(buf), NULL));

Re: [Qemu-devel] [PATCH 4/7] block: distinguish id and name in bdrv_find_snapshot()

2013-04-26 Thread Wenchao Xia
于 2013-4-26 22:34, Stefan Hajnoczi 写道: On Fri, Apr 26, 2013 at 05:31:12PM +0800, Wenchao Xia wrote: To make it clear about id and name in searching, the API is changed a bit to distinguish them, and caller can choose to search by id or name. If not found, *errp will be set to tip why. Note that

Re: [Qemu-devel] [RFC PATCH v5 01/14] util: introduce gsource event abstraction

2013-04-26 Thread liu ping fan
On Fri, Apr 26, 2013 at 5:19 PM, Stefan Hajnoczi wrote: > On Fri, Apr 26, 2013 at 10:47:22AM +0800, Liu Ping Fan wrote: >> +GPollFD *events_source_add_gfd(EventsGSource *src, int fd) >> +{ >> +GPollFD *retfd; >> + >> +retfd = g_slice_alloc(sizeof(GPollFD)); >> +retfd->events = 0; >> +

[Qemu-devel] add a virtual pci device

2013-04-26 Thread 肖子良
Hello, We want to add a virtual pci device to the qemu. But we have no idea how to implement it.Do you have any good advices to achieve it? Is there any documentations that describe the functions in qemu because we even don't know what the functions mean or how to use them. Thanks in advance. X

Re: [Qemu-devel] [PATCH v6 00/20] tcg-arm improvments

2013-04-26 Thread Aurelien Jarno
On Tue, Apr 23, 2013 at 01:46:32PM -0700, Richard Henderson wrote: > Changes v5-v6, feedback from Aurelien: > * Drop tcg_out_goto changes. > * Add Z constraint for deposit. > * Small comment cleanups. > * Rebase vs master. > > The following changes since commit 456736710df19c2275192269fe67

[Qemu-devel] [PULL] libcacard fix from Cole Robinson

2013-04-26 Thread Alon Levy
The following changes since commit 909eedb74f88d1d6d9e6bbdc34875772e7a8a5ab: target-ppc: slightly optimize lfiwax (2013-04-27 00:37:46 +0200) are available in the git repository at: git://people.freedesktop.org/~alon/qemu libcacard_ccid.2 for you to fetch changes up to ae12e3a643c66575c7721

Re: [Qemu-devel] [PULL 00/30] ppc patch queue 2013-04-26

2013-04-26 Thread Aurelien Jarno
On Fri, Apr 26, 2013 at 11:42:19PM +0200, Alexander Graf wrote: > > > Am 26.04.2013 um 23:17 schrieb Aurelien Jarno : > > > On Fri, Apr 26, 2013 at 11:03:12PM +0200, Alexander Graf wrote: > >> > >> > >> Am 26.04.2013 um 22:09 schrieb Blue Swirl : > >> > >>> On Fri, Apr 26, 2013 at 6:21 PM, Al

Re: [Qemu-devel] [PATCH 2/3] block: add block_backup QMP command

2013-04-26 Thread Eric Blake
On 04/23/2013 10:25 AM, Stefan Hajnoczi wrote: > @block-backup > > Start a point-in-time copy of a block device to a new destination. > > @device: the name of the device whose writes should be mirrored. > > @target: the target of the new image. If the file exists, or if it > is a devic

Re: [Qemu-devel] [PATCH 2/3] block: add block_backup QMP command

2013-04-26 Thread Eric Blake
On 04/26/2013 04:52 PM, Eric Blake wrote: > On 04/23/2013 10:25 AM, Stefan Hajnoczi wrote: >> @block-backup [hit send too soon] Subject line should mention block-backup, not block_backup. >> +## >> +{ 'command': 'block-backup', >> + 'data': { 'device': 'str', 'target': 'str', '*format': 'str',

Re: [Qemu-devel] [PATCH 2/3] block: add block_backup QMP command

2013-04-26 Thread Eric Blake
On 04/23/2013 10:25 AM, Stefan Hajnoczi wrote: > @block-backup > > Start a point-in-time copy of a block device to a new destination. > > @device: the name of the device whose writes should be mirrored. > +++ b/qapi-schema.json > @@ -1715,6 +1715,34 @@ > '*speed': 'int' } } > >

Re: [Qemu-devel] [PATCH V18 1/6] docs: document for add-cow file format

2013-04-26 Thread Eric Blake
On 04/10/2013 02:11 AM, Dong Xu Wang wrote: > Document for add-cow format, the usage and spec of add-cow are > introduced. > > Signed-off-by: Dong Xu Wang > --- > V17->V18: > 1) remove version field. > 2) header size is maximum value and cluster size value. > 3) fix type. > docs/specs/add-cow.tx

Re: [Qemu-devel] [PATCH 1.5 v2 0/3] fix win32 compilation

2013-04-26 Thread Paolo Bonzini
Il 26/04/2013 21:38, Blue Swirl ha scritto: > On Wed, Apr 24, 2013 at 8:59 PM, Paolo Bonzini wrote: >> Here is a fix for the Win32 compilation problem that Blue reported, >> and another nit I found while testing. >> >> Paolo Bonzini (3): >> add missing inclusions of config-host.h >> win32: add

Re: [Qemu-devel] [RFC] Continuous work on sandboxing

2013-04-26 Thread Paolo Bonzini
Il 26/04/2013 23:07, Paul Moore ha scritto: >> > 3. Debugging and/or learning mode - third party libraries still have the >> > problem of interfering in the Qemu's signal mask. According to some >> > previous discussions, perhaps patch all external libraries that mass up >> > with this mask (spice,

Re: [Qemu-devel] [PATCH 17/21] introduce memory_region_get_address() and use it in kvm/ioapic

2013-04-26 Thread Paolo Bonzini
Il 26/04/2013 19:46, Igor Mammedov ha scritto: >> > But as the address can't be changed (yet), the entire patch could be >> > simply: >> > -kioapic->base_address = s->busdev.mmio[0].addr; >> > +kioapic->base_address = IO_APIC_DEFAULT_ADDRESS; > It's a bit fragile, but that for sure simpler

Re: [Qemu-devel] [PATCH 1/3] virtio-pci: properly validate address before accessing config

2013-04-26 Thread Petr Matousek
On Fri, Apr 26, 2013 at 04:34:02PM +0800, Jason Wang wrote: > There are several several issues in the current checking: > > - The check was based on the minus of unsigned values which can overflow > - It was done after .{set|get}_config() which can lead crash when config_len > is > zero since v

Re: [Qemu-devel] [PULL 00/30] ppc patch queue 2013-04-26

2013-04-26 Thread Alexander Graf
Am 26.04.2013 um 23:17 schrieb Aurelien Jarno : > On Fri, Apr 26, 2013 at 11:03:12PM +0200, Alexander Graf wrote: >> >> >> Am 26.04.2013 um 22:09 schrieb Blue Swirl : >> >>> On Fri, Apr 26, 2013 at 6:21 PM, Alexander Graf wrote: Hi Blue / Aurelien, This is my current patch qu

Re: [Qemu-devel] [PATCH 01/10] Common: Add a default bootindex for all applicable devices

2013-04-26 Thread Dominik Dingel
On Fri, 26 Apr 2013 22:13:14 +0300 Gleb Natapov wrote: > On Fri, Apr 26, 2013 at 01:55:23PM -0500, Anthony Liguori wrote: > > Dominik Dingel writes: > > > > > On Fri, 26 Apr 2013 11:36:11 -0500 > > > Anthony Liguori wrote: > > > > > >> Dominik Dingel writes: > > >> > > >> > Currently only de

[Qemu-devel] [PATCH] ppc/spapr: Fix cache related properties

2013-04-26 Thread Benjamin Herrenschmidt
The properties in the CPU nodes for expressing the cache block size are spelled {d,i}-cache... not {d,i}cache... Also add the "line" variants in addition to the "block" variants for completeness (some OSes might require them). Signed-off-by: Benjamin Herrenschmidt --- diff --git a/hw/ppc/spapr.

Re: [Qemu-devel] [PULL 00/30] ppc patch queue 2013-04-26

2013-04-26 Thread Aurelien Jarno
On Fri, Apr 26, 2013 at 11:03:12PM +0200, Alexander Graf wrote: > > > Am 26.04.2013 um 22:09 schrieb Blue Swirl : > > > On Fri, Apr 26, 2013 at 6:21 PM, Alexander Graf wrote: > >> Hi Blue / Aurelien, > >> > >> This is my current patch queue for ppc. Please pull. > > > > Does not build with -

Re: [Qemu-devel] [RFC] Continuous work on sandboxing

2013-04-26 Thread Paul Moore
On Friday, April 26, 2013 03:39:33 PM Eduardo Otubo wrote: > Hello folks, > > Resuming the sandboxing work, I'd like to ask for comments on the > ideias I have: > > 1. Reduce whitelist to the optimal subset: Run various tests on Qemu > with different configurations to reduce to the smallest sysc

Re: [Qemu-devel] [PULL 00/30] ppc patch queue 2013-04-26

2013-04-26 Thread Alexander Graf
Am 26.04.2013 um 22:09 schrieb Blue Swirl : > On Fri, Apr 26, 2013 at 6:21 PM, Alexander Graf wrote: >> Hi Blue / Aurelien, >> >> This is my current patch queue for ppc. Please pull. > > Does not build with --enable-debug: > CCppc-softmmu/target-ppc/translate.o > /src/qemu/target-ppc/tr

Re: [Qemu-devel] [PULL 00/24] s390 patch queue 2013-04-26

2013-04-26 Thread Blue Swirl
On Fri, Apr 26, 2013 at 6:19 PM, Alexander Graf wrote: > Hi Blue / Aurelien, > > This is my current patch queue for s390. Please pull. Thanks, pulled. > > Alex > > > The following changes since commit bf9b255f484fd61cbaa91faeff254140a0ecd18c: > Anthony Liguori (1): > gtk: refactor men

Re: [Qemu-devel] [PULL 00/30] ppc patch queue 2013-04-26

2013-04-26 Thread Blue Swirl
On Fri, Apr 26, 2013 at 8:12 PM, Blue Swirl wrote: > On Fri, Apr 26, 2013 at 6:21 PM, Alexander Graf wrote: >> Hi Blue / Aurelien, >> >> This is my current patch queue for ppc. Please pull. > > Thanks, pulled. Sorry, replied to wrong pull request. > >> >> Alex >> >> >> The following changes si

Re: [Qemu-devel] [PULL 00/30] ppc patch queue 2013-04-26

2013-04-26 Thread Blue Swirl
On Fri, Apr 26, 2013 at 6:21 PM, Alexander Graf wrote: > Hi Blue / Aurelien, > > This is my current patch queue for ppc. Please pull. Thanks, pulled. > > Alex > > > The following changes since commit bf9b255f484fd61cbaa91faeff254140a0ecd18c: > Anthony Liguori (1): > gtk: refactor menu

Re: [Qemu-devel] [PULL 00/30] ppc patch queue 2013-04-26

2013-04-26 Thread Blue Swirl
On Fri, Apr 26, 2013 at 6:21 PM, Alexander Graf wrote: > Hi Blue / Aurelien, > > This is my current patch queue for ppc. Please pull. Does not build with --enable-debug: CCppc-softmmu/target-ppc/translate.o /src/qemu/target-ppc/translate.c: In function 'gen_lfiwax': /src/qemu/target-ppc/tr

[Qemu-devel] [PATCH 07/30] target-ppc: Fix narrow-mode add/sub carry output

2013-04-26 Thread Alexander Graf
From: Richard Henderson Broken in b5a73f8d8a57e940f9bbeb399a9e47897522ee9a, the carry itself was fixed in 79482e5ab38a05ca8869040b0d8b8f451f16ff62. But we still need to produce the full 64-bit addition. Simplify the conditions at the top of the functions for when we need a new temporary. Only

Re: [Qemu-devel] [PATCH 09/10] S390: Pass per-device loadparm values for CCW blk and net devs.

2013-04-26 Thread Christian Borntraeger
On 26/04/13 20:14, Alexander Graf wrote: > > On 26.04.2013, at 20:08, Dominik Dingel wrote: > >> On Fri, 26 Apr 2013 18:52:48 +0200 >> Alexander Graf wrote: >> >>> >>> On 26.04.2013, at 14:12, Dominik Dingel wrote: >>> From: Christian Paro Provide a loadparm property which can be

[Qemu-devel] [PATCH 23/30] target-ppc: add instruction flags for Book I 2.05

2013-04-26 Thread Alexander Graf
From: Aurelien Jarno .. and enable it on POWER7 CPU. Reviewed-by: Richard Henderson Signed-off-by: Aurelien Jarno Signed-off-by: Alexander Graf --- target-ppc/cpu.h|4 +++- target-ppc/translate_init.c |2 +- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/t

[Qemu-devel] [PATCH] tcg/i386: Workaround for clang not defining bit_CMOV

2013-04-26 Thread Juergen Lock
I guess I should have put [PATCH] in the Subject, sorry. On Fri, Apr 26, 2013 at 09:11:41PM +0200, Juergen Lock wrote: This fixes the build with clang on 32 bit x86. Signed-off-by: Juergen Lock --- a/tcg/i386/tcg-target.c +++ b/tcg/i386/tcg-target.c @@ -104,6 +104,10 @@ static const int tcg_ta

[Qemu-devel] [PATCH 1/3] ide: add drive-id property

2013-04-26 Thread Anthony Liguori
This returns a string similar to what the guest would display in something like Linux's /dev/disk/by-id/ path. Signed-off-by: Anthony Liguori --- hw/ide/qdev.c | 15 +++ 1 file changed, 15 insertions(+) diff --git a/hw/ide/qdev.c b/hw/ide/qdev.c index 8a9a891..94b1664 100644 --- a/h

[Qemu-devel] [PATCH 3/3] gtk: add devices menu to allow changing removable block devices

2013-04-26 Thread Anthony Liguori
To generate this menu, we first walk the composition tree to find any device with a 'drive' property. We then record these devices and the BlockDriverState that they are associated with. Then we use query-block to get the BDS state for each of the discovered devices. This code doesn't handle hot

[Qemu-devel] [PATCH 2/3] monitor: add notifier list for monitor events

2013-04-26 Thread Anthony Liguori
This lets us register for events internally within QEMU. Signed-off-by: Anthony Liguori --- include/qapi/qmp/qevents.h | 21 + monitor.c | 15 +++ 2 files changed, 36 insertions(+) create mode 100644 include/qapi/qmp/qevents.h diff --git a/inclu

[Qemu-devel] [PATCH 0/3] gtk: add Devices menu

2013-04-26 Thread Anthony Liguori
This small series adds a devices menu to the GTK UI allowing a user to change or eject a removable block device from the menus.

Re: [Qemu-devel] [PATCH 1.5 v2 0/3] fix win32 compilation

2013-04-26 Thread Blue Swirl
On Wed, Apr 24, 2013 at 8:59 PM, Paolo Bonzini wrote: > Here is a fix for the Win32 compilation problem that Blue reported, > and another nit I found while testing. > > Paolo Bonzini (3): > add missing inclusions of config-host.h > win32: add readv/writev emulation > win32: generate console

Re: [Qemu-devel] [PATCH 01/10] Common: Add a default bootindex for all applicable devices

2013-04-26 Thread Christian Borntraeger
On 26/04/13 20:01, Dominik Dingel wrote: > On Fri, 26 Apr 2013 11:36:11 -0500 > Anthony Liguori wrote: > >> Dominik Dingel writes: >> >>> Currently only devices with a positive boot index will be pushed in the >>> fw_boot_order queue, so if no boot index at all will be specified, >>> the queue e

[Qemu-devel] [PATCH 17/30] pseries: Convert VIO code to QOM style type safe(ish) casts

2013-04-26 Thread Alexander Graf
From: David Gibson Curerntly the pseries VIO device code contains quite a few explicit uses of DO_UPCAST and plain C casts. This is (obviously) type unsafe, and not the conventional way of doing things in the QOM model. This patch converts the code to use the QOM convention of per-type macros t

[Qemu-devel] [PATCH 03/24] S390: IPL: Use different firmware for different machines

2013-04-26 Thread Alexander Graf
We have a virtio-s390 and a virtio-ccw machine in QEMU. Both use vastly different ways to do I/O. Having the same firmware blob for both doesn't really make any sense. Instead, let's parametrize the firmware file name, so that we can have different blobs for different machines. Signed-off-by: Ale

[Qemu-devel] [PATCH 02/30] PPC: e500: advertise 4.2 MPIC only if KVM supports EPR

2013-04-26 Thread Alexander Graf
From: Stuart Yoder Older KVM versions don't support EPR which breaks guests when we announce MPIC variants that support EPR. Catch that case and expose only MPIC version 2.0 which tells the guest that we don't support the EPR capability yet. Signed-off-by: Stuart Yoder [agraf: Add comment, rou

[Qemu-devel] [PATCH 09/24] S390: ccw firmware: Add bootmap interpreter

2013-04-26 Thread Alexander Graf
On s390, there is an architected boot map format that we can read to boot a certain entry off the disk. Implement a simple reader for this that always boots the first (default) entry. Signed-off-by: Alexander Graf --- pc-bios/s390-ccw/bootmap.c | 235

[Qemu-devel] tcg/i386: Workaround for clang not defining bit_CMOV

2013-04-26 Thread Juergen Lock
This fixes the build with clang on 32 bit x86. Signed-off-by: Juergen Lock --- a/tcg/i386/tcg-target.c +++ b/tcg/i386/tcg-target.c @@ -104,6 +104,10 @@ static const int tcg_target_call_oarg_re # define have_cmov 1 #elif defined(CONFIG_CPUID_H) #include +#ifndef bit_CMOV +/* clang's doesn't

Re: [Qemu-devel] [PATCH v3 03/24] trace: Let the user specify her own trace-events file

2013-04-26 Thread Lluís Vilanova
Paolo Bonzini writes: > Il 21/04/2013 21:11, Lluís Vilanova ha scritto: >> With this option the user can perform multiple builds of QEMU with different >> tracing event properties. > I don't understand why this is useful? If it is just to add/remove > "disable" here and there, surely the user sh

Re: [Qemu-devel] [PATCH 01/10] Common: Add a default bootindex for all applicable devices

2013-04-26 Thread Gleb Natapov
On Fri, Apr 26, 2013 at 01:55:23PM -0500, Anthony Liguori wrote: > Dominik Dingel writes: > > > On Fri, 26 Apr 2013 11:36:11 -0500 > > Anthony Liguori wrote: > > > >> Dominik Dingel writes: > >> > >> > Currently only devices with a positive boot index will be pushed in the > >> > fw_boot_order

Re: [Qemu-devel] [PATCH 3/7] block: move snapshot code in block.c to block/snapshot.c

2013-04-26 Thread Eric Blake
On 04/26/2013 03:31 AM, Wenchao Xia wrote: > All snapshot related code, except bdrv_snapshot_dump(), is moved to > block/snapshot.c. bdrv_snapshot_dump() will be moved to another file later. > It also fixes small code style errors reported by check script. > > Signed-off-by: Wenchao Xia > --- >

Re: [Qemu-devel] [RFC 7/7] target-i386: Disable direct passthrough of PMU CPUID leaf by default

2013-04-26 Thread Eduardo Habkost
On Fri, Apr 26, 2013 at 07:41:10PM +0200, Igor Mammedov wrote: > On Fri, 26 Apr 2013 14:30:40 -0300 > Eduardo Habkost wrote: > > > On Fri, Apr 26, 2013 at 05:39:15PM +0200, Igor Mammedov wrote: > > > On Fri, 26 Apr 2013 17:33:18 +0200 > > > Andreas Färber wrote: > > > > > > > Am 26.04.2013 17:3

Re: [Qemu-devel] [PATCH 01/10] Common: Add a default bootindex for all applicable devices

2013-04-26 Thread Anthony Liguori
Dominik Dingel writes: > On Fri, 26 Apr 2013 11:36:11 -0500 > Anthony Liguori wrote: > >> Dominik Dingel writes: >> >> > Currently only devices with a positive boot index will be pushed in the >> > fw_boot_order queue, so if no boot index at all will be specified, >> > the queue ends up empty.

[Qemu-devel] [PATCH 16/30] target-ppc: Synchronize VPA state with KVM

2013-04-26 Thread Alexander Graf
From: David Gibson For PAPR guests, KVM tracks the various areas registered with the H_REGISTER_VPA hypercall. For full emulation, of course, these are tracked within qemu. At present these values are not synchronized. This is a problem for reset (qemu's reset of the VPA address is not pushed

[Qemu-devel] [PATCH 14/30] target-ppc: Add more stubs for POWER7 PMU registers

2013-04-26 Thread Alexander Graf
From: David Gibson In addition to the performance monitor registers found on nearly all 6xx chips, the POWER7 has two additional counters (PMC5 & PMC6) and an extra control register (MMCRA). This patch adds stub support for them to qemu - the registers won't do anything, but with this change won

[Qemu-devel] [PATCH 13/30] pseries: Fixes and enhancements to L1 cache properties

2013-04-26 Thread Alexander Graf
From: David Gibson PAPR requires that the device tree's CPU nodes have several properties with information about the L1 cache. We already create two of these properties, but with incorrect names - "[id]cache-block-size" instead of "[id]-cache-block-size" (note the extra hyphen). We were also mi

[Qemu-devel] [RFC] Continuous work on sandboxing

2013-04-26 Thread Eduardo Otubo
Hello folks, Resuming the sandboxing work, I'd like to ask for comments on the ideias I have: 1. Reduce whitelist to the optimal subset: Run various tests on Qemu with different configurations to reduce to the smallest syscall set possible; test and send a patch weekly (this is already bei

[Qemu-devel] [PATCH 21/30] target-ppc: optimize fabs, fnabs, fneg

2013-04-26 Thread Alexander Graf
From: Aurelien Jarno fabs, fnabs and fneg are just flipping the bit sign of an FP register, this can be implemented in TCG instead of using softfloat. Signed-off-by: Aurelien Jarno Signed-off-by: Alexander Graf --- target-ppc/fpu_helper.c | 31 --- target-ppc/hel

[Qemu-devel] [PATCH 12/30] pseries: Fix incorrect calculation of RMA size in certain configurations

2013-04-26 Thread Alexander Graf
From: David Gibson For the pseries machine, we need to advertise to the guest the size of its RMA - that is the amount of memory it can access with the MMU off. For HV KVM, this is constrained by the hardware limitations on the virtual RMA of one hash PTE per PTE group in the hash page table. W

[Qemu-devel] [PATCH 29/30] target-ppc: emulate store doubleword pair instructions

2013-04-26 Thread Alexander Graf
From: Aurelien Jarno Needed for Power ISA version 2.05 compliance. The check for odd register pairs is done using the invalid bits. Signed-off-by: Aurelien Jarno Signed-off-by: Alexander Graf --- target-ppc/translate.c | 48 1 files changed,

[Qemu-devel] [PATCH 30/30] target-ppc: add support for extended mtfsf/mtfsfi forms

2013-04-26 Thread Alexander Graf
From: Aurelien Jarno Power ISA 2.05 adds support for extended mtfsf/mtfsfi form, with a new W field to select the upper part of the FPCSR register. For that the helper is changed to handle 64-bit input values and mask with up to 16 bits. The mtfsf/mtfsfi instructions do not have the W bit marked

[Qemu-devel] [PATCH 03/30] PPC: Remove env->hreset_excp_prefix

2013-04-26 Thread Alexander Graf
From: Fabien Chouteau This value is not needed if we use correctly the MSR[IP] bit. excp_prefix is always 0x, except when the MSR[IP] bit is implemented and set to 1, in that case excp_prefix is 0xfff0. The handling of MSR[IP] was already implemented but not used at reset because th

[Qemu-devel] [PATCH 15/30] pseries: Fix some small errors in XICS logic

2013-04-26 Thread Alexander Graf
From: David Gibson Under certain circumstances the emulation for the pseries "XICS" interrupt controller was clearing a pending interrupt from the XISR register, without also clearing the corresponding priority variable. This will cause problems later when can trigger sanity checks in the under-

[Qemu-devel] [PATCH 18/30] pseries: Generate device paths for VIO devices

2013-04-26 Thread Alexander Graf
From: David Gibson This patch implements a get_dev_path qdev hook for the pseries paravirtual VIO bus. With upcoming savevm support, this will become very important for scsi disks hanging of VIO virtual SCSI adapters. scsibus_get_dev_path uses the get_dev_path of the parent adapter if available

[Qemu-devel] [PATCH 10/30] PPC: mac newworld: fix cpu NIP reset value

2013-04-26 Thread Alexander Graf
On -M mac99, we can run 970 CPUs. However, these CPUs define the initial instruction pointer they start execution at as part of their bootup protocol, so effectively it's up to the board to decide where they start. This went unnoticed, because they used to boot at the same location our flash was m

[Qemu-devel] [PATCH 06/30] PPC: Add breakpoint registers for 603 and e300

2013-04-26 Thread Alexander Graf
From: Fabien Chouteau Signed-off-by: Fabien Chouteau Signed-off-by: Alexander Graf --- target-ppc/translate_init.c | 34 ++ 1 files changed, 34 insertions(+), 0 deletions(-) diff --git a/target-ppc/translate_init.c b/target-ppc/translate_init.c index f1d150a.

[Qemu-devel] [PATCH 26/30] target-ppc: emulate fcpsgn instruction

2013-04-26 Thread Alexander Graf
From: Aurelien Jarno Needed for Power ISA version 2.05 compliance. Reviewed-by: Richard Henderson Signed-off-by: Aurelien Jarno Signed-off-by: Alexander Graf --- target-ppc/translate.c | 14 ++ 1 files changed, 14 insertions(+), 0 deletions(-) diff --git a/target-ppc/translate

[Qemu-devel] [PATCH 27/30] target-ppc: emulate lfiwax instruction

2013-04-26 Thread Alexander Graf
From: Aurelien Jarno Needed for Power ISA version 2.05 compliance. Reviewed-by: Richard Henderson Signed-off-by: Aurelien Jarno Signed-off-by: Alexander Graf --- target-ppc/translate.c | 18 -- 1 files changed, 16 insertions(+), 2 deletions(-) diff --git a/target-ppc/trans

[Qemu-devel] [PATCH 22/30] disas: Disassemble all ppc insns for the guest

2013-04-26 Thread Alexander Graf
From: Aurelien Jarno Reviewed-by: Richard Henderson Signed-off-by: Aurelien Jarno Signed-off-by: Alexander Graf --- disas.c |1 + 1 files changed, 1 insertions(+), 0 deletions(-) diff --git a/disas.c b/disas.c index 67103e0..e51127e 100644 --- a/disas.c +++ b/disas.c @@ -227,6 +227,7 @@

[Qemu-devel] [PATCH 09/30] Enable kvm emulated watchdog

2013-04-26 Thread Alexander Graf
From: Bharat Bhushan Enable the KVM emulated watchdog if KVM supports (use the capability enablement in watchdog handler). Also watchdog exit (KVM_EXIT_WATCHDOG) handling is added. Watchdog state machine is cleared whenever VM state changes to running. This is to handle the cases like return from

[Qemu-devel] [PATCH 11/30] PPC: Fix compile with profiling enabled

2013-04-26 Thread Alexander Graf
When using profiling, we rely on profile_getclock() being available at our disposal. Somehow that function got moved from an indirect include we used to have in translate-init.c, so that we were now left not properly compiling anymore. Add an explicit include to timer.h which defines profile_getcl

[Qemu-devel] [PATCH 20/30] PPC: Fix dcbz for linux-user on 970

2013-04-26 Thread Alexander Graf
The default with linux-user for dcbz on 970 is to emulate 32 byte clears. However, redoing the dcbzl support we added a check to not honor the bit in HID5 that sets this. Remove the #ifdef check on linux user, so that we get 32 byte clears again. Reported-by: Riku Voipio Signed-off-by: Alexander

[Qemu-devel] [PATCH 01/30] target-ppc: Enable ISEL on POWER7

2013-04-26 Thread Alexander Graf
From: Aurelien Jarno ISEL is a Power ISA 2.06 instruction and thus is available on POWER7. Given this is trapped and emulated by the Linux kernel, I guess it went unnoticed. Signed-off-by: Aurelien Jarno Signed-off-by: Alexander Graf --- target-ppc/translate_init.c |2 +- 1 files changed,

[Qemu-devel] [PATCH 28/30] target-ppc: emulate load doubleword pair instructions

2013-04-26 Thread Alexander Graf
From: Aurelien Jarno Needed for Power ISA version 2.05 compliance. The check for odd register pairs is done using the invalid bits. Signed-off-by: Aurelien Jarno Signed-off-by: Alexander Graf --- target-ppc/translate.c | 48 1 files changed,

[Qemu-devel] [PULL 00/30] ppc patch queue 2013-04-26

2013-04-26 Thread Alexander Graf
Hi Blue / Aurelien, This is my current patch queue for ppc. Please pull. Alex The following changes since commit bf9b255f484fd61cbaa91faeff254140a0ecd18c: Anthony Liguori (1): gtk: refactor menu creation are available in the git repository at: git://github.com/agraf/qemu.git ppc-

[Qemu-devel] [PATCH 19/30] powerpc: correctly handle fpu exceptions.

2013-04-26 Thread Alexander Graf
From: Tristan Gingold Raise the exception on the first occurence, do not wait for the next floating point operation. Signed-off-by: Fabien Chouteau Signed-off-by: Alexander Graf --- target-ppc/fpu_helper.c | 23 --- 1 files changed, 12 insertions(+), 11 deletions(-) dif

[Qemu-devel] [PATCH 25/30] target-ppc: emulate prtyw and prtyd instructions

2013-04-26 Thread Alexander Graf
From: Aurelien Jarno Needed for Power ISA version 2.05 compliance. Reviewed-by: Richard Henderson Signed-off-by: Aurelien Jarno [agraf: fix 32-bit host compile, simplify code] Signed-off-by: Alexander Graf --- target-ppc/translate.c | 34 ++ 1 files changed,

[Qemu-devel] [PATCH 19/24] S390: ccw firmware: Add compiled blob

2013-04-26 Thread Alexander Graf
Now that we have all the source code ready, add a compiled blob into the QEMU source tree, so that people without access to an s390 compiler can run the s390-ccw firmware. Signed-off-by: Alexander Graf --- Makefile |1 + pc-bios/s390-ccw.img | Bin 0 -> 9432 bytes 2 files change

[Qemu-devel] [PATCH 07/24] S390: ccw firmware: Add virtio device drivers

2013-04-26 Thread Alexander Graf
In order to boot, we need to be able to access a virtio-blk device through the CCW bus. Implement support for this. Signed-off-by: Alexander Graf --- pc-bios/s390-ccw/cio.h| 322 + pc-bios/s390-ccw/virtio.c | 274 +

[Qemu-devel] [PATCH 24/30] target-ppc: emulate cmpb instruction

2013-04-26 Thread Alexander Graf
From: Aurelien Jarno Needed for Power ISA version 2.05 compliance. Reviewed-by: Richard Henderson Signed-off-by: Aurelien Jarno Signed-off-by: Alexander Graf --- target-ppc/helper.h |1 + target-ppc/int_helper.c | 15 +++ target-ppc/translate.c |8 3 files

[Qemu-devel] [PATCH 08/30] linux-headers: Update to kvm/queue

2013-04-26 Thread Alexander Graf
Based on kvm.git queue branch with commit e1e2e605. Signed-off-by: Alexander Graf --- linux-headers/asm-powerpc/kvm.h |5 + linux-headers/linux/kvm.h |3 +++ 2 files changed, 8 insertions(+), 0 deletions(-) diff --git a/linux-headers/asm-powerpc/kvm.h b/linux-headers/asm-power

[Qemu-devel] [PATCH 15/24] s390-ccw.img: Detect devices with stsch.

2013-04-26 Thread Alexander Graf
From: Cornelia Huck stsch is the canonical way to detect devices. As a bonus, we can abort the loop if we get cc 3, and we need to check only the valid devices (dnv set). Signed-off-by: Cornelia Huck Signed-off-by: Alexander Graf --- pc-bios/s390-ccw/main.c |9 ++--- 1 files changed,

[Qemu-devel] [PATCH 20/24] S390: CCW: Use new, working firmware by default

2013-04-26 Thread Alexander Graf
Since we now have working firmware for s390-ccw in the tree, we can default to it on our s390-ccw machine, rendering it more useful. Signed-off-by: Alexander Graf --- hw/s390x/s390-virtio-ccw.c |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/hw/s390x/s390-virtio-ccw.c b

[Qemu-devel] [PATCH 05/30] PPC: fix hreset_vector for 60x, 7x0, 7x5, G2, MPC8xx, MPC5xx, 7400 and 7450

2013-04-26 Thread Alexander Graf
From: Fabien Chouteau According to the different user's manuals, the vector offset for system reset (both /HRESET and /SRESET) is 0x00100. This patch may break support of some executables, as the power-on start address may change. For a specific board, if the power-on start address is different

[Qemu-devel] [PATCH 24/24] virtio-rng-s390: add properties.

2013-04-26 Thread Alexander Graf
From: KONRAD Frederic I don't see any reason why these properties are missing. Signed-off-by: KONRAD Frederic Note: Need to apply virtio-rng-refactoring first! Acked-by: Cornelia Huck Signed-off-by: Alexander Graf --- hw/s390x/s390-virtio-bus.c |8 1 files changed, 8 insertions

[Qemu-devel] [PATCH 16/24] s390-ccw.img: Enhance drain_irqs().

2013-04-26 Thread Alexander Graf
From: Cornelia Huck - Use tpi + tsch to get interrupts. - Return an error if the irb indicates problems. Signed-off-by: Cornelia Huck Signed-off-by: Alexander Graf --- pc-bios/s390-ccw/virtio.c | 13 +++-- 1 files changed, 11 insertions(+), 2 deletions(-) diff --git a/pc-bios/s390-

[Qemu-devel] [PATCH 06/24] S390: ccw firmware: Add sclp output

2013-04-26 Thread Alexander Graf
In order to communicate with the user, we need an I/O mechanism that he can read. Implement SCLP ASCII support, which happens to be the default in the s390 ccw machine. This file is missing read support for now. It can only print messages. Signed-off-by: Alexander Graf --- pc-bios/s390-ccw/sclp

[Qemu-devel] [PATCH 22/24] Allow selective runtime register synchronization

2013-04-26 Thread Alexander Graf
From: Jason J. Herne We want to avoid expensive register synchronization IOCTL's on the hot path so a new kvm_s390_get_registers_partial() is introduced as a compliment to kvm_arch_get_registers(). The new function is called on the hot path, and kvm_arch_get_registers() is called when we need th

[Qemu-devel] [PATCH 04/30] target-ppc: fix nego and subf*o instructions

2013-04-26 Thread Alexander Graf
From: Aurelien Jarno The overflow computation of nego and subf*o instructions has been broken in commit ffe30937. Contrary to other targets, the instruction is subtract from an not subtract on PowerPC. This patch fixes the issue by using the correct argument in the xor computation. Thanks to Pet

[Qemu-devel] [PATCH 17/24] s390-ccw.img: Rudimentary error checking.

2013-04-26 Thread Alexander Graf
From: Cornelia Huck Try to handle at least some of the errors that may happen. Signed-off-by: Cornelia Huck Signed-off-by: Alexander Graf --- pc-bios/s390-ccw/virtio.c | 21 +++-- 1 files changed, 15 insertions(+), 6 deletions(-) diff --git a/pc-bios/s390-ccw/virtio.c b/pc-

[Qemu-devel] [PATCH 08/24] S390: ccw firmware: Add glue header

2013-04-26 Thread Alexander Graf
Like all great programs, we have to call between different functions in different object files. And all of them need a common ground of defines. Provide a file that provides these defines. Signed-off-by: Alexander Graf --- pc-bios/s390-ccw/s390-ccw.h | 131 +

[Qemu-devel] [PATCH 12/24] s390-ccw.img: build s390-ccw rom on s3900 system by default

2013-04-26 Thread Alexander Graf
From: Christian Borntraeger Lets build the s390-ccw rom if on s390. Also fix the separate build folder case. Signed-off-by: Christian Borntraeger Signed-off-by: Alexander Graf --- configure |7 ++- 1 files changed, 6 insertions(+), 1 deletions(-) diff --git a/configure b/configure in

[Qemu-devel] [PATCH 21/24] Common: Add quick access to first boot device

2013-04-26 Thread Alexander Graf
From: Dominik Dingel Instead of manually parsing the boot_list as character stream, we can access the nth boot device, specified by the position in the boot order. Signed-off-by: Dominik Dingel Reviewed-by: Anthony Liguori Signed-off-by: Alexander Graf --- include/sysemu/sysemu.h |2 ++

[Qemu-devel] [PATCH 18/24] s390-ccw.img: Get queue config from host.

2013-04-26 Thread Alexander Graf
From: Cornelia Huck Ask the host about the configuration instead of guessing it. Signed-off-by: Cornelia Huck Signed-off-by: Alexander Graf --- pc-bios/s390-ccw/virtio.c | 10 +++--- pc-bios/s390-ccw/virtio.h |5 + 2 files changed, 12 insertions(+), 3 deletions(-) diff --git a/

[Qemu-devel] [PATCH 13/24] s390-ccw.img: Take care of the elf->img transition

2013-04-26 Thread Alexander Graf
From: Christian Borntraeger We have to call strip with s390-ccw.elf as input and s390-ccw.img as output Signed-off-by: Christian Borntraeger Signed-off-by: Alexander Graf --- pc-bios/s390-ccw/Makefile |4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/pc-bios/s390-ccw

[Qemu-devel] [PULL 00/24] s390 patch queue 2013-04-26

2013-04-26 Thread Alexander Graf
Hi Blue / Aurelien, This is my current patch queue for s390. Please pull. Alex The following changes since commit bf9b255f484fd61cbaa91faeff254140a0ecd18c: Anthony Liguori (1): gtk: refactor menu creation are available in the git repository at: git://github.com/agraf/qemu.git s39

[Qemu-devel] [PATCH 23/24] Utilize selective runtime reg sync for hot code paths

2013-04-26 Thread Alexander Graf
From: Jason J. Herne Make use of new kvm_s390_get_registers_partial() for kvm_handle_css_inst() and handle_hypercall() since they only need registers from the partial set and they are called quite frequently. Signed-off-by: Jason J. Herne Signed-off-by: Alexander Graf --- target-s390x/kvm.c |

[Qemu-devel] [PATCH 10/24] S390: ccw firmware: Add Makefile

2013-04-26 Thread Alexander Graf
This patch adds a makefile, so we can build our ccw firmware. Also add the resulting binaries to .gitignore, so that nobody is annoyed they might be in the tree. Signed-off-by: Alexander Graf --- .gitignore|2 ++ pc-bios/s390-ccw/Makefile | 26 ++ 2

  1   2   3   4   >