Re: [Qemu-devel] [PATCH 5/7] qdev: set the object property's description to the qdev property's.

2014-09-23 Thread Paolo Bonzini
Il 24/09/2014 02:42, Gonglei (Arei) ha scritto: > OK. > > This way I have to add a description string parametet to > object_property_add_alias function. Will do in the next version. :) No, just take it from the original property. So if you alias A.X to B.Y, you copy the description of B.Y. Pao

[Qemu-devel] [PATCH v2] Modify qemu_opt_rename to realize renaming all items in opts

2014-09-23 Thread Jun Li
Add realization of rename all items in opts for qemu_opt_rename. e.g: When add bps twice in command line, need to rename all bps to throttling.bps-total. This patch solved following bug: Bug 1145586 - qemu-kvm will give strange hint when add bps twice for a drive ref:https://bugzilla.redhat.com/sh

[Qemu-devel] [PATCH] virtio: Fix wrong type cast from pointer to long

2014-09-23 Thread Stefan Weil
Compiler warning (w32, w64): include/hw/virtio/virtio_ring.h:142:26: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast] When sizeof(long) < sizeof(void *), this is not only a warning but a real program error. Add also missing blanks in the same statement. Signed-of

Re: [Qemu-devel] [PATCH] Modify qemu_opt_rename to realize renaming all items in opts

2014-09-23 Thread Jun Li
On Tue, 09/23 10:47, Eric Blake wrote: > On 09/23/2014 07:13 AM, Jun Li wrote: > > Add realization of rename all items in opts for qemu_opt_rename. > > e.g: > > When add bps twice in command line, need to rename all bps to > > throttling.bps-total. > > > > Signed-off-by: Jun Li > > --- > > This p

[Qemu-devel] [PATCH v2] qemu-iotests: Fail test if explicit test case number is unknown

2014-09-23 Thread Fam Zheng
When we expand a number range, we just print "$id - unknown test, ignored", this is convenient if we want to run a range of tests. When we designate a test case number explicitly, we shouldn't just ignore it if the case script doesn't exist. Print an error and fail the test. Signed-off-by: Fam Z

Re: [Qemu-devel] [PATCH V3 0/7] cpu/acpi: convert cpu hot plug to hotplug_handler API

2014-09-23 Thread Gu Zheng
ping... On 09/17/2014 09:23 AM, Gu Zheng wrote: > Previously we use cpu_added_notifiers to register cpu hotplug notifier > callback > which is not able to pass/handle errors, so we switch it to unified hotplug > handler API which allows to pass errors and would allow to cancel device_add > in ca

Re: [Qemu-devel] [PULL 1/2] Revert "vfio: Make BARs native endian"

2014-09-23 Thread David Gibson
On Tue, Sep 23, 2014 at 11:14:50AM -0600, Alex Williamson wrote: > From: Alexey Kardashevskiy > > This reverts commit c40708176a6b52b73bec14796b7c71b882ceb102. > > The resulting code wrongly assumed target and host endianness are > the same which is not always the case for PPC64. > > [aw: or po

Re: [Qemu-devel] [PULL 2/2] vfio: make rom read endian sensitive

2014-09-23 Thread David Gibson
On Tue, Sep 23, 2014 at 11:14:57AM -0600, Alex Williamson wrote: > From: Nikunj A Dadhania > > All memory regions used by VFIO are LITTLE_ENDIAN and they > already take care of endiannes when accessing real device BARs > except ROM - it was broken on BE hosts. > > This fixes endiannes for ROM BA

Re: [Qemu-devel] [PATCH v2 0/2] list supported machine types in well-defined order

2014-09-23 Thread David Gibson
On Mon, Sep 22, 2014 at 10:38:34PM +0200, Laszlo Ersek wrote: > The first patch introduces a generic comparator. This comparator should > cover all machine types at once that don't belong to machine type > "families". Hence, for example, the output it produces for > > qemu-system-aarch64 -M \? >

Re: [Qemu-devel] [PATCH 0/7] add description field in ObjectProperty and PropertyInfo struct

2014-09-23 Thread Gonglei (Arei)
> From: Paolo Bonzini [mailto:paolo.bonz...@gmail.com] On Behalf Of Paolo > Bonzini > Sent: Wednesday, September 24, 2014 1:04 AM > Subject: Re: [PATCH 0/7] add description field in ObjectProperty and > PropertyInfo struct > > Il 23/09/2014 15:08, arei.gong...@huawei.com ha scritto: > > From: Gong

Re: [Qemu-devel] [PATCH 5/7] qdev: set the object property's description to the qdev property's.

2014-09-23 Thread Gonglei (Arei)
> Subject: Re: [PATCH 5/7] qdev: set the object property's description to the > qdev > property's. > > Il 23/09/2014 15:08, arei.gong...@huawei.com ha scritto: > > From: Gonglei > > > > When we call qdev_alias_all_properties() adding alias properties to > > the source object all qdev properties

Re: [Qemu-devel] [PATCH v6 0/2] dump: let dump_error return error reason to caller

2014-09-23 Thread zhanghailiang
Hi, Ping... Thanks, zhanghailiang On 2014/9/19 14:43, zhanghailiang wrote: Hi, In original code, Function dump_error ignores its second parameter which contains error reason, it is better to return the error message to the caller. Here we use error_setg to return the error info to caller.

[Qemu-devel] [PULL] qemu-sparc update

2014-09-23 Thread Mark Cave-Ayland
Hi Peter, This update contains the TCX framebuffer hardware acceleration patch for sun4m. Please pull. ATB, Mark. The following changes since commit 769188d3bbf95ce8d96a335624234dad083f4db6: Merge remote-tracking branch 'remotes/kraxel/tags/pull-usb-20140923-1' into staging (

Re: [Qemu-devel] [PATCH] tcx: Implement hardware acceleration

2014-09-23 Thread Mark Cave-Ayland
On 13/09/14 11:10, Mark Cave-Ayland wrote: The S24/TCX framebuffer is a mildly accelerated video card with blitter, stippler and hardware cursor. * Solaris and NetBSD 6.x use all the hardware acceleration features * The Xorg driver (used by Linux) can use the hardware cursor only This patch im

Re: [Qemu-devel] [PATCH v2 00/14] GPIO/IRQ QOMification: Phase 2 - Getting rid of SYSBUS IRQs

2014-09-23 Thread Alexander Graf
On 28.08.14 14:23, Alexander Graf wrote: > > > On 28.08.14 13:59, Alexander Graf wrote: >> >> >> On 15.08.14 07:29, Peter Crosthwaite wrote: >>> Hi All, >>> >>> So phase one was the QOMification of qemu_irq. This is the next step. >>> We start to setup GPIOs as proper QOM objects. Inputs are ch

[Qemu-devel] [Bug 1371915] Re: Make Uninstall Rule Requested

2014-09-23 Thread Kelvin Middleton
just come to do the same...need to revert and cant :-( -- You received this bug notification because you are a member of qemu- devel-ml, which is subscribed to QEMU. https://bugs.launchpad.net/bugs/1371915 Title: Make Uninstall Rule Requested Status in QEMU: New Bug description: Environm

Re: [Qemu-devel] [PATCH 0/3] vga: add endianness switching support

2014-09-23 Thread Alexander Graf
On 23.09.14 22:24, Benjamin Herrenschmidt wrote: > On Tue, 2014-09-23 at 14:30 +0200, Gerd Hoffmann wrote: >> Hi, > > (Adding Mike) > >> Series applies on top of the vga patches posted yesterday. >> It adds a mmio register to the pci stdvga cards allowing >> to switch framebuffer endiannness.

Re: [Qemu-devel] [PATCH 0/3] vga: add endianness switching support

2014-09-23 Thread Benjamin Herrenschmidt
On Tue, 2014-09-23 at 14:30 +0200, Gerd Hoffmann wrote: > Hi, (Adding Mike) > Series applies on top of the vga patches posted yesterday. > It adds a mmio register to the pci stdvga cards allowing > to switch framebuffer endiannness. Ben's patches 1+2 prepare > for runtime-swicthable endianness

Re: [Qemu-devel] issue: linking 64bit glib when building for cpu=i386

2014-09-23 Thread Peter Maydell
On 23 September 2014 11:52, John Snow wrote: > On 08/22/2014 05:05 AM, Stefan Hajnoczi wrote: >> Nice, and Paolo sent me an automated way of doing that: >> >> On Fri, Aug 22, 2014 at 12:14:28AM +0200, Paolo Bonzini wrote: >>> >>> You need to set PKG_CONFIG_LIBDIR to >>> >>> /usr/lib/$MULTILIBDIR/p

Re: [Qemu-devel] issue: linking 64bit glib when building for cpu=i386

2014-09-23 Thread John Snow
On 08/22/2014 05:05 AM, Stefan Hajnoczi wrote: On Fri, Aug 22, 2014 at 9:20 AM, Daniel P. Berrange wrote: On Thu, Aug 21, 2014 at 08:10:54PM -0400, John Snow wrote: I was running a series of tests on 32 and 64 bit hosts to test for endianness and variable width issues when I noticed that I c

Re: [Qemu-devel] [PULL 07/11] tcg: Compress TCGLabelQemuLdst

2014-09-23 Thread Richard Henderson
On 09/23/2014 11:42 AM, Paolo Bonzini wrote: > No, it just caught my eye because it'll conflict with the PPC patches > that have NB_MMU_MODES == 12. Ah, right, so it will. Peter, please don't pull. I'll drop that patch for now. r~

Re: [Qemu-devel] [PULL 07/11] tcg: Compress TCGLabelQemuLdst

2014-09-23 Thread Paolo Bonzini
Il 23/09/2014 19:48, Peter Maydell ha scritto: > On 22 September 2014 23:19, Paolo Bonzini wrote: >> Il 22/09/2014 22:57, Richard Henderson ha scritto: >>> +QEMU_BUILD_BUG_ON(TCG_TARGET_NB_REGS > 32); >>> +QEMU_BUILD_BUG_ON(NB_MMU_MODES > 8); >>> + >>> typedef struct TCGLabelQemuLdst { >>> -b

Re: [Qemu-devel] Fwd: Re: [PULL 07/11] tcg: Compress TCGLabelQemuLdst

2014-09-23 Thread Paolo Bonzini
Il 23/09/2014 20:17, Richard Henderson ha scritto: > Ug. Failure to operate the mail program on my phone properly; > the following went to Paolo only instead of the list too. And my reply too, which was basically "np, just asking". Paolo > > Forwarded Message > Subject: Re: [

[Qemu-devel] Fwd: Re: [PULL 07/11] tcg: Compress TCGLabelQemuLdst

2014-09-23 Thread Richard Henderson
Ug. Failure to operate the mail program on my phone properly; the following went to Paolo only instead of the list too. r~ Forwarded Message Subject: Re: [PULL 07/11] tcg: Compress TCGLabelQemuLdst Date: Mon, 22 Sep 2014 16:10:40 -0700 From: Richard Henderson To: Paolo Bonzi

Re: [Qemu-devel] [PULL 07/11] tcg: Compress TCGLabelQemuLdst

2014-09-23 Thread Peter Maydell
On 22 September 2014 23:19, Paolo Bonzini wrote: > Il 22/09/2014 22:57, Richard Henderson ha scritto: >> +QEMU_BUILD_BUG_ON(TCG_TARGET_NB_REGS > 32); >> +QEMU_BUILD_BUG_ON(NB_MMU_MODES > 8); >> + >> typedef struct TCGLabelQemuLdst { >> -bool is_ld:1; /* qemu_ld: true, qemu_st: false

[Qemu-devel] [PULL 2/2] vfio: make rom read endian sensitive

2014-09-23 Thread Alex Williamson
From: Nikunj A Dadhania All memory regions used by VFIO are LITTLE_ENDIAN and they already take care of endiannes when accessing real device BARs except ROM - it was broken on BE hosts. This fixes endiannes for ROM BARs the same way as it is done for other BARs. This has been tested on PPC64 BE

[Qemu-devel] [PULL 1/2] Revert "vfio: Make BARs native endian"

2014-09-23 Thread Alex Williamson
From: Alexey Kardashevskiy This reverts commit c40708176a6b52b73bec14796b7c71b882ceb102. The resulting code wrongly assumed target and host endianness are the same which is not always the case for PPC64. [aw: or potentially any host supporting VFIO and TCG] Signed-off-by: Alexey Kardashevskiy

[Qemu-devel] [PULL 0/2] VFIO endian updates

2014-09-23 Thread Alex Williamson
The following changes since commit 07e2863d0271ac6c05206d8ce9e4f4c39b25d3ea: exec.c: fix setting 1-byte-long watchpoints (2014-09-19 17:42:16 +0100) are available in the git repository at: git://github.com/awilliam/qemu-vfio.git tags/vfio-pci-for-qemu-20140923.0 for you to fetch changes up

Re: [Qemu-devel] [PATCH v2] docs: add blkdebug block driver documentation

2014-09-23 Thread Eric Blake
On 09/23/2014 04:09 AM, Stefan Hajnoczi wrote: > The blkdebug block driver is undocumented. Documenting it is worthwhile > since it offers powerful error injection features that are used by > qemu-iotests test cases. > > This document will make it easier for people to learn about and use > blkdeb

Re: [Qemu-devel] [RFC PATCH v2 18/23] COLO nic: add command line switch

2014-09-23 Thread Eric Blake
On 09/23/2014 03:23 AM, Yang Hongyang wrote: > add command line switch > > Signed-off-by: Yang Hongyang > Cc: Anthony Liguori > Cc: Stefan Hajnoczi > --- > qapi-schema.json | 8 +++- > qemu-options.hx | 10 +- > 2 files changed, 16 insertions(+), 2 deletions(-) > > diff --git a/

Re: [Qemu-devel] [PATCH 0/7] add description field in ObjectProperty and PropertyInfo struct

2014-09-23 Thread Paolo Bonzini
Il 23/09/2014 15:08, arei.gong...@huawei.com ha scritto: > From: Gonglei > > PATCH 1 and PATCH 2 are bugfixes. PATCH 3~7 add a description > field in both ObjectProperty and PropertyInfo struct. > The descriptions can serve as documentation in the code, > and they can be used to provide better he

Re: [Qemu-devel] [PATCH 5/7] qdev: set the object property's description to the qdev property's.

2014-09-23 Thread Paolo Bonzini
Il 23/09/2014 15:08, arei.gong...@huawei.com ha scritto: > From: Gonglei > > When we call qdev_alias_all_properties() adding alias properties to > the source object all qdev properties on the target DeviceState, > set the object property's description to the qdev property's. > > c: Paolo Bonzini

Re: [Qemu-devel] Why is virt-resize designed to involve two disks?

2014-09-23 Thread Eric Blake
On 09/23/2014 04:15 AM, 吴志勇 wrote: > HI, [please configure your mailer to wrap long lines] > As you've known, vhd-util and qemu-img both provide the capacity for resizing the original disk, but why is virt-resize designed to involve two disks, not only original disk? Is there any concern? Is it p

Re: [Qemu-devel] [PATCH v2] slirp: udp: fix NULL pointer dereference because of uninitialized socket

2014-09-23 Thread Michael Tokarev
18.09.2014 10:35, Petr Matousek wrote: > When guest sends udp packet with source port and source addr 0, > uninitialized socket is picked up when looking for matching and already > created udp sockets, and later passed to sosendto() where NULL pointer > dereference is hit during so->slirp->vnetwork

[Qemu-devel] [PATCH 6/6] q35/ahci: Pick up -cdrom and -hda options

2014-09-23 Thread John Snow
This patch implements the backend for the Q35 board for us to be able to pick up and use drives defined by the -cdrom, -hda, or -drive if=ide shorthand options. A workaround for these command line options not previously working as intended in the bios-tables-test is also removed. Signed-off-by: J

[Qemu-devel] [PATCH 3/6] pc/vl: Add units-per-default-bus property

2014-09-23 Thread John Snow
This patch adds the 'units_per_default_bus' property which allows individual boards to declare their desired index => (bus,unit) mapping for their default HBA, so that boards such as Q35 can specify that its default if_ide HBA, AHCI, only accepts one unit per bus. This property only overrides the

[Qemu-devel] [PATCH 4/6] ide: Update ide_drive_get to be HBA agnostic

2014-09-23 Thread John Snow
Instead of duplicating the logic for the if_ide (bus,unit) mappings, rely on the blockdev layer for managing those mappings for us, and use the drive_get_by_index call instead. This allows ide_drive_get to work for AHCI HBAs as well, and can be used in the Q35 initialization. Signed-off-by: John

[Qemu-devel] [PATCH 5/6] qtest/bios-tables: Correct Q35 command line

2014-09-23 Thread John Snow
If the Q35 board types are to begin recognizing and decoding syntactic sugar for drive/device declarations, then workarounds found within the qtests suite need to be adjusted to prevent any test failures after the fix. bios-tables-test improperly uses this cli: -drive file=etc,id=hd -device ide-hd

[Qemu-devel] [PATCH 1/6] blockdev: Orphaned drive search

2014-09-23 Thread John Snow
When users use command line options like -hda, -cdrom, or even -drive if=ide, it is up to the board initialization routines to pick up these drives and create backing devices for them. Some boards, like Q35, have not been doing this. However, there is no warning explaining why certain drive specif

[Qemu-devel] [PATCH 0/6] Q35: Implement -cdrom/-hda sugar

2014-09-23 Thread John Snow
The Q35 board initialization does not currently bother to look for any drives added by the various syntactical sugar shorthands to be added to the AHCI HBA. These include -hda through -hdd, -cdrom, and -drive if=ide shorthands. An obstacle to having implemented this sooner is debate over whether o

[Qemu-devel] [PATCH 2/6] blockdev: Allow overriding if_max_dev property

2014-09-23 Thread John Snow
The if_max_devs table as in the past been an immutable default that controls the mapping of index => (bus,unit) for all boards and all HBAs for each interface type. Since adding this mapping information to the HBA device itself is currently unwieldly from the perspective of retrieving this informa

Re: [Qemu-devel] [PATCH] Modify qemu_opt_rename to realize renaming all items in opts

2014-09-23 Thread Eric Blake
On 09/23/2014 07:13 AM, Jun Li wrote: > Add realization of rename all items in opts for qemu_opt_rename. > e.g: > When add bps twice in command line, need to rename all bps to > throttling.bps-total. > > Signed-off-by: Jun Li > --- > This patch solved following bug: > Bug 1145586 - qemu-kvm will

Re: [Qemu-devel] Microcheckpointing: Memory-VCPU / Disk State consistency

2014-09-23 Thread Walid Nouri
Am 18.09.2014 15:56, schrieb Stefan Hajnoczi: There is the issue of request ordering (using write cache flushes). The secondary probably needs to perform requests in the same order and interleave cache flushes in the same way as the primary. Otherwise a power failure on the secondary could leav

Re: [Qemu-devel] [PATCH v3 06/23] block: Make BlockBackend own its BlockDriverState

2014-09-23 Thread Markus Armbruster
Kevin Wolf writes: > Am 16.09.2014 um 20:12 hat Markus Armbruster geschrieben: >> On BlockBackend destruction, unref its BlockDriverState. Replaces the >> callers' unrefs. >> >> Signed-off-by: Markus Armbruster >> --- >> block/block-backend.c | 6 ++ >> blockdev.c| 8 ++-

Re: [Qemu-devel] [PATCH v4 08/19] qapi: Better error messages for bad expressions

2014-09-23 Thread Eric Blake
On 09/23/2014 08:56 AM, Markus Armbruster wrote: > Eric Blake writes: > >> The previous commit demonstrated that the generator overlooked some >> fairly basic broken expressions: >> - missing metataype >> - metatype key has a non-string value >> - unknown key in relation to the metatype >> - conf

Re: [Qemu-devel] [PATCH v4 06/19] qapi: Better error messages for bad enums

2014-09-23 Thread Eric Blake
On 09/23/2014 08:23 AM, Markus Armbruster wrote: > Eric Blake writes: > >> The previous commit demonstrated that the generator had several >> flaws with less-than-perfect enums: >> - an enum that listed the same string twice (or two variant >> strings that map to the same C enum) ended up generat

Re: [Qemu-devel] [PATCH v6 3/3] ivshmem: add check on protocol version in QEMU

2014-09-23 Thread Stefan Hajnoczi
On Mon, Sep 08, 2014 at 12:49:48PM +0300, Michael S. Tsirkin wrote: > On Mon, Sep 08, 2014 at 11:17:50AM +0200, David Marchand wrote: > > Send a protocol version as the first message from server, clients must close > > communication if they don't support this protocol version. > > What's the motiv

Re: [Qemu-devel] [PULL 00/26] usb patch queue

2014-09-23 Thread Peter Maydell
; tracing bits for ohci. > > please pull, > Gerd > > The following changes since commit 07e2863d0271ac6c05206d8ce9e4f4c39b25d3ea: > > exec.c: fix setting 1-byte-long watchpoints (2014-09-19 17:42:16 +0100) > > are available in the git repository at: > > git://git.k

Re: [Qemu-devel] [PATCH 3/4] .travis.yml: pre-seed sub-modules for speed

2014-09-23 Thread Alexander Graf
On 23.09.14 16:50, Alex Bennée wrote: > > Alexander Graf writes: > >> On 15.09.14 18:48, Alex Bennée wrote: >>> A significant portion of the build time is spent initialising all the >>> sub-modules we use in the source tree. Often this is almost as long as >>> the build itself. By pre-seeding t

Re: [Qemu-devel] [PATCH v3 03/23] block: Connect BlockBackend to BlockDriverState

2014-09-23 Thread Markus Armbruster
Kevin Wolf writes: > Am 23.09.2014 um 14:52 hat Markus Armbruster geschrieben: >> Kevin Wolf writes: >> >> > Am 22.09.2014 um 18:34 hat Markus Armbruster geschrieben: >> >> Kevin Wolf writes: >> >> >> >> > Am 16.09.2014 um 20:12 hat Markus Armbruster geschrieben: >> >> >> diff --git a/include

[Qemu-devel] [PATCH] trace: install trace-events file

2014-09-23 Thread Stefan Hajnoczi
Install the ./trace-events file into the data directory. This file contains the list of trace events that were built into QEMU at compile-time. The file is a handy reference for the set of trace events that the QEMU binary was built with. It is also needed by the simpletrace.py tool that parses

Re: [Qemu-devel] [Qemu-stable] [PATCH v2] slirp: udp: fix NULL pointer dereference because of uninitialized socket

2014-09-23 Thread Michael Roth
Quoting Petr Matousek (2014-09-18 01:35:37) > When guest sends udp packet with source port and source addr 0, > uninitialized socket is picked up when looking for matching and already > created udp sockets, and later passed to sosendto() where NULL pointer > dereference is hit during so->slirp->vne

Re: [Qemu-devel] [PATCH v4 08/19] qapi: Better error messages for bad expressions

2014-09-23 Thread Markus Armbruster
Eric Blake writes: > The previous commit demonstrated that the generator overlooked some > fairly basic broken expressions: > - missing metataype > - metatype key has a non-string value > - unknown key in relation to the metatype > - conflicting metatype (this patch treats the second metatype as

Re: [Qemu-devel] [PATCH 3/4] .travis.yml: pre-seed sub-modules for speed

2014-09-23 Thread Alex Bennée
Alexander Graf writes: > On 15.09.14 18:48, Alex Bennée wrote: >> A significant portion of the build time is spent initialising all the >> sub-modules we use in the source tree. Often this is almost as long as >> the build itself. By pre-seeding the .git/modules tree this will >> hopefully improv

Re: [Qemu-devel] [v4] Support vhd type VHD_DIFFERENCING

2014-09-23 Thread Xiaodong Gong
This structure is not documented in the official VHD specs, nor is the 'tdbatmap' cookie used in differencing VHDs created by Windows Server 2012. Isn't Hyper-V compatibility desired? Yepp, this structure of tdbatmap is a extra feature from vhd-util from Xen, here we could make sure the version of

Re: [Qemu-devel] [PATCH v4 07/19] qapi: Add some expr tests

2014-09-23 Thread Markus Armbruster
Eric Blake writes: > Demonstrate that the qapi generator doesn't deal well with > expressions that aren't up to par. Later patches will improve > the expected results as the generator is made stricter. Only > one of the added tests actually behaves sanely at rejecting > obvious problems. > > Not

Re: [Qemu-devel] [PATCH v4 06/19] qapi: Better error messages for bad enums

2014-09-23 Thread Markus Armbruster
Eric Blake writes: > The previous commit demonstrated that the generator had several > flaws with less-than-perfect enums: > - an enum that listed the same string twice (or two variant > strings that map to the same C enum) ended up generating an > invalid C enum > - because the generator adds a

[Qemu-devel] [PULL 05/26] usb-net: convert init to realize

2014-09-23 Thread Gerd Hoffmann
From: Gonglei meanwhile, qerror_report_err() is a transitional interface to help with converting existing HMP commands to QMP. It should not be used elsewhere. Signed-off-by: Gonglei Reviewed-by: Paolo Bonzini Signed-off-by: Gerd Hoffmann --- hw/usb/dev-network.c | 9 - 1 file change

[Qemu-devel] [PULL 24/26] usb: tag xhci as hotpluggable

2014-09-23 Thread Gerd Hoffmann
Signed-off-by: Gerd Hoffmann --- hw/usb/hcd-xhci.c | 1 - 1 file changed, 1 deletion(-) diff --git a/hw/usb/hcd-xhci.c b/hw/usb/hcd-xhci.c index 73ced1f..c556367 100644 --- a/hw/usb/hcd-xhci.c +++ b/hw/usb/hcd-xhci.c @@ -3874,7 +3874,6 @@ static void xhci_class_init(ObjectClass *klass, void *da

[Qemu-devel] [PULL 25/26] usb: tag standalone uhci as hotpluggable

2014-09-23 Thread Gerd Hoffmann
uhci hostadapters in companion setups can't be hotplugged. So leave hotplug disabled for all ich9 variants (which are already tagged with unplug = true in the info struct). For the other variants we'll enable hotplug and remove the companion setup properties. Signed-off-by: Gerd Hoffmann --- h

Re: [Qemu-devel] [PULL 0/3] s390x/kvm: some fixes and cleanups

2014-09-23 Thread Peter Maydell
gt; > git://github.com/borntraeger/qemu.git tags/s390x-20140923 > > for you to fetch changes up to e8601dd5d0ffa909068ddefe33bf6a53d8af063a: > > s390x/css: catch ccw sequence errors (2014-09-23 14:10:17 +0200) > > --

Re: [Qemu-devel] [PATCH 4/7] qom: add description field in ObjectProperty struct

2014-09-23 Thread Gonglei (Arei)
> Subject: [PATCH 4/7] qom: add description field in ObjectProperty struct > > From: Gonglei > > The descriptions can serve as documentation in the code, > and they can be used to provide better help. > > Cc: Paolo Bonzini > Cc: Michael S. Tsirkin > Cc: Markus Armbruster > Signed-off-by: Gon

Re: [Qemu-devel] [PATCH v3 03/23] block: Connect BlockBackend to BlockDriverState

2014-09-23 Thread Kevin Wolf
Am 23.09.2014 um 14:52 hat Markus Armbruster geschrieben: > Kevin Wolf writes: > > > Am 22.09.2014 um 18:34 hat Markus Armbruster geschrieben: > >> Kevin Wolf writes: > >> > >> > Am 16.09.2014 um 20:12 hat Markus Armbruster geschrieben: > >> >> diff --git a/include/block/block_int.h b/include/b

[Qemu-devel] [PATCH 7/8] virtio-vga: add vgabios binary

2014-09-23 Thread Gerd Hoffmann
Add prebuilt vgabios-virtio.bin binary. Signed-off-by: Gerd Hoffmann --- pc-bios/vgabios-virtio.bin | Bin 0 -> 37376 bytes 1 file changed, 0 insertions(+), 0 deletions(-) create mode 100644 pc-bios/vgabios-virtio.bin diff --git a/pc-bios/vgabios-virtio.bin b/pc-bios/vgabios-virtio.bin new fil

[Qemu-devel] [PATCH 2/8] virtio-gpu/2d: add virtio gpu core code

2014-09-23 Thread Gerd Hoffmann
This patch adds the core code for virtio gpu emulation, covering 2d support. Written by Dave Airlie and Gerd Hoffmann. Signed-off-by: Dave Airlie Signed-off-by: Gerd Hoffmann --- default-configs/x86_64-softmmu.mak | 1 + hw/display/Makefile.objs | 2 + hw/display/virtio-gpu.c

[Qemu-devel] [PATCH 1/8] virtio-gpu/2d: add hardware spec include file

2014-09-23 Thread Gerd Hoffmann
This patch adds the header file with structs and defines for the virtio based gpu device. Covers 2d operations only. Written by Dave Airlie and Gerd Hoffmann. Signed-off-by: Dave Airlie Signed-off-by: Gerd Hoffmann --- include/hw/virtio/virtgpu_hw.h | 207 +

[Qemu-devel] [PATCH 3/8] virtio-gpu-pci: add virtio pci support

2014-09-23 Thread Gerd Hoffmann
This patch adds virtio-gpu-pci, which is the pci proxy for the virtio gpu device. With this patch in place virtio-gpu is functional. You need a linux guest with a virtio-gpu driver though, and output will appear pretty late in boot, once the kernel initialized drm and fbcon. Written by Dave Airl

[Qemu-devel] [PATCH 5/8] virtio-vga: add '-vga virtio' support

2014-09-23 Thread Gerd Hoffmann
Some convinience fluff: Add support for '-vga virtio', also add virtio-vga to the list of vga cards so '-device virtio-vga' will turn off the default vga. Written by Dave Airlie and Gerd Hoffmann. Signed-off-by: Dave Airlie Signed-off-by: Gerd Hoffmann --- hw/pci/pci.c| 2 ++ inc

[Qemu-devel] [PATCH 6/8] virtio-vga: add vgabios configuration

2014-09-23 Thread Gerd Hoffmann
Add seavgabios configuration for virtio-vga, hook up the new vgabios in the makefiles. Signed-off-by: Gerd Hoffmann --- Makefile | 2 +- roms/Makefile | 2 +- roms/config.vga-virtio | 6 ++ 3 files changed, 8 insertions(+), 2 deletions(-) create mode 100644 roms/confi

[Qemu-devel] [PATCH 8/8] virtio-gpu: add to display-vga test

2014-09-23 Thread Gerd Hoffmann
Signed-off-by: Gerd Hoffmann --- tests/Makefile | 3 +++ tests/display-vga-test.c | 18 ++ 2 files changed, 21 insertions(+) diff --git a/tests/Makefile b/tests/Makefile index a5e3d0c..27edb2c 100644 --- a/tests/Makefile +++ b/tests/Makefile @@ -125,6 +125,9 @@ check-q

[Qemu-devel] [PATCH 4/8] virtio-vga: add virtio gpu device with vga compatibility

2014-09-23 Thread Gerd Hoffmann
This patch adds a virtio-vga device. It is simliar to virtio-gpu-pci, but it also adds in vga compatibility, so guests without native virtio-gpu support can drive the device in vga mode. Written by Dave Airlie and Gerd Hoffmann. Signed-off-by: Dave Airlie Signed-off-by: Gerd Hoffmann --- defa

[Qemu-devel] [PATCH 0/8] add virtio-gpu

2014-09-23 Thread Gerd Hoffmann
Hi, Initial batch of virtio-gpu patches, covering 2D support. Patch to the virtio spec has been sent to virtio-dev yesterday, a formated version can be found here: https://www.kraxel.org/virtio/ What is the virtio 1.0 state btw? Specs are final, do we have qemu/kernel patches somewhere me

Re: [Qemu-devel] [PATCH 1/2] qom: add error handler for object_property_print()

2014-09-23 Thread Gonglei (Arei)
> Subject: Re: [Qemu-devel] [PATCH 1/2] qom: add error handler for > object_property_print() > > Hi, > > Am 23.09.2014 um 05:25 schrieb arei.gong...@huawei.com: > > From: Gonglei > > > > Avoid the caller of object_property_print() leaking string > > argument's memory, such as qdev_print_props()

Re: [Qemu-devel] [PATCH 0/2] qom: add error handler for security

2014-09-23 Thread Gonglei (Arei)
> From: Paolo Bonzini [mailto:pbonz...@redhat.com] > Sent: Tuesday, September 23, 2014 9:23 PM > Subject: Re: [PATCH 0/2] qom: add error handler for security > > Il 23/09/2014 15:21, Gonglei (Arei) ha scritto: > > Thanks, Paolo. I merged those two patches in my next patch series > > [PATCH 0/7] a

Re: [Qemu-devel] [PATCH 0/2] qom: add error handler for security

2014-09-23 Thread Paolo Bonzini
Il 23/09/2014 15:21, Gonglei (Arei) ha scritto: > Thanks, Paolo. I merged those two patches in my next patch series > [PATCH 0/7] add description field in ObjectProperty and PropertyInfo struct > because of depending. Maybe I should spilt them again? No, don't worry. Maintainers will handle it j

Re: [Qemu-devel] [PATCH 0/2] qom: add error handler for security

2014-09-23 Thread Gonglei (Arei)
> > > > The PATCH 2 is splited from another patch series, which has been > > reviewed by Paolo. PATCH 1 can avoid possible leaking memory. > > > > Gonglei (2): > > qom: add error handler for object_property_print() > > qom: add error handler for object alias property > > > > qom/object.c | 21

Re: [Qemu-devel] [PATCH 1/2] qom: add error handler for object_property_print()

2014-09-23 Thread Andreas Färber
Hi, Am 23.09.2014 um 05:25 schrieb arei.gong...@huawei.com: > From: Gonglei > > Avoid the caller of object_property_print() leaking string > argument's memory, such as qdev_print_props() when > encounter errors. > > Cc: Paolo Bonzini > Signed-off-by: Gonglei > --- > qom/object.c | 12 +++

Re: [Qemu-devel] [PATCH 0/2] qom: add error handler for security

2014-09-23 Thread Paolo Bonzini
Il 23/09/2014 05:25, arei.gong...@huawei.com ha scritto: > From: Gonglei > > The PATCH 2 is splited from another patch series, which has been > reviewed by Paolo. PATCH 1 can avoid possible leaking memory. > > Gonglei (2): > qom: add error handler for object_property_print() > qom: add erro

[Qemu-devel] [PATCH 3/7] qdev: add description field in PropertyInfo struct

2014-09-23 Thread arei.gonglei
From: Gonglei The descriptions can serve as documentation in the code, and they can be used to provide better help. Cc: Paolo Bonzini Cc: Michael S. Tsirkin Cc: Markus Armbruster Signed-off-by: Gonglei --- hw/core/qdev-properties-system.c | 4 hw/core/qdev-properties.c| 6 +

[Qemu-devel] [PATCH] Modify qemu_opt_rename to realize renaming all items in opts

2014-09-23 Thread Jun Li
Add realization of rename all items in opts for qemu_opt_rename. e.g: When add bps twice in command line, need to rename all bps to throttling.bps-total. Signed-off-by: Jun Li --- This patch solved following bug: Bug 1145586 - qemu-kvm will give strange hint when add bps twice for a drive ref:htt

Re: [Qemu-devel] [PATCH v3 06/23] block: Make BlockBackend own its BlockDriverState

2014-09-23 Thread Kevin Wolf
Am 16.09.2014 um 20:12 hat Markus Armbruster geschrieben: > On BlockBackend destruction, unref its BlockDriverState. Replaces the > callers' unrefs. > > Signed-off-by: Markus Armbruster > --- > block/block-backend.c | 6 ++ > blockdev.c| 8 ++-- > hw/block/xen_disk.c |

[Qemu-devel] [PATCH 6/7] qmp: print descriptions of object properties

2014-09-23 Thread arei.gonglei
From: Gonglei The descriptions can serve as documentation in the code, and they can be used to provide better help. For example: Before this patch: $./qemu-system-x86_64 -device virtio-blk-pci,? virtio-blk-pci.iothread=link virtio-blk-pci.x-data-plane=bool virtio-blk-pci.scsi=bool virtio-blk-pc

[Qemu-devel] [PATCH 1/7] qom: add error handler for object_property_print()

2014-09-23 Thread arei.gonglei
From: Gonglei Avoid the caller of object_property_print() leaking string argument's memory, such as qdev_print_props() when encounter errors. Cc: Paolo Bonzini Signed-off-by: Gonglei --- qom/object.c | 12 ++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/qom/object.

[Qemu-devel] [PATCH 4/7] qom: add description field in ObjectProperty struct

2014-09-23 Thread arei.gonglei
From: Gonglei The descriptions can serve as documentation in the code, and they can be used to provide better help. Cc: Paolo Bonzini Cc: Michael S. Tsirkin Cc: Markus Armbruster Signed-off-by: Gonglei --- include/qom/object.h | 15 +++ qom/object.c | 12 2

[Qemu-devel] [PATCH 7/7] qdev: drop legacy_name from qdev properties

2014-09-23 Thread arei.gonglei
From: Gonglei The legacy_name is useless now, the better help information provied by description field of property. Cc: Paolo Bonzini Cc: Michael S. Tsirkin Cc: Markus Armbruster Signed-off-by: Gonglei --- hw/core/qdev-properties-system.c | 4 hw/core/qdev-properties.c| 6 -

[Qemu-devel] [PATCH 5/7] qdev: set the object property's description to the qdev property's.

2014-09-23 Thread arei.gonglei
From: Gonglei When we call qdev_alias_all_properties() adding alias properties to the source object all qdev properties on the target DeviceState, set the object property's description to the qdev property's. c: Paolo Bonzini Cc: Michael S. Tsirkin Cc: Markus Armbruster Signed-off-by: Gonglei

[Qemu-devel] [PATCH 0/7] add description field in ObjectProperty and PropertyInfo struct

2014-09-23 Thread arei.gonglei
From: Gonglei PATCH 1 and PATCH 2 are bugfixes. PATCH 3~7 add a description field in both ObjectProperty and PropertyInfo struct. The descriptions can serve as documentation in the code, and they can be used to provide better help. For example: Before this patch series: $./qemu-system-x86_64 -d

[Qemu-devel] [PATCH 2/7] qom: add error handler for object alias property

2014-09-23 Thread arei.gonglei
From: Gonglei object_property_add_alias() is called at some places at present. And its parameter errp may not NULL, such as object_property_add_alias(obj, "iothread", OBJECT(&dev->vdev),"iothread", &error_abort); This patch add error handler for security. Cc: Stefa

[Qemu-devel] [PULL 10/26] dev-storage: usring error_report instead of fprintf/printf

2014-09-23 Thread Gerd Hoffmann
From: Gonglei Signed-off-by: Gonglei Reviewed-by: Paolo Bonzini Signed-off-by: Gerd Hoffmann --- hw/usb/dev-storage.c | 12 ++-- 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/hw/usb/dev-storage.c b/hw/usb/dev-storage.c index d97f7fd..bd7cc53 100644 --- a/hw/usb/dev-sto

[Qemu-devel] [PULL 09/26] dev-storage: convert init to realize

2014-09-23 Thread Gerd Hoffmann
From: Gonglei In this way, all the implementations now use error_setg instead of error_report for reporting error. Signed-off-by: Gonglei Reviewed-by: Paolo Bonzini Signed-off-by: Gerd Hoffmann --- hw/usb/dev-storage.c | 21 - 1 file changed, 8 insertions(+), 13 deletions

Re: [Qemu-devel] [PATCH 0/3] trace: drop orphan events from ./trace-events

2014-09-23 Thread Markus Armbruster
Stefan Hajnoczi writes: > On Mon, Sep 22, 2014 at 05:45:15PM +0200, Markus Armbruster wrote: >> Stefan Hajnoczi writes: >> >> > Over time a few unused trace events have been left behind in >> > ./trace-events. >> > Either the code that called them was deleted or the event was >> > never called

[Qemu-devel] [PATCH 2/4] trace-events: Drop unused megasas trace event

2014-09-23 Thread Markus Armbruster
Event megasas_io_read was added in commit e8f943c, but never used. Drop it. Signed-off-by: Markus Armbruster --- trace-events | 2 -- 1 file changed, 2 deletions(-) diff --git a/trace-events b/trace-events index 467439b..cdabb4e 100644 --- a/trace-events +++ b/trace-events @@ -668,8 +668,6 @@ m

[Qemu-devel] [PATCH 4/4] trace-events: Fix comments pointing to source files

2014-09-23 Thread Markus Armbruster
A few files have been renamed without updating their comment here. A few events have been added in the wrong place. Clean that up. Comments with no space after the '#' look ugly and confuse cleanup-trace-events.pl. Insert a space. scripts/cleanup-trace-events.pl is now happy again. Signed-off

[Qemu-devel] [PATCH 1/4] cleanup-trace-events.pl: Tighten search for trace event call

2014-09-23 Thread Markus Armbruster
The script can get fooled too easily. For instance, it finds trace_megasas_io_read_start when looking for trace_megasas_io_read, and incorrectly concludes that event megasas_io_read is used. Supply -w to git-grep to tighten the search. Signed-off-by: Markus Armbruster --- scripts/cleanup-trace

[Qemu-devel] [PATCH 3/4] trace-events: Drop orphaned monitor trace event

2014-09-23 Thread Markus Armbruster
Event monitor_protocol_event is unused since commit 7517517. Drop it. Signed-off-by: Markus Armbruster --- trace-events | 1 - 1 file changed, 1 deletion(-) diff --git a/trace-events b/trace-events index cdabb4e..6eada18 100644 --- a/trace-events +++ b/trace-events @@ -927,7 +927,6 @@ esp_pci_

[Qemu-devel] [PATCH 0/4] trace-events: Clean up with cleanup-trace-events.pl again

2014-09-23 Thread Markus Armbruster
This series applies on top of Stefan's "trace: drop orphan events from ./trace-events". Markus Armbruster (4): cleanup-trace-events.pl: Tighten search for trace event call trace-events: Drop unused megasas trace event trace-events: Drop orphaned monitor trace event trace-events: Fix commen

Re: [Qemu-devel] [PATCH v3 03/23] block: Connect BlockBackend to BlockDriverState

2014-09-23 Thread Markus Armbruster
Kevin Wolf writes: > Am 22.09.2014 um 18:34 hat Markus Armbruster geschrieben: >> Kevin Wolf writes: >> >> > Am 16.09.2014 um 20:12 hat Markus Armbruster geschrieben: >> >> diff --git a/include/block/block_int.h b/include/block/block_int.h >> >> index 8d86a6c..14e0b7c 100644 >> >> --- a/include

Re: [Qemu-devel] [PATCH 1/2] pc-dimm: No numa option shouldn't break hotplug memory feature

2014-09-23 Thread zhanghailiang
On 2014/9/23 19:12, Igor Mammedov wrote: On Tue, 23 Sep 2014 18:11:35 +0800 zhanghailiang wrote: On 2014/9/23 16:58, Tang Chen wrote: On 09/23/2014 04:40 PM, Igor Mammedov wrote: .. It's fine to use SRAT for these purposes on baremetal NUMA systems since due to used chipset constrains i

[Qemu-devel] [PULL 06/26] libusb: convert init to realize

2014-09-23 Thread Gerd Hoffmann
From: Gonglei In this way, all the implementations now use error_setg instead of error_report for reporting error. Signed-off-by: Gonglei Reviewed-by: Paolo Bonzini Signed-off-by: Gerd Hoffmann --- hw/usb/host-libusb.c | 17 - 1 file changed, 8 insertions(+), 9 deletions(-)

[Qemu-devel] [PULL 00/26] usb patch queue

2014-09-23 Thread Gerd Hoffmann
07e2863d0271ac6c05206d8ce9e4f4c39b25d3ea: exec.c: fix setting 1-byte-long watchpoints (2014-09-19 17:42:16 +0100) are available in the git repository at: git://git.kraxel.org/qemu tags/pull-usb-20140923-1 for you to fetch changes up to ec56214f6f23c1e2f78de6afa6835acc35fc03ed: usb: tag

  1   2   3   >