Re: [Qemu-devel] [PATCH V8 4/9] introduce aux-bus

2016-06-07 Thread KONRAD Frederic
Le 06/06/2016 à 20:41, Alistair Francis a écrit : On Mon, Jun 6, 2016 at 7:21 AM, wrote: From: KONRAD Frederic This introduces a new bus: aux-bus. It contains an address space for aux slaves devices and a bridge to an I2C bus for I2C through AUX transactions. Signed-off-by: KONRAD Freder

Re: [Qemu-devel] [RFC PATCH v3 3/3] VFIO Type1 IOMMU change: to support with iommu and without iommu

2016-06-07 Thread Dong Jia
On Tue, 7 Jun 2016 02:47:10 + "Tian, Kevin" wrote: > > From: Dong Jia > > Sent: Monday, June 06, 2016 2:59 PM > > > > [...] > > > Channel I/O is quite different to PCI, so I copied some more details > > here. Hope these could help. > > > > Channel subsystem: > > The channel subsystem dire

Re: [Qemu-devel] [PATCH 0/3] ppc: complete the new HV mode

2016-06-07 Thread Cédric Le Goater
On 06/06/2016 08:38 AM, Mark Cave-Ayland wrote: > On 06/06/16 07:30, Cedric Le Goater wrote: > >> On 06/06/2016 08:27 AM, Cédric Le Goater wrote: >>> On 06/06/2016 12:26 AM, Mark Cave-Ayland wrote: On 05/06/16 18:41, Cédric Le Goater wrote: > Hello Mark, > > On 06/03/2016 03:

Re: [Qemu-devel] [Qemu-stable] Broken live Migration in Qemu 2.5.1.1?

2016-06-07 Thread Peter Lieven
Am 06.06.2016 um 18:13 schrieb Stefan Priebe - Profihost AG: We're most probably seeing the same while migrating a machine running balanceng but haven't thought this might be a qemu bug. Instead we're investigating with balanceng people. Waiting for your further results. This obviously is a

Re: [Qemu-devel] [PATCH v2 06/19] linux-user: Use safe_syscall for sigsuspend syscalls

2016-06-07 Thread Laurent Vivier
Le 27/05/2016 à 16:51, Peter Maydell a écrit : > Use the safe_syscall wrapper for sigsuspend syscalls. This > means that we will definitely deliver a signal that arrives > before we do the sigsuspend call, rather than blocking first > and delivering afterwards. > > Signed-off-by: Peter Maydell

Re: [Qemu-devel] QEMU 2.7 release schedule?

2016-06-07 Thread Alex Bennée
Peter Maydell writes: > Well, time to make a decision about our release date for 2.7. > > If you start out with "let's put the release in august like it > usually is but not so close to KVM Forum (24-26 Aug) as to > be likely to slip in to it", then you get something like: > > Jun 21 softfreeze

[Qemu-devel] [PATCH] net: fix qemu_announce_self not emitting packets

2016-06-07 Thread Peter Lieven
commit fefe2a78 accidently dropped the code path for injecting raw packets. This feature is needed for sending gratuitous ARPs after an incoming migration has completed. The result is increased network downtime for vservers where the network card is not virtio-net with the VIRTIO_NET_F_GUEST_ANNOUN

Re: [Qemu-devel] [Qemu-stable] Broken live Migration in Qemu 2.5.1.1?

2016-06-07 Thread Peter Lieven
Am 06.06.2016 um 18:13 schrieb Stefan Priebe - Profihost AG: We're most probably seeing the same while migrating a machine running balanceng but haven't thought this might be a qemu bug. Instead we're investigating with balanceng people. Waiting for your further results. Can you try the patc

Re: [Qemu-devel] [PATCH v2 15/19] linux-user: Use safe_syscall for kill, tkill and tgkill syscalls

2016-06-07 Thread Laurent Vivier
Le 27/05/2016 à 16:51, Peter Maydell a écrit : > Use the safe_syscall wrapper for the kill, tkill and tgkill syscalls. > Without this, if a thread sent a SIGKILL to itself it could kill the > thread before we had a chance to process a signal that arrived just > before the SIGKILL, and that signal

Re: [Qemu-devel] [PATCH] scsi: mptsas: infinite loop while fetching requests

2016-06-07 Thread Paolo Bonzini
On 07/06/2016 08:42, P J P wrote: > +-- On Tue, 24 May 2016, P J P wrote --+ > | diff --git a/hw/scsi/mptsas.c b/hw/scsi/mptsas.c > | index 499c146..be88e16 100644 > | --- a/hw/scsi/mptsas.c > | +++ b/hw/scsi/mptsas.c > | @@ -754,11 +754,6 @@ static void mptsas_fetch_request(MPTSASState *s) > |

Re: [Qemu-devel] [PATCH v2] scsi: megasas: initialise local configuration data buffer

2016-06-07 Thread Paolo Bonzini
On 07/06/2016 08:51, P J P wrote: > +-- On Wed, 25 May 2016, P J P wrote --+ > | Update as per > | -> https://lists.gnu.org/archive/html/qemu-devel/2016-05/msg04402.html > | > | diff --git a/hw/scsi/megasas.c b/hw/scsi/megasas.c > | index dcbd3e1..bf642d4 100644 > | --- a/hw/scsi/megasas.c > |

Re: [Qemu-devel] [PATCH v2 05/22] target-arm: Add mp-affinity property for ARM CPU class

2016-06-07 Thread Shannon Zhao
On 2016/5/26 22:55, Peter Maydell wrote: > From: Pavel Fedin > > This allows to override default affinity IDs on a per-machine basis, and > possibility to retrieve IDs will be used by vGICv3 live migration code. > > Signed-off-by: Pavel Fedin > Signed-off-by: Peter Maydell Reviewed-by: Shan

Re: [Qemu-devel] [PATCH v2 06/22] hw/intc/arm_gicv3: Add state information

2016-06-07 Thread Shannon Zhao
On 2016/5/26 22:55, Peter Maydell wrote: > From: Pavel Fedin > > Add state information to GICv3 object structure and implement > arm_gicv3_common_reset(). > > This commit includes accessor functions for the fields which are > stored as bitmaps in uint32_t arrays. > > Signed-off-by: Pavel Fedi

Re: [Qemu-devel] [PATCH] net: fix qemu_announce_self not emitting packets

2016-06-07 Thread Paolo Bonzini
On 07/06/2016 09:37, Peter Lieven wrote: > commit fefe2a78 accidently dropped the code path for injecting > raw packets. This feature is needed for sending gratuitous ARPs > after an incoming migration has completed. The result is increased > network downtime for vservers where the network card i

Re: [Qemu-devel] [PATCH v2 0/6] user-exec: cpu_resume_from_signal() cleanups

2016-06-07 Thread Riku Voipio
On Mon, Jun 06, 2016 at 05:57:35PM +0100, Peter Maydell wrote: > On 6 June 2016 at 15:55, Peter Maydell wrote: > > Ping! > > Thanks for the review, Sergey. Unless anybody else wants to review > or wants to take it through their tree (Riku?), I propose to apply > this to master sometime later this

Re: [Qemu-devel] QEMU 2.7 release schedule?

2016-06-07 Thread Peter Maydell
On 7 June 2016 at 08:29, Alex Bennée wrote: > Do you collect a list of baking features likely to go in or is it just a > case of "patches have been on list by now"? I don't collect feature lists; I treat QEMU releases as roughly fixed dates, and whatever's ready to go in gets in. We have settled

Re: [Qemu-devel] [PATCH] net: fix qemu_announce_self not emitting packets

2016-06-07 Thread Peter Lieven
Am 07.06.2016 um 09:55 schrieb Paolo Bonzini: On 07/06/2016 09:37, Peter Lieven wrote: commit fefe2a78 accidently dropped the code path for injecting raw packets. This feature is needed for sending gratuitous ARPs after an incoming migration has completed. The result is increased network downti

[Qemu-devel] [PATCH] target-i386: fix iret emulation correctness

2016-06-07 Thread poletaev
From: Dmitry Poletaev Subject: [PATCH] target-i386: fix iret emulation correctness Signed-off-by: Dmitry Poletaev According to Intel manual: "If the NMI handler is a virtual-8086 task with an IOPL of less than 3, an IRET instruction issued from the handler generates a general-protection ex

Re: [Qemu-devel] [PATCH] target-i386: fix iret emulation correctness

2016-06-07 Thread Paolo Bonzini
On 07/06/2016 10:07, poletaev wrote: > diff --git a/target-i386/translate.c b/target-i386/translate.c > index f010022..c409baf 100644 > --- a/target-i386/translate.c > +++ b/target-i386/translate.c > @@ -6319,6 +6319,7 @@ static target_ulong disas_insn(CPUX86State *env, > DisasContext *s, >

[Qemu-devel] Adding throttling to virtio-9p

2016-06-07 Thread Pradeep Kiruvale
Hi All, I am trying to add the throttle to the virtio-9p devices using the throttle APIs that are already exists in the qemu. I need help to understand the device model and where to add the throttling. I am digging through the code since a week or so but failed to understand how to tell the drive

Re: [Qemu-devel] [PATCH] net: fix qemu_announce_self not emitting packets

2016-06-07 Thread Paolo Bonzini
On 07/06/2016 10:02, Peter Lieven wrote: > Am 07.06.2016 um 09:55 schrieb Paolo Bonzini: >> >> On 07/06/2016 09:37, Peter Lieven wrote: >>> commit fefe2a78 accidently dropped the code path for injecting >>> raw packets. This feature is needed for sending gratuitous ARPs >>> after an incoming migr

Re: [Qemu-devel] [PATCH] crypto: aes: always rename internal symbols

2016-06-07 Thread Daniel P. Berrange
On Mon, Jun 06, 2016 at 06:05:35PM -0400, Mike Frysinger wrote: > From: Mike Frysinger > > OpenSSL's libcrypto always defines AES symbols with the same names as > qemu's local aes code. This is problematic when enabling at least curl > as that frequently also uses libcrypto. It might not be not

Re: [Qemu-devel] [PATCH 0/3] ppc: complete the new HV mode

2016-06-07 Thread Mark Cave-Ayland
On 07/06/16 08:04, Cédric Le Goater wrote: 2. I have an old ibook G4 from which I dd'ed the disk. openbios complains for some invalid state. is that supported ? >> >> Yes, OpenBIOS should boot most things these days (MorphOS is the only >> execption I know of where the bootloader won

Re: [Qemu-devel] [Qemu-block] [PATCH] qcow2 resize with snapshot

2016-06-07 Thread zhangzhiming
hi, need for someone's review of my code. no one does it for nearly one week. thanks! zhangzhiming zhangzhimin...@meituan.com > On Jun 1, 2016, at 6:24 PM, zhangzhiming wrote: > > hi, here are all changes of my code. thanks for the review! > > zhangzhiming > zhangzhimin...@meituan.com

Re: [Qemu-devel] [Qemu-stable] Broken live Migration in Qemu 2.5.1.1?

2016-06-07 Thread Stefan Priebe - Profihost AG
Am 07.06.2016 um 09:38 schrieb Peter Lieven: > Am 06.06.2016 um 18:13 schrieb Stefan Priebe - Profihost AG: >> We're most probably seeing the same while migrating a machine running >> balanceng but haven't thought this might be a qemu bug. Instead we're >> investigating with balanceng people. >> >

Re: [Qemu-devel] [Xen-devel] [PULL 3/4] xen: add pvUSB backend

2016-06-07 Thread Olaf Hering
On Mon, May 23, Gerd Hoffmann wrote: > +++ b/hw/usb/Makefile.objs > +common-obj-$(CONFIG_XEN_BACKEND) += xen-usb.o > +++ b/hw/usb/xen-usb.c > +usb_bus_new(&usbif->bus, sizeof(usbif->bus), &xen_usb_bus_ops, > xen_sysdev); xen_sysdev is in an i386-only file, as a result qemu fails to link. Ol

Re: [Qemu-devel] [PATCH v2 07/22] hw/intc/arm_gicv3: Move irq lines into GICv3CPUState structure

2016-06-07 Thread Shannon Zhao
On 2016/5/26 22:55, Peter Maydell wrote: > Move the GICv3 parent_irq and parent_fiq pointers into the > GICv3CPUState structure rather than giving them their own array. > This will make it easy to assert the IRQ and FIQ lines for a > particular CPU interface without having to know or calculate >

Re: [Qemu-devel] [PATCH 3/3] KVM: use KVM_CAP_MAX_VCPU_ID

2016-06-07 Thread Greg Kurz
On Fri, 27 May 2016 13:16:49 +0200 Greg Kurz wrote: > On Fri, 27 May 2016 13:58:28 +1000 > David Gibson wrote: > > > On Thu, May 26, 2016 at 10:02:23AM +0200, Greg Kurz wrote: > > > As stated in linux/Documentation/virtual/kvm/api.txt: > > > > > > The maximum possible value for max_vcpu_id c

Re: [Qemu-devel] [PATCH] scsi: mptsas: infinite loop while fetching requests

2016-06-07 Thread P J P
+-- On Tue, 7 Jun 2016, Paolo Bonzini wrote --+ | > | +if (s->state != MPI_IOC_STATE_OPERATIONAL) { | > | +mptsas_set_fault(s, MPI_IOCSTATUS_INVALID_STATE); | > | +return; | > | +} | > | while (!MPTSAS_FIFO_EMPTY(s, request_post)) { | > | mptsas_fetch_request(s

Re: [Qemu-devel] [PATCH] linux-user: check if NETLINK_ROUTE is available

2016-06-07 Thread Riku Voipio
On Thu, Jun 02, 2016 at 10:14:15PM +0200, Laurent Vivier wrote: > Some IFLA_* symbols can be missing in the host linux/if_link.h, > but as they are enums and not "#defines", check in "configure" if > last known (IFLA_PROTO_DOWN) is available and if not, disable > management of NETLINK_ROUTE protoc

Re: [Qemu-devel] [PATCH v2] scsi: megasas: initialise local configuration data buffer

2016-06-07 Thread P J P
+-- On Tue, 7 Jun 2016, Paolo Bonzini wrote --+ | They are in already. In particular this is commit | d37af740730dbbb93960cd318e040372d04d6dcf. Okay, thank you. (sorry to bother you) -- Prasad J Pandit / Red Hat Product Security Team 47AF CE69 3A90 54AA 9045 1053 DD13 3D32 FE5B 041F

Re: [Qemu-devel] [PATCH v2 09/22] hw/intc/arm_gicv3: ARM GICv3 device framework

2016-06-07 Thread Shannon Zhao
On 2016/5/26 22:55, Peter Maydell wrote: > From: Shlomo Pongratz > > This patch includes the device class itself, some ID register > value functions which will be needed by both distributor > and redistributor, and some skeleton functions for handling > interrupts coming in and going out, which

[Qemu-devel] [PATCH] Make password based authentication the default for VNC

2016-06-07 Thread Attila-Mihaly Balazs
To improve the security of the embedded VNC server make password based authentication the default when no authentication mechanism is specified. If you really want to use "no authentication", a new authentication option called "insecure" is introduced which needs to be explicitly specified. Note:

Re: [Qemu-devel] [PATCH v2 3/5] qcow2: Make copy_sectors() byte based

2016-06-07 Thread Kevin Wolf
Am 07.06.2016 um 05:47 hat Eric Blake geschrieben: > On 06/06/2016 08:59 AM, Kevin Wolf wrote: > > This will allow copy on write operations where the overwritten part of > > the cluster is not aligned to sector boundaries. > > > > Also rename the function because it has nothing to do with sectors

[Qemu-devel] [PATCH v3 3/5] qcow2: Make copy_sectors() byte based

2016-06-07 Thread Kevin Wolf
This will allow copy on write operations where the overwritten part of the cluster is not aligned to sector boundaries. Also rename the function because it has nothing to do with sectors any more. Signed-off-by: Kevin Wolf --- block/qcow2-cluster.c | 55 +

Re: [Qemu-devel] [PATCH] Make password based authentication the default for VNC

2016-06-07 Thread Daniel P. Berrange
On Tue, Jun 07, 2016 at 12:13:06PM +0300, Attila-Mihaly Balazs wrote: > To improve the security of the embedded VNC server make password > based authentication the default when no authentication mechanism > is specified. VNC password authentication offers no meaningful level of security, so this i

Re: [Qemu-devel] [PATCH RFC v2 kernel] balloon: speed up inflating/deflating process

2016-06-07 Thread Li, Liang Z
Ping... Liang > -Original Message- > From: Li, Liang Z > Sent: Wednesday, June 01, 2016 10:41 AM > To: linux-ker...@vger.kernel.org > Cc: k...@vger.kernel.org; qemu-devel@nongnu.org; Michael S. Tsirkin; > Paolo Bonzini; Cornelia Huck; Amit Shah > Subject: RE: [PATCH RFC v2 kernel] balloo

Re: [Qemu-devel] [PATCH] Bind VNC to localhost unless otherwise specified to increase security

2016-06-07 Thread Daniel P. Berrange
On Mon, Jun 06, 2016 at 06:39:15PM +0300, Attila-Mihaly Balazs wrote: > Signed-off-by: Attila-Mihaly Balazs > --- > qemu-options.hx | 7 ++- > ui/vnc.c| 2 ++ > 2 files changed, 8 insertions(+), 1 deletion(-) > > diff --git a/qemu-options.hx b/qemu-options.hx > index 9f33361..80ade0d

Re: [Qemu-devel] [PATCH] net: fix qemu_announce_self not emitting packets

2016-06-07 Thread Stefan Priebe - Profihost AG
Am 07.06.2016 um 09:37 schrieb Peter Lieven: > commit fefe2a78 accidently dropped the code path for injecting > raw packets. This feature is needed for sending gratuitous ARPs > after an incoming migration has completed. The result is increased > network downtime for vservers where the network car

Re: [Qemu-devel] [PATCH v3 1/2] target-i386: KVM: add basic Intel LMCE support

2016-06-07 Thread Haozhong Zhang
On 06/04/16 18:03, Eduardo Habkost wrote: > On Sat, Jun 04, 2016 at 12:34:39PM +0200, Boris Petkov wrote: > > Haozhong Zhang wrote: > > > > >This patch adds the support to inject SRAR and SRAO as LMCE, i.e. they > > >will be injected to only one VCPU rather than broadcast to all > > >VCPUs. As KV

Re: [Qemu-devel] [PULL 00/11] Misc changes for 2016-06-06

2016-06-07 Thread Dr. David Alan Gilbert
* Peter Maydell (peter.mayd...@linaro.org) wrote: > On 6 June 2016 at 20:22, Dr. David Alan Gilbert wrote: > > Sigh I see; so the configure test is run with a different set of compiler > > options than the main compiles? How is any configure test supposed to > > check that it's got a sane configu

Re: [Qemu-devel] [PATCH 5/5] block: Move request_alignment into BlockLimit

2016-06-07 Thread Kevin Wolf
Am 03.06.2016 um 23:43 hat Eric Blake geschrieben: > On 06/03/2016 11:49 AM, Eric Blake wrote: > > On 06/03/2016 11:03 AM, Eric Blake wrote: > >> It makes more sense to have ALL block size limit constraints > >> in the same struct. Improve the documentation while at it. > >> > >> Note that bdrv_re

[Qemu-devel] [PATCH v1 0/6] Report format specific info for LUKS block driver

2016-06-07 Thread Daniel P. Berrange
The 'qemu-img info' tool has ability to print format specific information, eg with qcow2 it reports two extra items: $ qemu-img info ~/VirtualMachines/demo.qcow2 image: /home/berrange/VirtualMachines/demo.qcow2 file format: qcow2 virtual size: 3.0G (3221225472 bytes) disk size: 140K cl

[Qemu-devel] [PATCH v1 2/6] block: export LUKS specific data to qemu-img info

2016-06-07 Thread Daniel P. Berrange
The qemu-img info command has the ability to expose format specific metadata about volumes. Wire up this facility for the LUKS driver to report on cipher configuration and key slot usage. $ qemu-img info ~/VirtualMachines/demo.luks image: /home/berrange/VirtualMachines/demo.luks file f

[Qemu-devel] [PATCH v1 3/6] qapi: assert that visitor impls have required callbacks

2016-06-07 Thread Daniel P. Berrange
Not all visitor implementations supply the full set of visitor callback functions. For example, the string output visitor does not provide 'start_struct' and friends. If you don't know this and feed it an object that uses structs, you'll get a crash: Segmentation fault (core dumped) Crashing is

[Qemu-devel] [PATCH v1 1/6] crypto: add support for querying parameters for block encryption

2016-06-07 Thread Daniel P. Berrange
When creating new block encryption volumes, we accept a list of parameters to control the formatting process. It is useful to be able to query what those parameters were for existing block devices. Add a qcrypto_block_get_info() method which returns a QCryptoBlockInfo instance to report this data.

[Qemu-devel] [PATCH v1 6/6] block: convert to use qapi_stringify_ImageInfoSpecific

2016-06-07 Thread Daniel P. Berrange
When 'qemu-img info' prints out format specific information, it first converts the QAPI object into a JSON based QObject data structure. Unfortunately structs have to be turned into dicts, which looses all information about field ordering, so the data printed appears in a semi-random order. Conver

[Qemu-devel] [PATCH v1 4/6] qapi: add a text output visitor for pretty printing types

2016-06-07 Thread Daniel P. Berrange
The current approach for pretty-printing QAPI types is to convert them to JSON using the QMP output visitor and then pretty-print the JSON document. This has an unfixable problem that structs get their keys printed out in random order, since JSON dicts do not contain any key ordering information.

[Qemu-devel] [PATCH v1 5/6] qapi: generate a qapi_stringify_TYPENAME method for all types

2016-06-07 Thread Daniel P. Berrange
There are sometimes cases where one might wish to have a pretty string representation of a QAPI type. For example, the 'qemu-img info' tool wants to print out ImageInfoSpecific type in a humand friendly format. Also when debugging problems in code it is often useful to insert code to print out a QA

Re: [Qemu-devel] [PATCH v3] blockdev: clean up error handling in do_open_tray

2016-06-07 Thread Kevin Wolf
Am 06.06.2016 um 20:15 hat Colin Lord geschrieben: > Returns negative error codes and accompanying error messages in cases where > the device has no tray or the tray is locked and isn't forced open. This > extra information should result in better flexibility in functions that > call do_open_tray.

Re: [Qemu-devel] [PULL v2 0/9] Misc changes for 2016-06-06

2016-06-07 Thread Peter Maydell
On 6 June 2016 at 21:25, Paolo Bonzini wrote: > The following changes since commit 76462405809d29bab65a3699686998ba124ab942: > > Merge remote-tracking branch > 'remotes/pmaydell/tags/pull-target-arm-20160606-1' into staging (2016-06-06 > 17:02:42 +0100) > > are available in the git repository

Re: [Qemu-devel] [PATCH] Report error when opening device with locked tray

2016-06-07 Thread Kevin Wolf
Am 06.06.2016 um 21:40 hat Colin Lord geschrieben: > This commit causes qmp_blockdev_change_medium to report an error if an > attempt is made to open a device with a locked tray. The old behaviour is that the command seemingly succeeds, but the medium isn't actually changed. Correct? Should this

Re: [Qemu-devel] [PATCH 1/1] virtio-balloon: export all balloon statistics

2016-06-07 Thread Denis V. Lunev
On 05/31/2016 11:14 AM, Denis V. Lunev wrote: From: Igor Redko We are making experiments with different autoballooning strategies based on the guest behavior. Thus we need to experiment with different guest statistics. For now every counter change requires QEMU recompilation and dances with Lib

[Qemu-devel] [PATCH 05/17] hw/gpio: QOM'ify mpc8xxx.c

2016-06-07 Thread xiaoqiang zhao
* Drop the old SysBus init function and use instance_init * Change mpc8xxx_gpio_reset to a DeviceClass::reset function Signed-off-by: xiaoqiang zhao --- hw/gpio/mpc8xxx.c | 20 +++- 1 file changed, 11 insertions(+), 9 deletions(-) diff --git a/hw/gpio/mpc8xxx.c b/hw/gpio/mpc8xxx

[Qemu-devel] [PATCH 06/17] hw/gpio: QOM'ify omap_gpio.c

2016-06-07 Thread xiaoqiang zhao
* Split the old SysBus init into an instance_init and DeviceClass::realize function * Drop the SysBus init function Signed-off-by: xiaoqiang zhao --- hw/gpio/omap_gpio.c | 61 +++-- 1 file changed, 31 insertions(+), 30 deletions(-) diff --git a/

[Qemu-devel] [PATCH 08/17] hw/gpio: QOM'ify zaurus.c

2016-06-07 Thread xiaoqiang zhao
Drop the old SysBus init function and use instance_init Signed-off-by: xiaoqiang zhao --- hw/gpio/zaurus.c | 14 ++ 1 file changed, 6 insertions(+), 8 deletions(-) diff --git a/hw/gpio/zaurus.c b/hw/gpio/zaurus.c index 555da28..15865e1 100644 --- a/hw/gpio/zaurus.c +++ b/hw/gpio/zau

[Qemu-devel] [PATCH 04/17] hw/i2c: QOM'ify versatile_i2c.c

2016-06-07 Thread xiaoqiang zhao
Drop the old SysBus init function and use instance_init Signed-off-by: xiaoqiang zhao --- hw/i2c/versatile_i2c.c | 19 ++- 1 file changed, 6 insertions(+), 13 deletions(-) diff --git a/hw/i2c/versatile_i2c.c b/hw/i2c/versatile_i2c.c index 0bce524..da9f298 100644 --- a/hw/i2c/ver

[Qemu-devel] [PATCH 00/17] some ARM platform QOM'ify work

2016-06-07 Thread xiaoqiang zhao
This patch series QOM'ify ARM platform related devices. Where we drop the sysbus init function if possible and use instance_init and DeviceClass::realize function. xiaoqiang zhao (17): hw/i2c: QOM'ify bitbang_i2c.c hw/i2c: QOM'ify exynos4210_i2c.c hw/i2c: QOM'ify omap_i2c.c hw/i2c: QOM'ify

[Qemu-devel] [PATCH 01/17] hw/i2c: QOM'ify bitbang_i2c.c

2016-06-07 Thread xiaoqiang zhao
Drop the old SysBus init function and use instance_init Signed-off-by: xiaoqiang zhao --- hw/i2c/bitbang_i2c.c | 14 ++ 1 file changed, 6 insertions(+), 8 deletions(-) diff --git a/hw/i2c/bitbang_i2c.c b/hw/i2c/bitbang_i2c.c index 6ed2060..d3a2989 100644 --- a/hw/i2c/bitbang_i2c.c +

[Qemu-devel] [PATCH 03/17] hw/i2c: QOM'ify omap_i2c.c

2016-06-07 Thread xiaoqiang zhao
* Split the omap_i2c_init into an instance_init and realize function * Drop the old SysBus init function and use instance_init Signed-off-by: xiaoqiang zhao --- hw/i2c/omap_i2c.c | 44 ++-- 1 file changed, 26 insertions(+), 18 deletions(-) diff --git a/hw

[Qemu-devel] [PATCH 02/17] hw/i2c: QOM'ify exynos4210_i2c.c

2016-06-07 Thread xiaoqiang zhao
* Rename the exynos4210_i2c_realize to exynos4210_i2c_init * Drop the old SysBus init function and use instance_init Signed-off-by: xiaoqiang zhao --- hw/i2c/exynos4210_i2c.c | 13 ++--- 1 file changed, 6 insertions(+), 7 deletions(-) diff --git a/hw/i2c/exynos4210_i2c.c b/hw/i2c/exynos

[Qemu-devel] [PATCH 07/17] hw/gpio: QOM'ify pl061.c

2016-06-07 Thread xiaoqiang zhao
* Merge the pl061_initfn into pl061_init * Drop the old SysBus init function and use instance_init Signed-off-by: xiaoqiang zhao --- hw/gpio/pl061.c | 24 1 file changed, 8 insertions(+), 16 deletions(-) diff --git a/hw/gpio/pl061.c b/hw/gpio/pl061.c index 44faeb2..4ae2

[Qemu-devel] [PATCH 09/17] hw/misc: QOM'ify arm_l2x0.c

2016-06-07 Thread xiaoqiang zhao
Drop the old SysBus init function and use instance_init Signed-off-by: xiaoqiang zhao --- hw/misc/arm_l2x0.c | 11 +-- 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/hw/misc/arm_l2x0.c b/hw/misc/arm_l2x0.c index 4442227..66a0787 100644 --- a/hw/misc/arm_l2x0.c +++ b/hw/mis

[Qemu-devel] [PATCH 11/17] hw/misc: QOM'ify exynos4210_pmu.c

2016-06-07 Thread xiaoqiang zhao
Drop the old SysBus init function and use instance_init Signed-off-by: xiaoqiang zhao --- hw/misc/exynos4210_pmu.c | 11 +-- 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/hw/misc/exynos4210_pmu.c b/hw/misc/exynos4210_pmu.c index 889abad..e30dbc7 100644 --- a/hw/misc/exyno

[Qemu-devel] [PULL 12/26] ppc: Fix hreg_store_msr() so that non-HV mode cannot alter MSR:HV

2016-06-07 Thread David Gibson
From: Benjamin Herrenschmidt This helper is only used by the various instructions that can alter MSR and not interrupts. Add a comment to that effect to the interrupt code as well in case somebody wants to change this Signed-off-by: Benjamin Herrenschmidt Reviewed-by: David Gibson Signed-off-b

[Qemu-devel] [PATCH 12/17] hw/misc: QOM'ify mst_fpga.c

2016-06-07 Thread xiaoqiang zhao
Drop the old SysBus init function and use instance_init Signed-off-by: xiaoqiang zhao --- hw/misc/mst_fpga.c | 13 ++--- 1 file changed, 6 insertions(+), 7 deletions(-) diff --git a/hw/misc/mst_fpga.c b/hw/misc/mst_fpga.c index 48d7dfb..a10f049 100644 --- a/hw/misc/mst_fpga.c +++ b/hw/m

[Qemu-devel] [PATCH 17/17] hw/sd: QOM'ify pl181.c

2016-06-07 Thread xiaoqiang zhao
split the old SysBus init function into an instance_init and a Device realize function Signed-off-by: xiaoqiang zhao --- hw/sd/pl181.c | 26 -- 1 file changed, 16 insertions(+), 10 deletions(-) diff --git a/hw/sd/pl181.c b/hw/sd/pl181.c index eb783c6..82c63a4 100644 ---

[Qemu-devel] [PATCH 14/17] hw/dma: QOM'ify pxa2xx_dma.c

2016-06-07 Thread xiaoqiang zhao
split the old SysBus init function into an instance_init and a Device realize function Signed-off-by: xiaoqiang zhao --- hw/dma/pxa2xx_dma.c | 38 ++ 1 file changed, 22 insertions(+), 16 deletions(-) diff --git a/hw/dma/pxa2xx_dma.c b/hw/dma/pxa2xx_dma.c inde

[Qemu-devel] [PULL 08/26] spapr_pci: Add and export DMA resetting helper

2016-06-07 Thread David Gibson
From: Alexey Kardashevskiy This will be later used by the "ibm,reset-pe-dma-window" RTAS handler which resets the DMA configuration to the defaults. Signed-off-by: Alexey Kardashevskiy Reviewed-by: David Gibson Signed-off-by: David Gibson --- hw/ppc/spapr_pci.c | 10 -- incl

[Qemu-devel] [PATCH 13/17] hw/misc: QOM'ify slavio_misc.c

2016-06-07 Thread xiaoqiang zhao
Drop the old SysBus init function and use instance_init Signed-off-by: xiaoqiang zhao --- hw/misc/slavio_misc.c | 43 +-- 1 file changed, 17 insertions(+), 26 deletions(-) diff --git a/hw/misc/slavio_misc.c b/hw/misc/slavio_misc.c index edd5de0..e1a706e 1

[Qemu-devel] [PATCH 15/17] hw/dma: QOM'ify sparc32_dma.c

2016-06-07 Thread xiaoqiang zhao
Drop the old SysBus init function and use instance_init and an realize function Signed-off-by: xiaoqiang zhao --- hw/dma/sparc32_dma.c | 25 +++-- 1 file changed, 15 insertions(+), 10 deletions(-) diff --git a/hw/dma/sparc32_dma.c b/hw/dma/sparc32_dma.c index 9d545e4..ef4c6a

[Qemu-devel] [PATCH 16/17] hw/dma: QOM'ify sun4m_iommu.c

2016-06-07 Thread xiaoqiang zhao
Drop the old SysBus init function and use instance_init Signed-off-by: xiaoqiang zhao --- hw/dma/sun4m_iommu.c | 12 +--- 1 file changed, 5 insertions(+), 7 deletions(-) diff --git a/hw/dma/sun4m_iommu.c b/hw/dma/sun4m_iommu.c index b3cbc54..335ef63 100644 --- a/hw/dma/sun4m_iommu.c +++

[Qemu-devel] [PULL 11/26] ppc: Better figure out if processor has HV mode

2016-06-07 Thread David Gibson
From: Benjamin Herrenschmidt We use an env. flag which is set to the initial value of MSR_HVB in the msr_mask. We also adjust the POWER8 mask to set SHV. Also use this to adjust ctx.hv so that it is *set* when the processor doesn't have an HV mode (970 with Apple mode for example), thus enabling

Re: [Qemu-devel] [PATCH v5 0/3] Add guest PMU in machine virt

2016-06-07 Thread Peter Maydell
On 7 June 2016 at 03:46, Shannon Zhao wrote: > From: Shannon Zhao > > KVM-ARM64 supports guest PMU now. This series add the support in machine > virt so that guest could use PMU. > > The ACPI part is tested with below guest kernel patches. > https://lkml.org/lkml/2016/4/12/755 > > Changes since v

[Qemu-devel] [PULL 23/26] ppc: Fix mtmsr decoding

2016-06-07 Thread David Gibson
From: Benjamin Herrenschmidt We had code to handle the L bit in the opcode but we didn't allow it in the decode mask. Signed-off-by: Benjamin Herrenschmidt Signed-off-by: David Gibson --- target-ppc/translate.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/target-ppc/tra

[Qemu-devel] [PATCH 10/17] hw/misc: QOM'ify eccmemctl.c

2016-06-07 Thread xiaoqiang zhao
* Split the old SysBus init into an instance_init and a DeviceClass::realize function * Drop the old SysBus init function and use instance_init Signed-off-by: xiaoqiang zhao --- hw/misc/eccmemctl.c | 25 - 1 file changed, 16 insertions(+), 9 deletions(-) diff --git a/h

[Qemu-devel] [PULL 07/26] spapr_pci: Reset DMA config on PHB reset

2016-06-07 Thread David Gibson
From: Alexey Kardashevskiy LoPAPR dictates that during system reset all DMA windows must be removed and the default DMA32 window must be created so does the patch. At the moment there is just one window supported so no change in behaviour is expected. Signed-off-by: Alexey Kardashevskiy Review

[Qemu-devel] [PULL 16/26] macio: use DMA memory interface for non-block ATAPI transfers

2016-06-07 Thread David Gibson
From: Mark Cave-Ayland Signed-off-by: Mark Cave-Ayland Signed-off-by: David Gibson --- hw/ide/macio.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/hw/ide/macio.c b/hw/ide/macio.c index 42ad68a..78c10a0 100644 --- a/hw/ide/macio.c +++ b/hw/ide/macio.c @@ -271,7 +271,8 @

[Qemu-devel] [PULL 04/26] spapr_iommu: Introduce "enabled" state for TCE table

2016-06-07 Thread David Gibson
From: Alexey Kardashevskiy Currently TCE tables are created once at start and their sizes never change. We are going to change that by introducing a Dynamic DMA windows support where DMA configuration may change during the guest execution. This changes spapr_tce_new_table() to create an empty ze

Re: [Qemu-devel] [PULL v2 0/9] Misc changes for 2016-06-06

2016-06-07 Thread Peter Maydell
On 7 June 2016 at 11:24, Peter Maydell wrote: > On 6 June 2016 at 21:25, Paolo Bonzini wrote: >> The following changes since commit 76462405809d29bab65a3699686998ba124ab942: >> >> Merge remote-tracking branch >> 'remotes/pmaydell/tags/pull-target-arm-20160606-1' into staging (2016-06-06 >> 17

[Qemu-devel] [PULL 20/26] ppc: Batch TLB flushes on 32-bit 6xx/7xx/7xxx in hash mode

2016-06-07 Thread David Gibson
From: Benjamin Herrenschmidt This ports the existing 64-bit mechanism to 32-bit, thus series of 64 tlbie's followed by a sync like some versions of Darwin (ab)use will result in a single flush. We apply a pending flush on any sync instruction though, as Darwin doesn't use tlbsync on non-SMP syst

[Qemu-devel] [PULL 25/26] ppc: Add missing slbfee. instruction on ppc64 BookS processors

2016-06-07 Thread David Gibson
From: Benjamin Herrenschmidt Used to lookup SLB entries by address, for some reason it was missing. Signed-off-by: Benjamin Herrenschmidt Signed-off-by: David Gibson --- target-ppc/helper.h | 1 + target-ppc/mmu-hash64.c | 30 ++ target-ppc/translate.c | 26 +

[Qemu-devel] [PULL 02/26] kvm: API to obtain max supported mem slots

2016-06-07 Thread David Gibson
From: Bharata B Rao Introduce kvm_get_max_memslots() API that can be used to obtain the maximum number of memslots supported by KVM. Signed-off-by: Bharata B Rao Acked-by: Paolo Bonzini Signed-off-by: David Gibson --- include/sysemu/kvm.h | 1 + kvm-all.c| 7 +++ 2 files chan

[Qemu-devel] [PULL 03/26] vmstate: Define VARRAY with VMS_ALLOC

2016-06-07 Thread David Gibson
From: Alexey Kardashevskiy This allows dynamic allocation for migrating arrays. Already existing VMSTATE_VARRAY_UINT32 requires an array to be pre-allocated, however there are cases when the size is not known in advance and there is no real need to enforce it. This defines another variant of VM

[Qemu-devel] [PULL 19/26] ppc: Fix tlb invalidations on 6xx/7xx/7xxx 32-bit processors

2016-06-07 Thread David Gibson
From: Benjamin Herrenschmidt The processor only uses some bits of the address and invalidates an entire congruence class. Some OSes such as Darwin and HelenOS take advantage of this and occasionally invalidate the entire TLB by just doing a series of 64 consecutive tlbie for example. Our code tr

[Qemu-devel] [PULL 17/26] dbdma: use DMA memory interface for memory accesses

2016-06-07 Thread David Gibson
From: Mark Cave-Ayland Signed-off-by: Mark Cave-Ayland Signed-off-by: David Gibson --- hw/misc/macio/mac_dbdma.c | 13 +++-- 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/hw/misc/macio/mac_dbdma.c b/hw/misc/macio/mac_dbdma.c index 5632743..f116f9c 100644 --- a/hw/misc/m

[Qemu-devel] [PULL 21/26] ppc: POWER7 had ACOP and PID registers

2016-06-07 Thread David Gibson
From: Benjamin Herrenschmidt We only had them on POWER8, add them to POWER7 as well Signed-off-by: Benjamin Herrenschmidt Signed-off-by: David Gibson --- target-ppc/translate_init.c | 18 ++ 1 file changed, 18 insertions(+) diff --git a/target-ppc/translate_init.c b/target-pp

[Qemu-devel] [PULL 05/26] spapr_iommu: Migrate full state

2016-06-07 Thread David Gibson
From: Alexey Kardashevskiy The source guest could have reallocated the default TCE table and migrate bigger/smaller table. This adds reallocation in post_load() if the default table size is different on source and destination. This adds @bus_offset, @page_shift to the migration stream as a subse

[Qemu-devel] [PULL 14/26] spapr_pci: Drop cannot_instantiate_with_device_add_yet=false

2016-06-07 Thread David Gibson
From: Markus Armbruster It's become redundant since it was added in commit 09aa9a5 "spapr-pci: enable adding PHB via -device". Cc: Alexey Kardashevskiy Signed-off-by: Markus Armbruster Reviewed-by: Alexey Kardashevskiy Signed-off-by: David Gibson --- hw/ppc/spapr_pci.c | 1 - 1 file changed

[Qemu-devel] [PULL 10/26] spapr: Introduce pseries-2.7 machine type

2016-06-07 Thread David Gibson
From: Bharata B Rao Signed-off-by: Bharata B Rao Signed-off-by: David Gibson --- hw/ppc/spapr.c | 22 -- 1 file changed, 20 insertions(+), 2 deletions(-) diff --git a/hw/ppc/spapr.c b/hw/ppc/spapr.c index 14cc6ae..0636642 100644 --- a/hw/ppc/spapr.c +++ b/hw/ppc/spapr.c @@

[Qemu-devel] [PULL 18/26] ppc: Properly tag the translation cache based on MMU mode

2016-06-07 Thread David Gibson
From: Benjamin Herrenschmidt We used to always flush the TLB when changing relocation mode in MSR:IR and MSR:DR (ie. MMU on/off for Instructions and Data). We don't anymore since we have split mmu_idx for instruction and data. However, since we hard code the mmu_idx in the translated code, we n

[Qemu-devel] [PULL 24/26] ppc: Fix slbia decode

2016-06-07 Thread David Gibson
From: Benjamin Herrenschmidt Since at least the 2.05 architecture, the slbia instruction takes an IH field in the opcode to provide some control on the effect of the slbia on the ERATs (level-1 TLB). We can safely ignore it as we always flush the whole qemu TLB but we should allow the bits in th

[Qemu-devel] [PULL 15/26] target-ppc: fixup bitrot in mmu_helper.c debug statements

2016-06-07 Thread David Gibson
From: Mark Cave-Ayland This fixes compilation of mmu_helper.c when all of the debug #defines at the start of the file are enabled. Signed-off-by: Mark Cave-Ayland Signed-off-by: David Gibson --- target-ppc/mmu_helper.c | 38 -- 1 file changed, 24 insertions

Re: [Qemu-devel] [PULL v2 0/9] Misc changes for 2016-06-06

2016-06-07 Thread Peter Maydell
On 7 June 2016 at 11:54, Paolo Bonzini wrote: > On 07/06/2016 12:39, Peter Maydell wrote: >> ...and I thought I'd retry as a test, but before I applied that >> patch I get a different failure mode instead: >> >> In file included from /home/petmay01/qemu/qemu-img.c:25:0: >> ./qemu-version.h:1:0: er

Re: [Qemu-devel] [PULL v2 0/9] Misc changes for 2016-06-06

2016-06-07 Thread Paolo Bonzini
On 07/06/2016 12:39, Peter Maydell wrote: > On 7 June 2016 at 11:24, Peter Maydell wrote: >> On 6 June 2016 at 21:25, Paolo Bonzini wrote: >>> The following changes since commit 76462405809d29bab65a3699686998ba124ab942: >>> >>> Merge remote-tracking branch >>> 'remotes/pmaydell/tags/pull-tar

[Qemu-devel] [PULL 06/26] spapr_iommu: Add root memory region

2016-06-07 Thread David Gibson
From: Alexey Kardashevskiy We are going to have multiple DMA windows at different offsets on a PCI bus. For the sake of migration, we will have as many TCE table objects pre-created as many windows supported. So we need a way to map windows dynamically onto a PCI bus when migration of a table is

Re: [Qemu-devel] [PATCH 5/5] block: Move request_alignment into BlockLimit

2016-06-07 Thread Paolo Bonzini
On 07/06/2016 12:08, Kevin Wolf wrote: >>> > > Something in this patch is causing qemu-iotests 77 to infloop; we may >>> > > decide it is just easier to drop this patch rather than find all the >>> > > places where the request_alignment must be preserved across what >>> > > otherwise zeroes out l

[Qemu-devel] [PULL 09/26] spapr: Increase hotpluggable memory slots to 256

2016-06-07 Thread David Gibson
From: Bharata B Rao KVM now supports 512 memslots on PowerPC (earlier it was 32). Allow half of it (256) to be used as hotpluggable memory slots. Instead of hard coding the max value, use the KVM supplied value if KVM is enabled. Otherwise resort to the default value of 32. Signed-off-by: Bhara

[Qemu-devel] [PULL 13/26] ppc: fix hrfid, tlbia and slbia privilege

2016-06-07 Thread David Gibson
From: Cédric Le Goater commit 74693da98894 ('ppc: tlbie, tlbia and tlbisync are HV only') introduced some extra checks on the instruction privilege. slbia was changed wrongly and hrfid, tlbia were forgotten. Signed-off-by: Cédric Le Goater Reviewed-by: Thomas Huth Signed-off-by: David Gibson

Re: [Qemu-devel] [PULL v2 0/9] Misc changes for 2016-06-06

2016-06-07 Thread Paolo Bonzini
On 07/06/2016 12:58, Peter Maydell wrote: > Worse, when I revert this merge attempt and do a build on the previously > working master, it fails (all trees, all configs): > > /home/pm215/qemu/qemu-img.c: In function ‘help’: > /home/pm215/qemu/qemu-img.c:43:59: error: expected ‘,’ or ‘;’ before >

  1   2   3   4   5   >