Re: [Qemu-devel] [Qemu-ppc] [RFC PATCH v2 19/23] spapr: CPU hot unplug support

2015-04-06 Thread Alexey Kardashevskiy
On 03/24/2015 12:36 AM, Bharata B Rao wrote: Support hot removal of CPU for sPAPR guests by sending the hot unplug notification to the guest via EPOW interrupt. Signed-off-by: Bharata B Rao --- hw/ppc/spapr.c| 78 ++- linux-headers/linu

Re: [Qemu-devel] [PATCH v5 12/45] Return path: Source handling of return path

2015-04-06 Thread David Gibson
On Wed, Apr 01, 2015 at 04:14:05PM +0100, Dr. David Alan Gilbert wrote: > * David Gibson (da...@gibson.dropbear.id.au) wrote: > > On Fri, Mar 20, 2015 at 06:17:31PM +, Dr. David Alan Gilbert wrote: > > > * David Gibson (da...@gibson.dropbear.id.au) wrote: > > > > On Wed, Feb 25, 2015 at 04:51:3

Re: [Qemu-devel] [PATCH v4 00/20] Generate ACPI v5.1 tables and expose it to guest over fw_cfg on ARM

2015-04-06 Thread Shannon Zhao
On 2015/4/7 2:47, Mark Salter wrote: > On Fri, 2015-04-03 at 18:03 +0800, Shannon Zhao wrote: >> > From: Shannon Zhao >> > >> > This patch series generate six ACPI v5.1 tables for machine virt on ARM. >> > The set of generated tables are: >> > - RSDP >> > - RSDT >> > - MADT >> > - GTDT >> > - FAD

Re: [Qemu-devel] [PATCH COLO v3 11/14] Backup: clear all bitmap when doing block checkpoint

2015-04-06 Thread Wen Congyang
On 04/03/2015 07:09 PM, Paolo Bonzini wrote: > > > On 03/04/2015 12:01, Wen Congyang wrote: >> Signed-off-by: Wen Congyang >> Signed-off-by: zhanghailiang >> Signed-off-by: Gonglei >> Cc: Jeff Cody >> --- >> block/backup.c | 13 + >> blockjob.c | 10 ++

Re: [Qemu-devel] qemu-img behavior for locating backing files

2015-04-06 Thread John Snow
On 04/02/2015 05:38 AM, Kevin Wolf wrote: Am 01.04.2015 um 18:16 hat John Snow geschrieben: Kevin, what's the correct behavior for qemu-img and relative paths when creating a new qcow2 file? Example: (in e.g. /home/qemu/build/ or anywhere not /home: ) qemu-img create -f qcow2 base.qcow2 32G

[Qemu-devel] [PATCH v2 RESEND 5/5] apic: Implement handling of RH=1 for MSI interrupt delivery

2015-04-06 Thread James Sullivan
Added argument to apic_get_delivery_bitmask() for msi_redir_hint, and changed calls to the function accordingly (using 0 as a default value for non-MSI interrupts). Modified the implementation of apic_get_delivery_bitmask() to account for the RH bit of an MSI IRQ. The RH bit indicates that the mes

[Qemu-devel] [PATCH v2 RESEND 0/5] apic: Implement MSI RH bit handling, lowpri IRQ

2015-04-06 Thread James Sullivan
Resend of <1427224426-9025-1-git-send-email-sullivan.jame...@gmail.com>, correcting the labelling of one of the patches to correct sequential order. Changes in v2: * Merged in low priority IRQ delivery implementation to RH bit handling implementation, since both rely on the same helper

[Qemu-devel] [PATCH v2 RESEND 4/5] apic: Set and pass in RH bit for MSI interrupts

2015-04-06 Thread James Sullivan
In apic_send_msi(), set msi_redir_hint to 0x1 when RH=1 in the MSI Address Register. Added an argument for msi_redir_hint to apic_deliver_irq(), and changed calls to the function accordingly (using 0 as a default value for non-MSI interrupts). Signed-off-by: James Sullivan --- Changes in v2:

[Qemu-devel] [PATCH v2 RESEND 1/5] apic: Implement LAPIC low priority arbitration functions

2015-04-06 Thread James Sullivan
Currently, apic_get_arb_pri() is unimplemented and returns 0. Implemented apic_get_arb_pri() and added two helper functions apic_compare_prio() and apic_lowest_prio() to be used for LAPIC arbitration. Signed-off-by: James Sullivan --- hw/intc/apic.c | 47

[Qemu-devel] [PATCH v2 RESEND 2/5] apic: Implement low priority arbitration for IRQ delivery

2015-04-06 Thread James Sullivan
Currently, there is no arbitration among processors for low priority IRQ delivery. Added support for low priority arbitration to apic_bus_deliver(), using the functions introduced in [74c1222c5b579970fafdd6a8e919fbb2c88219c3] ("apic: Implement LAPIC low priority arbitration functions"). Signed-off

[Qemu-devel] [PATCH v2 RESEND 3/5] apic: Added helper function apic_match_dest, apic_match_[physical, logical]_dest

2015-04-06 Thread James Sullivan
Added three helper functions apic_match_dest(), apic_match_physical_dest(), and apic_match_logical_dest() which can be used to determine if a logical or physical APIC ID match a given LAPIC under a given dest_mode. This does not account for shorthand. Signed-off-by: James Sullivan --- hw/intc/ap

Re: [Qemu-devel] [PATCH RFC 02/19] qapi: Fix C identifiers generated for names containing '.'

2015-04-06 Thread Eric Blake
On 04/02/2015 11:28 AM, Markus Armbruster wrote: > c_fun() maps '.' to '_', c_var() doesn't. Nothing prevents '.' in > QAPI names that get passed to c_var(). > > Which QAPI names get passed to c_fun(), to c_var(), or to both is not > obvious. Names of command parameters and struct type members g

Re: [Qemu-devel] [PATCH RFC 00/19] qapi: QMP introspection

2015-04-06 Thread Eric Blake
On 04/02/2015 11:28 AM, Markus Armbruster wrote: > Dring up your tea, here comes the introspection series. > > * PATCH 01-15: As usual when I touch the qapi code generators, I need > double-digit patches just to get the mess cleaned up enough to admit > change :) > > * PATCH 16-18: Fix the JS

Re: [Qemu-devel] [PATCH v4 19/20] iotests: add simple incremental backup case

2015-04-06 Thread John Snow
On 04/02/2015 10:27 AM, Stefan Hajnoczi wrote: On Fri, Mar 20, 2015 at 03:17:02PM -0400, John Snow wrote: Signed-off-by: John Snow --- tests/qemu-iotests/124 | 153 + tests/qemu-iotests/124.out | 4 +- 2 files changed, 155 insertions(+), 2

Re: [Qemu-devel] [PATCH v4 00/20] Generate ACPI v5.1 tables and expose it to guest over fw_cfg on ARM

2015-04-06 Thread Mark Salter
On Fri, 2015-04-03 at 18:03 +0800, Shannon Zhao wrote: > From: Shannon Zhao > > This patch series generate six ACPI v5.1 tables for machine virt on ARM. > The set of generated tables are: > - RSDP > - RSDT > - MADT > - GTDT > - FADT > - DSDT > - MCFG (For PCIe host bridge) > > These tables are c

Re: [Qemu-devel] [Qemu-block] Migration sometimes fails with IDE and Qemu 2.2.1

2015-04-06 Thread Peter Lieven
Am 06.04.2015 um 21:02 schrieb Peter Lieven: > Am 06.04.2015 um 20:50 schrieb John Snow: >> >> On 04/06/2015 02:47 PM, Peter Lieven wrote: >>> Hi all, >>> >>> is there a known issue in Qemu 2.2.1 where IDE stalls sometimes after a >>> migration with Qemu 2.2.1? >>> The migration succeeds, but it s

[Qemu-devel] [Bug 1440843] [NEW] Guest WinXP crashes when trying to use a USB spectrometer

2015-04-06 Thread Ruslan
Public bug reported: I'm using Amadeus spectrometer (OceanOptics USB250) via Windows-based software "Quantum". I've tried six ways of attaching it to QEMU: 1. command line parameter "-device usb-host,hostbus=3,hostaddr=25" 2. command line parameter "-device usb-host,vendorid=0x2457,productid=0x10

Re: [Qemu-devel] [Qemu-block] Migration sometimes fails with IDE and Qemu 2.2.1

2015-04-06 Thread Peter Lieven
Am 06.04.2015 um 20:50 schrieb John Snow: > > > On 04/06/2015 02:47 PM, Peter Lieven wrote: >> Hi all, >> >> is there a known issue in Qemu 2.2.1 where IDE stalls sometimes after a >> migration with Qemu 2.2.1? >> The migration succeeds, but it seems that the complete I/O is hanging. This >> happ

Re: [Qemu-devel] [Qemu-block] Migration sometimes fails with IDE and Qemu 2.2.1

2015-04-06 Thread John Snow
On 04/06/2015 02:47 PM, Peter Lieven wrote: Hi all, is there a known issue in Qemu 2.2.1 where IDE stalls sometimes after a migration with Qemu 2.2.1? The migration succeeds, but it seems that the complete I/O is hanging. This happens only sometimes and only with extreme old Linux Guests (SL

[Qemu-devel] Migration sometimes fails with IDE and Qemu 2.2.1

2015-04-06 Thread Peter Lieven
Hi all, is there a known issue in Qemu 2.2.1 where IDE stalls sometimes after a migration with Qemu 2.2.1? The migration succeeds, but it seems that the complete I/O is hanging. This happens only sometimes and only with extreme old Linux Guests (SLES 10 with Kernel 2.6.16) thus the IDE controll

Re: [Qemu-devel] [PATCH] qtest: Add assertion that required environment variable is set

2015-04-06 Thread John Snow
On 04/03/2015 07:18 AM, Peter Maydell wrote: On 2 April 2015 at 20:31, Ed Maste wrote: On 1 April 2015 at 18:45, Peter Maydell wrote: Also irritating is the way it silently requires the binary to have a name in the shape it was expecting, which can catch you out if you were trying to set it

Re: [Qemu-devel] block-commit & dropping privs

2015-04-06 Thread Michael Tokarev
02.04.2015 16:19, Kevin Wolf wrote: > Am 02.04.2015 um 14:04 hat Michael Tokarev geschrieben: >> 02.04.2015 14:24, Kevin Wolf wrote: >> [] But overall, I think qemu-system should not modify backing file name in this case. >>> >>> So you would leave the backing file with the data that you

Re: [Qemu-devel] [PATCH v2] vhost-user: add multi queue support

2015-04-06 Thread Michael S. Tsirkin
On Sat, Jan 24, 2015 at 02:22:29PM +0200, Nikolay Nikolaev wrote: > Vhost-user will implement the multiqueueu support in a similar way to what multiqueue > vhost already has - a separate thread for each queue. > > To enable the multiqueue funcionality - a new command line parameter > "queues" is

[Qemu-devel] [PATCH RFC] vhost-user: protocol extensions

2015-04-06 Thread Michael S. Tsirkin
This adds several extensions to the vhost user protocol: - protocol feature negotiation similar to virtio features - ability to report request failures - ability to start/stop specific rings I went over all vhost-user implementations I could find, and this seems to be compatible with them all. On

Re: [Qemu-devel] [PATCH v6 00/36] drop qapi nested structs

2015-04-06 Thread Eric Blake
On 04/04/2015 10:07 PM, Eric Blake wrote: > We want to eventually allow qapi defaults, by making: > 'data':{'*flag':'bool'} > as shorthand for something like: > 'data':{'flag':{'type':'bool', 'optional':true}} > so that the default can be specified: > 'data':{'flag':{'type':'bool', 'optional':tr

Re: [Qemu-devel] [RFC PATCH v2 00/23] CPU and Memory hotplug for PowerPC sPAPR guests

2015-04-06 Thread Bharata B Rao
On Mon, Mar 23, 2015 at 07:05:41PM +0530, Bharata B Rao wrote: > Hi, > > This is the version 2 of the patchset that provides CPU and memory hotplug > support for PowerPC sPAPR guests. [snip] > TODOs > - > - Share code between pc_dimm_plug() and spapr_memory_plug(). > - Make the algorithm tha

[Qemu-devel] can't bot from scsi http cdrom

2015-04-06 Thread Vasiliy Tolstov
Hi. I'm try to boot from http cdrom and can't do that in case of scsi: but in case of ide: all works fine. libvirt - 1.2.10 qemu - 2.0.0 seabios -

[Qemu-devel] [PATCH v2] nbd/trivial: fix type cast for ioctl

2015-04-06 Thread Bogdan Purcareata
This fixes ioctl behavior on powerpc e6500 platforms with 64bit kernel and 32bit userspace. The current type cast has no effect there and the value passed to the kernel is still 0. Probably an issue related to the compiler, since I'm assuming the same configuration works on a similar setup on x86.

Re: [Qemu-devel] [PATCH] nbd/trivial: fix type cast for ioctl

2015-04-06 Thread Purcareata Bogdan
On 03.04.2015 17:44, Michael Tokarev wrote: 03.04.2015 17:15, Paolo Bonzini wrote: On 03/04/2015 13:01, Bogdan Purcareata wrote: ... -if (ioctl(fd, NBD_SET_SIZE_BLOCKS, size / (size_t)BDRV_SECTOR_SIZE) < 0) { +if (ioctl(fd, NBD_SET_SIZE_BLOCKS, (size_t)(size / BDRV_SECTOR_SIZE) < 0))