Re: [Qemu-devel] [RFC PATCH v4 23/28] COLO: Improve checkpoint efficiency by do additional periodic checkpoint

2015-05-19 Thread zhanghailiang
On 2015/5/19 0:48, Dr. David Alan Gilbert wrote: * zhanghailiang (zhang.zhanghaili...@huawei.com) wrote: Besides normal checkpoint which according to the result of net packets comparing, We do additional checkpoint periodically, it will reduce the number of dirty pages when do one checkpoint,

Re: [Qemu-devel] [RFC PATCH v13 00/21] Deterministic replay core

2015-05-19 Thread Pavel Dovgaluk
Ping? -Original Message- From: Pavel Dovgalyuk [mailto:pavel.dovga...@ispras.ru] Sent: Wednesday, May 06, 2015 5:03 PM To: qemu-devel@nongnu.org Cc: peter.mayd...@linaro.org; peter.crosthwa...@xilinx.com; ebl...@redhat.com; mark.bur...@greensocs.com; r...@ispras.ru;

[Qemu-devel] [PATCH] tci: do not use CPUArchState in tcg-target.h

2015-05-19 Thread Paolo Bonzini
tcg-target.h does not use any QEMU-specific symbols, save for tci's usage of CPUArchState. Pull that up to tcg/tcg.h. This will make it possible to include tcg-target.h in cpu-defs.h. Signed-off-by: Paolo Bonzini pbonz...@redhat.com --- tcg/tcg.h| 4 +++- tcg/tci/tcg-target.h | 3

Re: [Qemu-devel] [Qemu-discuss] error: ‘XFS_IOC_ZERO_RANGE’ undeclared (first use in this function)

2015-05-19 Thread Peter Maydell
On 19 May 2015 at 03:01, qiaojianfeng qiaojianf...@unitedstack.com wrote: I’m not sure whether I post the issue in the right place, if not correct, sorry for noise and please help me route this email to the right place. I've cc'd qemu-devel and the block maintainer. I’m running into an error

Re: [Qemu-devel] [PATCH v4 4/4] spapr_pci: populate ibm,loc-code

2015-05-19 Thread Alexey Kardashevskiy
On 05/19/2015 04:56 PM, Nikunj A Dadhania wrote: Alexey Kardashevskiy a...@ozlabs.ru writes: On 05/19/2015 02:51 PM, Nikunj A Dadhania wrote: Alexey Kardashevskiy a...@ozlabs.ru writes: On 05/07/2015 05:21 PM, Nikunj A Dadhania wrote: Each hardware instance has a platform unique location

Re: [Qemu-devel] [PATCH 0/3] hw/display: QOMify

2015-05-19 Thread Gonglei
On 2015/5/12 17:27, arei.gong...@huawei.com wrote: From: Gonglei arei.gong...@huawei.com Hi, These three patches just some cleanup work about DO_UPCAST(). Please review, Thanks Cc: Gerd Hoffmann kra...@redhat.com Gonglei (3): vga-pci: QOMify cirrus_vga: QOMify qxl: QOMify

Re: [Qemu-devel] [PATCH v4 13/13] block/mirror: Block device IO during mirror exit

2015-05-19 Thread Paolo Bonzini
On 19/05/2015 13:49, Fam Zheng wrote: When block job mirror is finished, the source and target is synced. But we call bdrv_swap() later in main loop bh. If the guest write before that, target will not get the new data. This is too late. As a rule, the blocker must be established before

Re: [Qemu-devel] [PATCH v2 2/3] cpus: Convert cpu_index into a bitmap

2015-05-19 Thread Bharata B Rao
On Mon, May 18, 2015 at 03:36:54PM -0300, Eduardo Habkost wrote: On Tue, May 12, 2015 at 11:06:25AM +0530, Bharata B Rao wrote: Currently CPUState.cpu_index is monotonically increasing and a newly created CPU always gets the next higher index. The next available index is calculated by

Re: [Qemu-devel] [PATCH 0/6] pci/isa: QOMify

2015-05-19 Thread Gonglei
On 2015/5/13 8:43, arei.gong...@huawei.com wrote: From: Gonglei arei.gong...@huawei.com Because DO_UPCAST() is long deprecated, let me do some cleanup work. Please review, thanks Cc: Michael S. Tsirkin m...@redhat.com Cc: Paolo Bonzini pbonz...@redhat.com Gonglei (6):

Re: [Qemu-devel] [PULL 00/21] target-arm queue

2015-05-19 Thread Peter Maydell
On 18 May 2015 at 20:15, Peter Maydell peter.mayd...@linaro.org wrote: target-arm queue: mostly the new Xilinx board, plus a handful of other minor things. -- PMM The following changes since commit 385057cbec9b4a0eb6150330c572e875ed714965: Merge remote-tracking branch

Re: [Qemu-devel] [PATCH] ppc: add helpful message when KVM fails to start VCPU

2015-05-19 Thread Paolo Bonzini
On 18/05/2015 21:06, Laurent Vivier wrote: On POWER8 systems, KVM checks if VCPU is running on primary threads, and that secondary threads are offline. If this is not the case, ioctl() fails with errno set to EBUSY. QEMU aborts with a non explicit error message: $ ./qemu-system-ppc64

Re: [Qemu-devel] [PATCH v3 02/13] qemu-nbd: Switch to qemu_set_fd_handler

2015-05-19 Thread Amit Shah
On (Tue) 19 May 2015 [10:50:59], Fam Zheng wrote: Achieved by: - Remembering the server fd with a global variable, in order to access it from nbd_client_closed. - Checking nbd_can_accept() and updating server_fd handler whenever client connects or disconnects. Signed-off-by: Fam

Re: [Qemu-devel] [PATCH v3 02/13] qemu-nbd: Switch to qemu_set_fd_handler

2015-05-19 Thread Amit Shah
On (Tue) 19 May 2015 [11:32:56], Amit Shah wrote: On (Tue) 19 May 2015 [10:50:59], Fam Zheng wrote: Achieved by: - Remembering the server fd with a global variable, in order to access it from nbd_client_closed. - Checking nbd_can_accept() and updating server_fd handler whenever

Re: [Qemu-devel] [PATCH v4 4/4] spapr_pci: populate ibm,loc-code

2015-05-19 Thread Nikunj A Dadhania
Alexey Kardashevskiy a...@ozlabs.ru writes: On 05/19/2015 02:51 PM, Nikunj A Dadhania wrote: Alexey Kardashevskiy a...@ozlabs.ru writes: On 05/07/2015 05:21 PM, Nikunj A Dadhania wrote: Each hardware instance has a platform unique location code. The OF device tree that describes a part of

Re: [Qemu-devel] where is the definition of cpu_ldub_code() for Softmmu mode?

2015-05-19 Thread Jun Koi
On Mon, May 18, 2015 at 6:20 PM, Peter Maydell peter.mayd...@linaro.org wrote: On 18 May 2015 at 10:55, Jun Koi junkoi2...@gmail.com wrote: Hi, I am trying to find the definition of cpu_ldub_code() in Softmmu mode. However, the only thing I can find is like this in

Re: [Qemu-devel] [PATCH v4 05/16] qapi: Simplify c_enum_const()

2015-05-19 Thread Alberto Garcia
On Thu 14 May 2015 02:50:51 PM CEST, Eric Blake ebl...@redhat.com wrote: From: Markus Armbruster arm...@redhat.com Signed-off-by: Markus Armbruster arm...@redhat.com Signed-off-by: Eric Blake ebl...@redhat.com Reviewed-by: Alberto Garcia be...@igalia.com Berto

[Qemu-devel] [PULL 08/10] ui/cocoa: Don't use NSWindow useOptimizedDrawing on OSX 10.10 and up

2015-05-19 Thread Peter Maydell
Starting in OSX 10.10, NSWindow useOptimizedDrawing is deprecated, so don't use it there. Signed-off-by: Peter Maydell peter.mayd...@linaro.org Message-id: 1431296361-16981-6-git-send-email-peter.mayd...@linaro.org --- ui/cocoa.m | 5 + 1 file changed, 5 insertions(+) diff --git

[Qemu-devel] [PULL 09/10] ui/cocoa: Avoid deprecated NSOKButton/NSCancelButton constants

2015-05-19 Thread Peter Maydell
In OSX 10.10, the NSOKButton and NSCancelButton constants are deprecated and provoke compiler warnings. Avoid them by using the NSFileHandlingPanelCancelButton and NSFileHandlingPanelOKButton constants instead. These are the documented correct constants for the 10.6-and-up beginSheetModalForWindow

[Qemu-devel] [PATCH v5 2/4] spapr_pci: encode class code including Prog IF register

2015-05-19 Thread Nikunj A Dadhania
Current code missed the Prog IF register. All Class Code, Subclass, and Prog IF registers are needed to identify the accurate device type. For example: USB controllers use the PROG IF for denoting: USB FullSpeed, HighSpeed or SuperSpeed. Signed-off-by: Nikunj A Dadhania nik...@linux.vnet.ibm.com

[Qemu-devel] [PATCH v5 1/4] spapr_pci: encode missing 64-bit memory address space

2015-05-19 Thread Nikunj A Dadhania
The properties reg/assigned-resources need to encode 64-bit memory address space as part of phys.hi dword. 00 if configuration space 01 if IO region, 10 if 32-bit MEM region 11 if 64-bit MEM region Signed-off-by: Nikunj A Dadhania nik...@linux.vnet.ibm.com Reviewed-by: Thomas Huth

Re: [Qemu-devel] [PATCH v4 13/13] block/mirror: Block device IO during mirror exit

2015-05-19 Thread Paolo Bonzini
On 19/05/2015 18:48, Fam Zheng wrote: This is too late. As a rule, the blocker must be established before calling bdrv_drain, and removed on the next yield (in this case, before the assignment to last_pause_ns). I don't understand. If the blocker is removed before mirror_run returns,

Re: [Qemu-devel] [libvirt] [RFC 0/7] Live Migration with Pass-through Devices proposal

2015-05-19 Thread Michael S. Tsirkin
On Thu, Apr 23, 2015 at 12:35:28PM -0400, Laine Stump wrote: On 04/22/2015 01:20 PM, Dr. David Alan Gilbert wrote: * Daniel P. Berrange (berra...@redhat.com) wrote: On Wed, Apr 22, 2015 at 06:12:25PM +0100, Dr. David Alan Gilbert wrote: * Daniel P. Berrange (berra...@redhat.com) wrote: On

Re: [Qemu-devel] [RFC 0/7] Live Migration with Pass-through Devices proposal

2015-05-19 Thread Michael S. Tsirkin
On Wed, Apr 22, 2015 at 10:23:04AM +0100, Daniel P. Berrange wrote: On Fri, Apr 17, 2015 at 04:53:02PM +0800, Chen Fan wrote: backgrond: Live migration is one of the most important features of virtualization technology. With regard to recent virtualization techniques, performance of

Re: [Qemu-devel] [libvirt] [RFC 0/7] Live Migration with Pass-through Devices proposal

2015-05-19 Thread Michael S. Tsirkin
On Thu, Apr 23, 2015 at 11:01:44AM -0400, Laine Stump wrote: On 04/23/2015 04:34 AM, Chen Fan wrote: On 04/20/2015 06:29 AM, Laine Stump wrote: On 04/17/2015 04:53 AM, Chen Fan wrote: - on destination side, check whether need to hotplug new NIC according to specified XML.

Re: [Qemu-devel] [PATCH 8/9] vmstate: Create optional sections

2015-05-19 Thread Dr. David Alan Gilbert
* Juan Quintela (quint...@redhat.com) wrote: To make sections optional, we need to do it at the beggining of the code. Signed-off-by: Juan Quintela quint...@redhat.com Do you also need to add this test to qemu_save_device_state ? Dave --- include/migration/vmstate.h | 2 ++

Re: [Qemu-devel] [PATCH v4 4/4] spapr_pci: populate ibm,loc-code

2015-05-19 Thread Nikunj A Dadhania
Alexey Kardashevskiy a...@ozlabs.ru writes: On 05/19/2015 04:56 PM, Nikunj A Dadhania wrote: Alexey Kardashevskiy a...@ozlabs.ru writes: On 05/19/2015 02:51 PM, Nikunj A Dadhania wrote: Alexey Kardashevskiy a...@ozlabs.ru writes: On 05/07/2015 05:21 PM, Nikunj A Dadhania wrote: Each

[Qemu-devel] [PULL 06/10] ui/cocoa: openPanelDidEnd returnCode should be NSInteger, not int

2015-05-19 Thread Peter Maydell
The type for openPanelDidEnd's returnCode argument should be NSInteger, not int. This only matters for the OSX 10.5 code path where we pass the method directly to an OSX function to call. Signed-off-by: Peter Maydell peter.mayd...@linaro.org Message-id:

[Qemu-devel] [PULL 00/10] cocoa queue

2015-05-19 Thread Peter Maydell
-3' into staging (2015-05-18 20:23:16 +0100) are available in the git repository at: git://git.linaro.org/people/pmaydell/qemu-arm.git tags/pull-cocoa-20150519 for you to fetch changes up to b4c6a112dcfa1d24b905e6763e02000937f1: ui/cocoa: Add console items to the View menu (2015-05-19

[Qemu-devel] [PULL 05/10] ui/cocoa: Remove compatibility ifdefs for OSX 10.4

2015-05-19 Thread Peter Maydell
Remove compatibility ifdefs that work around OSX 10.4 not providing various typedefs and functions. Signed-off-by: Peter Maydell peter.mayd...@linaro.org Message-id: 1431296361-16981-3-git-send-email-peter.mayd...@linaro.org --- ui/cocoa.m | 17 - 1 file changed, 17 deletions(-)

[Qemu-devel] [PULL 01/10] ui/cocoa: Fix several full screen issues on Mac OS X

2015-05-19 Thread Peter Maydell
From: Programmingkid programmingk...@gmail.com This patch makes several changes: - Minimizes distorted full screen display by respecting aspect ratios. - Makes full screen mode available on Mac OS 10.7 and higher. - Allows user to decide if video should be stretched to fill the screen, using a

Re: [Qemu-devel] [PATCH v4 0/27] write/create for Parallels images with reasonable performance

2015-05-19 Thread Kevin Wolf
Am 18.05.2015 um 18:45 hat Stefan Hajnoczi geschrieben: On Tue, Apr 28, 2015 at 10:46:33AM +0300, Denis V. Lunev wrote: This patchset provides an ability to create of/write to Parallels images and some testing of the new code. Readings and writings are optimized out and I expect the same or

[Qemu-devel] [PATCH v5 3/4] spapr_pci: enumerate and add PCI device tree

2015-05-19 Thread Nikunj A Dadhania
All the PCI enumeration and device node creation was off-loaded to SLOF. With PCI hotplug support, code needed to be added to add device node. This creates multiple copy of the code one in SLOF and other in hotplug code. To unify this, the patch adds the pci device node creation in Qemu. For

[Qemu-devel] [PULL 02/10] ui/cocoa: Make -full-screen option work on Mac OS X

2015-05-19 Thread Peter Maydell
From: Programmingkid programmingk...@gmail.com This patch makes the -full-screen option actually instruct QEMU to enter fullscreen at startup, on Mac OS X. Signed-off-by: John Arbuckle programmingk...@gmail.com Signed-off-by: Peter Maydell peter.mayd...@linaro.org --- ui/cocoa.m | 6 ++ 1

[Qemu-devel] [PATCH v5 0/4] spapr_pci: DT field fixes and PCI DT node creation in QEMU

2015-05-19 Thread Nikunj A Dadhania
The patch series creates PCI device tree(DT) nodes in QEMU. The new hotplug code needs the device node creation in QEMU. While during boot, nodes were created in SLOF. It makes more sense to consolidate the code to one place for better maintainability. Based on David's spapr-next

[Qemu-devel] [PATCH v5 4/4] spapr_pci: populate ibm,loc-code

2015-05-19 Thread Nikunj A Dadhania
Each hardware instance has a platform unique location code. The OF device tree that describes a part of a hardware entity must include the “ibm,loc-code” property with a value that represents the location code for that hardware entity. Populate ibm,loc-code. 1) PCI passthru devices need to

[Qemu-devel] [PULL 10/10] ui/cocoa: Add console items to the View menu

2015-05-19 Thread Peter Maydell
From: Programmingkid programmingk...@gmail.com Add any console that is available to the current emulator as a menu item under the View menu. Signed-off-by: John Arbuckle programmingk...@gmail.com [PMM: Adjusted to apply after zoom-to-fit menu item was added; create the View menu at the same

[Qemu-devel] [PULL 07/10] ui/cocoa: Declare that QemuCocoaAppController implements NSApplicationDelegate

2015-05-19 Thread Peter Maydell
Our class QemuCocoaAppController implements the NSApplicationDelegate interface, and we pass an object of this class to [NSApp setDelegate]. However, we weren't declaring in the class definition that we implemented this interface; in OSX 10.10 this provokes the following (slighly misleading)

[Qemu-devel] [PULL 04/10] ui/cocoa: Drop tests for CGImageCreateWithImageInRect support

2015-05-19 Thread Peter Maydell
The code that tries to test at both compiletime and runtime for whether CGImageCreateWithImageInRect is supported provokes a compile warning on OSX 10.3: ui/cocoa.m:378:13: warning: comparison of function 'CGImageCreateWithImageInRect' equal to a null pointer is always

Re: [Qemu-devel] [PATCH v7 14/23] hw/acpi/aml-build: Add ToUUID macro

2015-05-19 Thread Michael S. Tsirkin
On Tue, May 19, 2015 at 08:41:39AM +0800, Shannon Zhao wrote: On 2015/5/19 0:17, Michael S. Tsirkin wrote: On Thu, May 14, 2015 at 05:19:33PM +0800, Shannon Zhao wrote: From: Shannon Zhao shannon.z...@linaro.org Add ToUUID macro, this is useful for generating PCIe ACPI table.

Re: [Qemu-devel] [PATCH v4 13/13] block/mirror: Block device IO during mirror exit

2015-05-19 Thread Fam Zheng
On Tue, 05/19 10:04, Paolo Bonzini wrote: On 19/05/2015 13:49, Fam Zheng wrote: When block job mirror is finished, the source and target is synced. But we call bdrv_swap() later in main loop bh. If the guest write before that, target will not get the new data. This is too late. As a

Re: [Qemu-devel] [RFC 4/7] qemu-agent: add qemuAgentCreateBond interface

2015-05-19 Thread Michael S. Tsirkin
On Fri, Apr 17, 2015 at 04:53:06PM +0800, Chen Fan wrote: via initialize callback to create bond device. Signed-off-by: Chen Fan chen.fan.f...@cn.fujitsu.com --- src/qemu/qemu_agent.c | 118 src/qemu/qemu_agent.h | 10

[Qemu-devel] [PULL 0/1] serial: fix multi-pci card error cleanup.

2015-05-19 Thread Gerd Hoffmann
Hi, Error handling fix for the multiport pci-serial cards. please pull, Gerd The following changes since commit faa261a7fb254866bdd5b6a25ad94677945f21b4: Merge remote-tracking branch 'remotes/pmaydell/tags/pull-cocoa-20150519' into staging (2015-05-19 10:25:59 +0100) are available

[Qemu-devel] [PULL 1/1] serial: fix multi-pci card error cleanup.

2015-05-19 Thread Gerd Hoffmann
Put the number of serial ports into a local variable in multi_serial_pci_realize, then increment the port count (pci-ports) as we initialize the serial port cores. Now pci-ports always holds the number of successfully initialized ports and we can use multi_serial_pci_exit to properly cleanup the

Re: [Qemu-devel] [PATCH v4 13/13] block/mirror: Block device IO during mirror exit

2015-05-19 Thread Paolo Bonzini
On 19/05/2015 20:37, Fam Zheng wrote: On Tue, 05/19 10:49, Paolo Bonzini wrote: On 19/05/2015 18:48, Fam Zheng wrote: This is too late. As a rule, the blocker must be established before calling bdrv_drain, and removed on the next yield (in this case, before the assignment to

Re: [Qemu-devel] [PATCH v4 4/4] spapr_pci: populate ibm,loc-code

2015-05-19 Thread Alexander Graf
On 05/19/2015 11:58 AM, Nikunj A Dadhania wrote: Alexey Kardashevskiy a...@ozlabs.ru writes: On 05/19/2015 06:14 PM, Nikunj A Dadhania wrote: Alexey Kardashevskiy a...@ozlabs.ru writes: On 05/19/2015 04:56 PM, Nikunj A Dadhania wrote: Alexey Kardashevskiy a...@ozlabs.ru writes: On

Re: [Qemu-devel] [PATCH 0/3] hw/display: QOMify

2015-05-19 Thread Gonglei
On 2015/5/19 18:45, Gerd Hoffmann wrote: On Di, 2015-05-19 at 15:48 +0800, Gonglei wrote: On 2015/5/12 17:27, arei.gong...@huawei.com wrote: From: Gonglei arei.gong...@huawei.com Hi, These three patches just some cleanup work about DO_UPCAST(). Please review, Thanks Cc: Gerd Hoffmann

Re: [Qemu-devel] [RFC/RFT PATCH v2 1/3] arm/arm64: pageattr: add set_memory_nc

2015-05-19 Thread Catalin Marinas
On Tue, May 19, 2015 at 11:03:22AM +0100, Andrew Jones wrote: On Mon, May 18, 2015 at 04:53:03PM +0100, Catalin Marinas wrote: Another way would be to split the vma containing the non-cacheable memory so that you get a single vma with the vm_page_prot as Non-cacheable. This sounds

Re: [Qemu-devel] [PATCH] serial: fix multi-pci card error cleanup.

2015-05-19 Thread Paolo Bonzini
On 06/05/2015 13:31, Gerd Hoffmann wrote: Put the number of serial ports into a local variable in multi_serial_pci_realize, then increment the port count (pci-ports) as we initialize the serial port cores. Now pci-ports always holds the number of successfully initialized ports and we can

Re: [Qemu-devel] [RFC PATCH 02/15] qdev: store DeviceState's canonical path to use when unparenting

2015-05-19 Thread Paolo Bonzini
On 05/05/2015 17:48, Michael Roth wrote: Well, I was referring to: sPAPRTCETable *spapr_tce_new_table(DeviceState *owner, uint32_t liobn) and: sPAPRDRConnector *spapr_dr_connector_new(Object *owner, sPAPRDRConnectorType type,

Re: [Qemu-devel] [PATCH v4 4/4] spapr_pci: populate ibm,loc-code

2015-05-19 Thread Alexey Kardashevskiy
On 05/19/2015 06:14 PM, Nikunj A Dadhania wrote: Alexey Kardashevskiy a...@ozlabs.ru writes: On 05/19/2015 04:56 PM, Nikunj A Dadhania wrote: Alexey Kardashevskiy a...@ozlabs.ru writes: On 05/19/2015 02:51 PM, Nikunj A Dadhania wrote: Alexey Kardashevskiy a...@ozlabs.ru writes: On

Re: [Qemu-devel] [PATCH v4 4/4] spapr_pci: populate ibm,loc-code

2015-05-19 Thread Nikunj A Dadhania
Alexey Kardashevskiy a...@ozlabs.ru writes: On 05/19/2015 06:14 PM, Nikunj A Dadhania wrote: Alexey Kardashevskiy a...@ozlabs.ru writes: On 05/19/2015 04:56 PM, Nikunj A Dadhania wrote: Alexey Kardashevskiy a...@ozlabs.ru writes: On 05/19/2015 02:51 PM, Nikunj A Dadhania wrote: Alexey

Re: [Qemu-devel] [RFC/RFT PATCH v2 1/3] arm/arm64: pageattr: add set_memory_nc

2015-05-19 Thread Andrew Jones
Hi Catalin, Thanks for the feedback. Some comments to your comments below. On Mon, May 18, 2015 at 04:53:03PM +0100, Catalin Marinas wrote: On Thu, May 14, 2015 at 02:46:44PM +0100, Andrew Jones wrote: On Thu, May 14, 2015 at 01:05:09PM +0200, Christoffer Dall wrote: On Wed, May 13, 2015

Re: [Qemu-devel] [PATCH v4 13/13] block/mirror: Block device IO during mirror exit

2015-05-19 Thread Fam Zheng
On Tue, 05/19 10:49, Paolo Bonzini wrote: On 19/05/2015 18:48, Fam Zheng wrote: This is too late. As a rule, the blocker must be established before calling bdrv_drain, and removed on the next yield (in this case, before the assignment to last_pause_ns). I don't understand. If

Re: [Qemu-devel] [Qemu-block] [PATCH] block/mirror: Sleep periodically during bitmap scanning

2015-05-19 Thread Stefan Hajnoczi
On Wed, May 13, 2015 at 11:11:13AM +0800, Fam Zheng wrote: Before, we only yield after initializing dirty bitmap, where the QMP command would return. That may take very long, and guest IO will be blocked. Add sleep points like the later mirror iterations. Signed-off-by: Fam Zheng

[Qemu-devel] [PULL 2/3] qxl: QOMify

2015-05-19 Thread Gerd Hoffmann
From: Gonglei arei.gong...@huawei.com Signed-off-by: Gonglei arei.gong...@huawei.com Signed-off-by: Gerd Hoffmann kra...@redhat.com --- hw/display/qxl.c | 44 ++-- hw/display/qxl.h | 3 +++ 2 files changed, 29 insertions(+), 18 deletions(-) diff --git

Re: [Qemu-devel] [PULL 00/10] cocoa queue

2015-05-19 Thread Peter Maydell
: Merge remote-tracking branch 'remotes/pmaydell/tags/pull-target-arm-20150518-3' into staging (2015-05-18 20:23:16 +0100) are available in the git repository at: git://git.linaro.org/people/pmaydell/qemu-arm.git tags/pull-cocoa-20150519 for you to fetch changes up

Re: [Qemu-devel] [PATCH 0/3] hw/display: QOMify

2015-05-19 Thread Gerd Hoffmann
On Di, 2015-05-19 at 15:48 +0800, Gonglei wrote: On 2015/5/12 17:27, arei.gong...@huawei.com wrote: From: Gonglei arei.gong...@huawei.com Hi, These three patches just some cleanup work about DO_UPCAST(). Please review, Thanks Cc: Gerd Hoffmann kra...@redhat.com Gonglei

Re: [Qemu-devel] [PATCH v4 05/16] qapi: Simplify c_enum_const()

2015-05-19 Thread Markus Armbruster
Alberto Garcia be...@igalia.com writes: On Thu 14 May 2015 02:50:51 PM CEST, Eric Blake ebl...@redhat.com wrote: From: Markus Armbruster arm...@redhat.com Signed-off-by: Markus Armbruster arm...@redhat.com Signed-off-by: Eric Blake ebl...@redhat.com Reviewed-by: Alberto Garcia

[Qemu-devel] [PATCH] tcg: fix dead computation for repeated input arguments

2015-05-19 Thread Aurelien Jarno
When the same temp is used twice or more as an input argument to a TCG instruction, the dead computation code doesn't recognize the second use as a dead temp. This is because the temp is marked as live in the same loop where dead inputs are checked. The fix is to split the loop in two parts. This

Re: [Qemu-devel] openbios.git mirror on git.qemu.org

2015-05-19 Thread Stefan Hajnoczi
On Fri, May 08, 2015 at 12:32:59PM +0100, Mark Cave-Ayland wrote: I noticed last week that the openbios.git mirror on git.qemu.org hadn't been updated after a commit I made to SVN trunk, and after some investigation work by Stefan it seems that the upstream remote is given as a git:// URL

[Qemu-devel] [PULL 0/3] hw/display: qomify vga cards

2015-05-19 Thread Gerd Hoffmann
in the git repository at: git://git.kraxel.org/qemu tags/pull-vga-20150519-1 for you to fetch changes up to 176c324febd76d6f164347583f5af35b3cb4e5fb: vga-pci: QOMify (2015-05-19 11:40:01 +0200) hw/display: qomify vga cards

[Qemu-devel] [PULL 3/3] vga-pci: QOMify

2015-05-19 Thread Gerd Hoffmann
From: Gonglei arei.gong...@huawei.com Signed-off-by: Gonglei arei.gong...@huawei.com Signed-off-by: Gerd Hoffmann kra...@redhat.com --- hw/display/vga-pci.c | 48 ++-- 1 file changed, 30 insertions(+), 18 deletions(-) diff --git a/hw/display/vga-pci.c

[Qemu-devel] [PULL 1/3] cirrus_vga: QOMify

2015-05-19 Thread Gerd Hoffmann
From: Gonglei arei.gong...@huawei.com QOMify pci-cirrus-vga like isa-cirrus-vga device. Signed-off-by: Gonglei arei.gong...@huawei.com Signed-off-by: Gerd Hoffmann kra...@redhat.com --- hw/display/cirrus_vga.c | 8 ++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git

Re: [Qemu-devel] [PATCH] block: get_block_status: use else when testing the opposite condition

2015-05-19 Thread Stefan Hajnoczi
On Thu, May 14, 2015 at 12:35:02PM +0200, Paolo Bonzini wrote: A bit of Boolean algebra (and common sense) tells us that the second if here is looking for blocks that are not allocated. This is the opposite of the if that sets BDRV_BLOCK_ALLOCATED, and thus it can use an else.

[Qemu-devel] [PATCH 1/4] Merge section header writing

2015-05-19 Thread Dr. David Alan Gilbert (git)
From: Dr. David Alan Gilbert dgilb...@redhat.com The header writing for device sections is open coded in a few places, merge it into one. Signed-off-by: Dr. David Alan Gilbert dgilb...@redhat.com --- savevm.c | 73 +--- 1 file changed,

[Qemu-devel] [PATCH 3/4] Add a protective section footer

2015-05-19 Thread Dr. David Alan Gilbert (git)
From: Dr. David Alan Gilbert dgilb...@redhat.com Badly formatted migration streams can go undetected or produce misleading errors due to a lock of checking at the end of sections. In particular a section that adds an extra 0x00 at the end causes what looks like a normal end of stream and thus

[Qemu-devel] [PATCH 2/4] Disable section footers on older machine types

2015-05-19 Thread Dr. David Alan Gilbert (git)
From: Dr. David Alan Gilbert dgilb...@redhat.com The next patch adds section footers; but we don't want to break migration compatibility so disable them on older machine types Signed-off-by: Dr. David Alan Gilbert dgilb...@redhat.com --- hw/i386/pc_piix.c | 2 ++ hw/i386/pc_q35.c

[Qemu-devel] [PATCH 4/4] Teach analyze-migration.py about section footers

2015-05-19 Thread Dr. David Alan Gilbert (git)
From: Dr. David Alan Gilbert dgilb...@redhat.com Signed-off-by: Dr. David Alan Gilbert dgilb...@redhat.com --- scripts/analyze-migration.py | 5 + 1 file changed, 5 insertions(+) diff --git a/scripts/analyze-migration.py b/scripts/analyze-migration.py index 0c8b22f..f6894be 100755 ---

[Qemu-devel] [PATCH 0/4] Add section footers to detect corrupted migration streams

2015-05-19 Thread Dr. David Alan Gilbert (git)
From: Dr. David Alan Gilbert dgilb...@redhat.com Badly formatted migration streams can go undetected or produce misleading errors due to a lock of checking at the end of sections. In particular a section that adds an extra 0x00 at the end causes what looks like a normal end of stream and thus

Re: [Qemu-devel] [RFC/RFT PATCH v2 1/3] arm/arm64: pageattr: add set_memory_nc

2015-05-19 Thread Andrew Jones
On Tue, May 19, 2015 at 12:18:54PM +0100, Catalin Marinas wrote: On Tue, May 19, 2015 at 11:03:22AM +0100, Andrew Jones wrote: On Mon, May 18, 2015 at 04:53:03PM +0100, Catalin Marinas wrote: Another way would be to split the vma containing the non-cacheable memory so that you get a

[Qemu-devel] [PATCH] target-i386: wake up processors that receive an SMI

2015-05-19 Thread Paolo Bonzini
An SMI should definitely wake up a processor in halted state! This lets OVMF boot with SMM on multiprocessor systems, although it halts very soon after that with a CpuIndex != BspIndex assertion failure. Signed-off-by: Paolo Bonzini pbonz...@redhat.com --- target-i386/cpu.c | 1 + 1 file

Re: [Qemu-devel] [PATCH 10/31] vl: allow full-blown QemuOpts syntax for -global

2015-05-19 Thread Paolo Bonzini
Markus, can you review this one? Thanks, Paolo On 11/05/2015 15:48, Paolo Bonzini wrote: -global does not work for drivers that have a dot in their name, such as cfi.pflash01. This is just a parsing limitation, because such globals can be declared easily inside a -readconfig file. To

Re: [Qemu-devel] [PATCH 11/31] qom: add object_property_add_const_link

2015-05-19 Thread Paolo Bonzini
Andreas, Eduardo, can you review and ack this one? On 11/05/2015 15:48, Paolo Bonzini wrote: Suggested-by: Eduardo Habkost ehabk...@redhat.com Signed-off-by: Paolo Bonzini pbonz...@redhat.com --- include/qom/object.h | 18 ++ qom/object.c | 16 2

Re: [Qemu-devel] [PATCH 28/31] vga: disable chain4_alias if KVM supports SMRAM

2015-05-19 Thread Paolo Bonzini
This actually is not needed anymore in the latest incarnation of the kernel-side interface. Paolo On 11/05/2015 15:49, Paolo Bonzini wrote: KVM is okay with SMRAM overlapping an MMIO area underneath it, but it does not want to have two overlapping RAM slots for SMRAM and video RAM.

Re: [Qemu-devel] [PATCH] target-i386: wake up processors that receive an SMI

2015-05-19 Thread Laszlo Ersek
On 05/19/15 13:47, Paolo Bonzini wrote: An SMI should definitely wake up a processor in halted state! This lets OVMF boot with SMM on multiprocessor systems, although it halts very soon after that with a CpuIndex != BspIndex assertion failure. Signed-off-by: Paolo Bonzini

Re: [Qemu-devel] [PATCH v6 05/22] hw/acpi/aml-build: Add aml_interrupt() term

2015-05-19 Thread Igor Mammedov
On Mon, 18 May 2015 12:33:25 +0200 Michael S. Tsirkin m...@redhat.com wrote: On Mon, May 18, 2015 at 12:05:49PM +0800, Shannon Zhao wrote: On 2015/5/15 20:14, Igor Mammedov wrote: On Thu, 7 May 2015 16:51:31 +0100 Peter Maydell peter.mayd...@linaro.org wrote: On 7 May 2015 at

Re: [Qemu-devel] [PATCH v6 05/22] hw/acpi/aml-build: Add aml_interrupt() term

2015-05-19 Thread Igor Mammedov
On Mon, 18 May 2015 12:34:04 +0200 Michael S. Tsirkin m...@redhat.com wrote: On Mon, May 18, 2015 at 12:00:09PM +0800, Shannon Zhao wrote: On 2015/5/15 20:45, Igor Mammedov wrote: On Thu, 7 May 2015 17:29:07 +0800 Shannon Zhao zhaoshengl...@huawei.com wrote: From: Shannon Zhao

[Qemu-devel] [RESEND PATCH 05/23] hw/acpi/aml-build: Add aml_interrupt() term

2015-05-19 Thread Shannon Zhao
From: Shannon Zhao shannon.z...@linaro.org Add aml_interrupt() for describing device interrupt in resource template. These can be used to generating DSDT table for ACPI on ARM. Signed-off-by: Shannon Zhao zhaoshengl...@huawei.com Signed-off-by: Shannon Zhao shannon.z...@linaro.org ---

[Qemu-devel] [RESEND PATCH 14/23] hw/acpi/aml-build: Add ToUUID macro

2015-05-19 Thread Shannon Zhao
From: Shannon Zhao shannon.z...@linaro.org Add ToUUID macro, this is useful for generating PCIe ACPI table. Signed-off-by: Shannon Zhao zhaoshengl...@huawei.com Signed-off-by: Shannon Zhao shannon.z...@linaro.org Reviewed-by: Igor Mammedov imamm...@redhat.com --- hw/acpi/aml-build.c |

[Qemu-devel] [RESEND PATCH v7 22/23] ACPI: split CONFIG_ACPI into 4 pieces

2015-05-19 Thread Shannon Zhao
From: Shannon Zhao shannon.z...@linaro.org As core.c, piix4.c, ich9.c and pcihp.c are for x86, add CONFIG_ACPI_X86 to make it only for x86. ARM doesn't support cpu and memory hotplug, add CONFIG_ACPI_CPU_HOTPLUG and CONFIG_ACPI_MEMORY_HOTPLUG to exclude them for target-arm. Signed-off-by:

Re: [Qemu-devel] [Qemu-block] [PATCH v3 00/13] main-loop: Get rid of fd_read_poll and qemu_set_fd_handler2

2015-05-19 Thread Fam Zheng
On Tue, 05/19 16:02, Stefan Hajnoczi wrote: On Tue, May 19, 2015 at 10:50:57AM +, Fam Zheng wrote: v3: Replace previous 13 with a simple return type conversion patch. Drop RFC. This carries out the mandate in the comment of qemu_set_fd_handler2 and removes fd_read_poll from

[Qemu-devel] migration network requirements

2015-05-19 Thread Alexey Kardashevskiy
Hi! Recent bugreports from our testers at IBM about failed migration across USA (for example, from NY to TX) made me wonder - what are the actual basic requirements/expectations for migration? In what network is it normally tested (I use 1Gb/10Gb local network without routers)? Is there

[Qemu-devel] [RESEND PATCH v7 20/23] hw/acpi/aml-build: Add Unicode macro

2015-05-19 Thread Shannon Zhao
From: Shannon Zhao shannon.z...@linaro.org Signed-off-by: Shannon Zhao zhaoshengl...@huawei.com Signed-off-by: Shannon Zhao shannon.z...@linaro.org --- hw/acpi/aml-build.c | 17 + include/hw/acpi/aml-build.h | 1 + 2 files changed, 18 insertions(+) diff --git

Re: [Qemu-devel] [PATCH 0/3] virtio-balloon: use alias property

2015-05-19 Thread Shannon Zhao
Ping... Have any maintainer picked up these patches? On 2015/5/11 17:34, shannon.z...@linaro.org wrote: From: Shannon Zhao shannon.z...@linaro.org The wrappers of virtio-balloon are using object_property_add to add properties and all have their own getters/setters which are duplicate of

[Qemu-devel] [PATCH v6 4/4] icc_bus: drop the unused files

2015-05-19 Thread Zhu Guihua
ICC bus impl has been droped, so all icc related files are not useful any more; delete them. Signed-off-by: Zhu Guihua zhugh.f...@cn.fujitsu.com --- default-configs/i386-softmmu.mak | 1 - default-configs/x86_64-softmmu.mak | 1 - hw/cpu/Makefile.objs | 1 -

[Qemu-devel] [PATCH v6 3/4] cpu/apic: drop icc bus/bridge

2015-05-19 Thread Zhu Guihua
From: Chen Fan chen.fan.f...@cn.fujitsu.com After CPU hotplug has been converted to BUS-less hot-plug infrastructure, the only function ICC bus performs is to propagate reset to LAPICs. However LAPIC could be reset by its parent (CPU) directly when CPU is being reset. Do so and drop ~200LOC of

[Qemu-devel] [PATCH v6 0/4] remove icc bus/bridge

2015-05-19 Thread Zhu Guihua
ICC Bus was used for providing a hotpluggable bus for APIC and CPU, but now we use HotplugHandler to make hotplug. So ICC Bus is unnecessary. This code has passed the new pc-cpu-test. And I have tested with kvm along with kernel_irqchip=on/off, it works fine. This patch series is rebased on

[Qemu-devel] [PATCH v2 3/4] rocker: bring link up/down on PHY enable/disable

2015-05-19 Thread sfeldma
From: Scott Feldman sfel...@gmail.com When the OS driver enables/disables the port, go ahead and set the port's link status to up/down in response to the change. This more closely emulates real hardware when the PHY for the port is brought up/down and the PHY negotiates carrier (link status)

Re: [Qemu-devel] [PATCH v6 05/22] hw/acpi/aml-build: Add aml_interrupt() term

2015-05-19 Thread Shannon Zhao
On 2015/5/19 20:09, Igor Mammedov wrote: Also, enum values must all be formatted like this: UPPER_CASE may be better not, for consistency with the rest of enums in this header. Will add another patch to fix the enums of this header firstly. -- Shannon

Re: [Qemu-devel] [PATCH 0/6] Blank property cleanup

2015-05-19 Thread Shannon Zhao
Ping... On 2015/5/12 10:25, shannon.z...@linaro.org wrote: From: Shannon Zhao shannon.z...@linaro.org After [1]s390-virtio: use common features and [2]virtio: Move host features to backends applied, there are some Property arrays which only contain the list terminator

Re: [Qemu-devel] [PATCH v4 13/13] block/mirror: Block device IO during mirror exit

2015-05-19 Thread Fam Zheng
On Tue, 05/19 12:57, Paolo Bonzini wrote: On 19/05/2015 20:37, Fam Zheng wrote: On Tue, 05/19 10:49, Paolo Bonzini wrote: On 19/05/2015 18:48, Fam Zheng wrote: This is too late. As a rule, the blocker must be established before calling bdrv_drain, and removed on the next yield

Re: [Qemu-devel] [PATCH v4 4/4] spapr_pci: populate ibm,loc-code

2015-05-19 Thread Nikunj A Dadhania
Alexander Graf ag...@suse.de writes: On 05/19/2015 11:58 AM, Nikunj A Dadhania wrote: Alexey Kardashevskiy a...@ozlabs.ru writes: On 05/19/2015 06:14 PM, Nikunj A Dadhania wrote: Alexey Kardashevskiy a...@ozlabs.ru writes: On 05/19/2015 04:56 PM, Nikunj A Dadhania wrote: Alexey

[Qemu-devel] GSoC 2015 (Mac OS 9 support) report, week 3

2015-05-19 Thread Alexander Graf
[This Week] - Investigate MOL device tree further - Mark There is also an interesting dump of what seems to be a MOL tree at http://josejx.net/mol/mol-stable/mollib/oftrees/oftree.nw.old (which has a commented out entry for AAPL,debug set to -1). The interesting parts I see

[Qemu-devel] [PATCH] hw/pci-bridge: Report an error when msi init fails

2015-05-19 Thread shannon . zhao
From: Shannon Zhao shannon.z...@linaro.org Notice user the reason for device initialization failure. Signed-off-by: Shannon Zhao zhaoshengl...@huawei.com Signed-off-by: Shannon Zhao shannon.z...@linaro.org --- hw/pci-bridge/ioh3420.c| 2 ++ hw/pci-bridge/pci_bridge_dev.c | 2 ++

[Qemu-devel] [PATCH v6 2/4] apic: convert -busdev.qdev casts to C casts

2015-05-19 Thread Zhu Guihua
Use C casts to avoid accessing ICCDevice's qdev field directly. Signed-off-by: Zhu Guihua zhugh.f...@cn.fujitsu.com --- hw/intc/apic.c | 9 ++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/hw/intc/apic.c b/hw/intc/apic.c index 0f97b47..77b639c 100644 --- a/hw/intc/apic.c

[Qemu-devel] [PATCH v6 1/4] apic: map APIC's MMIO region at each CPU's address space

2015-05-19 Thread Zhu Guihua
From: Chen Fan chen.fan.f...@cn.fujitsu.com Replace mapping APIC at global system address space with mapping it at per-CPU address spaces. Signed-off-by: Chen Fan chen.fan.f...@cn.fujitsu.com Signed-off-by: Zhu Guihua zhugh.f...@cn.fujitsu.com --- exec.c| 5 + hw/i386/pc.c

[Qemu-devel] [PATCH v2 2/4] rocker: update tests using hw-derived interface names

2015-05-19 Thread sfeldma
From: Scott Feldman sfel...@gmail.com With previous patch to support phy name attribute for each port, the OS can name port interfaces using the hw-derived name. So update rocker tests to use the new hw-derived interface names. Signed-off-by: Scott Feldman sfel...@gmail.com Reviewed-by: Stefan

[Qemu-devel] [PATCH v2 4/4] qmp/hmp: add rocker device support

2015-05-19 Thread sfeldma
From: Scott Feldman sfel...@gmail.com v2: Address review comments from Stefan Hajnoczi: - Add missing qapi/rocker.json file. - Use PRIx64 for print uint64 value - when CONFIG_ROCKER is not defined, build qmp-norocker.o stub using hw/net/Makefile.objs rather than in the top-level

[Qemu-devel] [PATCH v2 1/4] rocker: Add support for phys name

2015-05-19 Thread sfeldma
From: David Ahern dsah...@gmail.com v2: Review comment from Stefan Hajnoczi: - use private ROCKER_IFNAMSIZ = 16 to avoid breaking Windows build as Windows does not include net/if.h v1: Add ROCKER_TLV_CMD_PORT_SETTINGS_PHYS_NAME to port settings. This attribute exports the port name to the

[Qemu-devel] [PATCH v2 0/4] rocker device updates

2015-05-19 Thread sfeldma
From: Scott Feldman sfel...@gmail.com v2: Address some review comments by Stefan Hajnoczi: see individual patches for v1-v2 changes. v1: Some rocker device updates we've been holding onto waiting for base rocker device to be pulled into 2.4. David added support for the device to return the

  1   2   3   >