Re: [Qemu-devel] [PATCH v3] vl.c: fix regression when reading machine type from config file

2015-01-07 Thread William Dauchy
On Jan07 14:11, Marcel Apfelbaum wrote: After 'Machine as QOM' series the machine type input triggers the creation of the machine class. If the machine type is set in the configuration file, the machine class is not updated accordingly and remains the default. I have also tested it; it does

Re: [Qemu-devel] [PATCH 5/6] hw/ppc/spapr: simplify usb controller creation logic

2015-01-07 Thread Paolo Bonzini
On 07/01/2015 12:03, Marcel Apfelbaum wrote: While I agree it will be better if we place this in instance_init, setting the machine_usb to defaults_enabled() there would be problematic since it depends on - papr_vga_init(phb-bus) for sparpr and That's effectively vga_interface_type ==

Re: [Qemu-devel] [PATCH v2 01/10] pci: move REDHAT_SDHCI device ID to make room for Rocker

2015-01-07 Thread Paolo Bonzini
On 06/01/2015 10:52, Peter Maydell wrote: On 6 January 2015 at 02:24, sfel...@gmail.com wrote: From: Scott Feldman sfel...@gmail.com The rocker device uses same PCI device ID as sdhci. Since rocker device driver has already been accepted into Linux 3.18, and REDHAT_SDHCI device ID isn't

Re: [Qemu-devel] [PATCH v2 11/12] block/dmg: support bzip2 block entry types

2015-01-07 Thread Paolo Bonzini
On 06/01/2015 18:48, Peter Wu wrote: v2: split block type check into a different patch ([PATCH v2 10/12] block/dmg: factor out block type check). Add BZIP2_LIBS instead of polluting libs_softmmu with -lbz2 (which would also end up in fsdev/virtfs-proxy-helper). Fix unused

Re: [Qemu-devel] Gives user ability to select endian format for video display - fixes Mac OS X guest color issue.

2015-01-07 Thread Paolo Bonzini
On 06/01/2015 22:33, G 3 wrote: 00:01.0 VGA compatible controller: Technical Corp. Device (rev 02) (prog-if 00 [VGA controller]) Subsystem: Qumranet, Inc. Device 1100 Control: I/O+ Mem+ BusMaster- SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR- FastB2B- DisINTx-

[Qemu-devel] [RESEND PATCH v1 3/5] acpi, pc: Add unplug cb for pc machine.

2015-01-07 Thread Tang Chen
Memory and CPU hot unplug are both asynchronize procedures. When the unplug operation happens, unplug request cb is called first. And when ghest OS finished handling unplug, unplug cb will be called to do the real removal of device. This patch adds hotunplug cb for pc machine, and memory and CPU

Re: [Qemu-devel] qemu sources and makefile system

2015-01-07 Thread Stefan Hajnoczi
On Tue, Jan 06, 2015 at 11:44:34AM +0200, Catalin Vasile wrote: I'm new to qemu-devel and I'm trying to add a .c source to qemu. To be more specific, I'm trying to add a file into qemu src/hw/virtio/. I've added common-obj-y += virtio-src.o to the Makefile.objs in that folder and when I'm

Re: [Qemu-devel] [PULL 0/8] pc: resizeable ROM blocks

2015-01-07 Thread Michael S. Tsirkin
On Wed, Jan 07, 2015 at 11:52:40AM +0100, Paolo Bonzini wrote: Maybe it's too optimistic. That's why I'm saying do not trim the tables for a couple releases more. I think it is too optimistic, and not trimming the tables does not solve it convincingly enough to my taste. If you have a bug,

[Qemu-devel] [PATCH V2] char: restore stdio echo on resume from suspend.

2015-01-07 Thread Gal Hammer
The monitor's auto-completion feature stopped working when stdio is used as an input and qemu was resumed after it was suspended (using ctrl-z). Signed-off-by: Gal Hammer gham...@redhat.com --- V2 - restore old echo state rather than alway disable it. - don't check signal identifier in the

Re: [Qemu-devel] [PATCH 1/1] ich9: add disable_s3, disable_s4, s4_val properties

2015-01-07 Thread Paolo Bonzini
On 05/01/2015 13:23, Amit Shah wrote: I modeled this based on how i440fx works, so there's also the case for keeping things similar to an existing implementation... Yes, I agree. Paolo

Re: [Qemu-devel] [PATCH v2 07/10] rocker: add new rocker switch device

2015-01-07 Thread Stefan Hajnoczi
On Tue, Jan 06, 2015 at 08:45:44AM -0800, Scott Feldman wrote: On Tue, Jan 6, 2015 at 7:12 AM, Stefan Hajnoczi stefa...@gmail.com wrote: On Mon, Jan 05, 2015 at 06:24:58PM -0800, sfel...@gmail.com wrote: From: Scott Feldman sfel...@gmail.com Rocker is a simulated ethernet switch device.

Re: [Qemu-devel] [PULL 5/8] exec: qemu_ram_alloc_resizeable, qemu_ram_resize

2015-01-07 Thread Michael S. Tsirkin
On Wed, Jan 07, 2015 at 08:18:02AM +0100, Paolo Bonzini wrote: On 24/12/2014 12:51, Michael S. Tsirkin wrote: +/* On-device RAM allocated with g_malloc: supports realloc, + * not accessible to vcpu on kvm. + */ Is this still true? Paolo No! Will drop.

Re: [Qemu-devel] [PULL 1/8] cpu: add cpu_physical_memory_clear_dirty_range_nocode

2015-01-07 Thread Paolo Bonzini
On 24/12/2014 12:51, Michael S. Tsirkin wrote: simple wrapper so callers don't need to know about dirty bitmap clients. Signed-off-by: Michael S. Tsirkin m...@redhat.com --- include/exec/ram_addr.h | 8 1 file changed, 8 insertions(+) diff --git a/include/exec/ram_addr.h

Re: [Qemu-devel] [Bug 1404278] Re: tap connections not working on windows host

2015-01-07 Thread Stefan Hajnoczi
On Tue, Jan 06, 2015 at 09:12:53PM -, timsoft wrote: output as requested from the guest: ip addr 1: lo: LOOPBACK,UP,LOWER_UP mtu 65536 qdisc noqueue state UNKOWN link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00 inet 127.0.0.1/8 scope host lo valid_lft forever

[Qemu-devel] [RESEND PATCH v1 5/5] acpi, piix4: Add unplug cb for piix4.

2015-01-07 Thread Tang Chen
Memory and CPU hot unplug are both asynchronize procedures. When the unplug operation happens, unplug request cb is called first. And when ghest OS finished handling unplug, unplug cb will be called to do the real removal of device. This patch adds hotunplug cb for piix4, and memory and CPU hot

Re: [Qemu-devel] [PATCH v2] vl.c: fix regression when reading machine type from config file

2015-01-07 Thread Marcel Apfelbaum
On 01/07/2015 01:35 PM, Paolo Bonzini wrote: On 07/01/2015 12:34, Marcel Apfelbaum wrote: After 'Machine as QOM' series the machine type input triggers the creation of the machine class. If the machine type is set in the configuration file, the machine class is not updated accordingly and

Re: [Qemu-devel] [PATCH 5/6] hw/ppc/spapr: simplify usb controller creation logic

2015-01-07 Thread Paolo Bonzini
On 07/01/2015 12:15, Alexander Graf wrote: On 07.01.15 12:07, Paolo Bonzini wrote: On 07/01/2015 12:03, Marcel Apfelbaum wrote: While I agree it will be better if we place this in instance_init, setting the machine_usb to defaults_enabled() there would be problematic since it depends

Re: [Qemu-devel] [PATCH v2] vl.c: fix regression when reading machine type from config file

2015-01-07 Thread Marcel Apfelbaum
On 01/07/2015 01:34 PM, Marcel Apfelbaum wrote: After 'Machine as QOM' series the machine type input triggers the creation of the machine class. If the machine type is set in the configuration file, the machine class is not updated accordingly and remains the default. Fixed that by querying the

Re: [Qemu-devel] [PATCH v8 1/3] hw/arm/sysbus-fdt: helpers for platform bus nodes addition

2015-01-07 Thread Eric Auger
Hi Peter, On 01/06/2015 07:40 PM, Peter Maydell wrote: On 5 January 2015 at 16:14, Eric Auger eric.au...@linaro.org wrote: This new C module will be used by ARM machine files to generate platform bus node and their dynamic sysbus device tree nodes. Dynamic sysbus device node addition is done

Re: [Qemu-devel] [PULL 0/8] pc: resizeable ROM blocks

2015-01-07 Thread Paolo Bonzini
On 07/01/2015 13:37, Michael S. Tsirkin wrote: On Wed, Jan 07, 2015 at 11:52:40AM +0100, Paolo Bonzini wrote: Maybe it's too optimistic. That's why I'm saying do not trim the tables for a couple releases more. I think it is too optimistic, and not trimming the tables does not solve it

Re: [Qemu-devel] [PATCH 0/6] relicense QEMU softfloat from 2b to to 2a

2015-01-07 Thread Peter Maydell
On 7 January 2015 at 06:13, Paolo Bonzini pbonz...@redhat.com wrote: On 25/11/2014 15:17, Peter Maydell wrote: Questions for review: * can we do the git cherry-pick thing I mention above? I'm afraid that would double the size of the repository (in terms of number of commits). One

Re: [Qemu-devel] [PATCH 0/6] simplify usb enabling logic and fix a Qemu crash

2015-01-07 Thread Stefan Hajnoczi
On Tue, Jan 06, 2015 at 03:29:11PM +0200, Marcel Apfelbaum wrote: Patch e79d5a6 (machine: remove qemu_machine_opts global list) removed option descriptions from the -machine QemuOptsList to avoid repeating MachineState's QOM properties. This resulted in a Qemu crash: $ qemu-system-x86_64

Re: [Qemu-devel] [PATCH 0/4] ARM: Add support for a generic PCI Express host bridge

2015-01-07 Thread Claudio Fontana
Hi Alexander, happy new year! On 06.01.2015 17:03, Alexander Graf wrote: Linux implements a nice binding to describe a generic PCI Express host bridge using only device tree. This patch set adds enough emulation logic to expose the parts that are generic as a simple sysbus device and maps

[Qemu-devel] [RESEND PATCH v1 2/5] acpi, ich9: Add hotunplug request cb for ich9.

2015-01-07 Thread Tang Chen
Memory and CPU hot unplug are both asynchronize procedures. They both need unplug request cb when the unplug operation happens. This patch adds hotunplug request cb for ich9, and memory and CPU hot unplug will base on it. --- hw/acpi/ich9.c | 7 +++ hw/isa/lpc_ich9.c | 5 +++--

[Qemu-devel] [RESEND PATCH v1 0/5] Common unplug and unplug request cb for memory and CPU hot-unplug.

2015-01-07 Thread Tang Chen
Memory and CPU hot unplug are both asynchronize procedures. When the unplug operation happens, unplug request cb is called first. And when ghest OS finished handling unplug, unplug cb will be called to do the real removal of device. They both need pc-machine, piix4 and ich9 unplug and unplug

Re: [Qemu-devel] [PATCH V2] char: restore stdio echo on resume from suspend.

2015-01-07 Thread Paolo Bonzini
On 07/01/2015 09:38, Gal Hammer wrote: The monitor's auto-completion feature stopped working when stdio is used as an input and qemu was resumed after it was suspended (using ctrl-z). Signed-off-by: Gal Hammer gham...@redhat.com Looks good, thanks Peter for reviewing v1. Paolo --- V2 -

Re: [Qemu-devel] [PATCH v2 01/12] block/dmg: properly detect the UDIF trailer

2015-01-07 Thread Peter Wu
On Wednesday 07 January 2015 13:19:34 Stefan Hajnoczi wrote: On Tue, Jan 06, 2015 at 06:48:04PM +0100, Peter Wu wrote: DMG files have a variable length with a UDIF trailer at the end of a file. This UDIF trailer is essential as it describes the contents of the image. At the moment however,

Re: [Qemu-devel] [PATCH 0/4] ARM: Add support for a generic PCI Express host bridge

2015-01-07 Thread Claudio Fontana
On 07.01.2015 15:07, Alexander Graf wrote: Am 07.01.2015 um 14:52 schrieb Claudio Fontana claudio.font...@huawei.com: Hi Alexander, happy new year! On 06.01.2015 17:03, Alexander Graf wrote: Linux implements a nice binding to describe a generic PCI Express host bridge using only

Re: [Qemu-devel] PPC: E500 [PATCH v2 ]: Add FSL i2c controller and integrate RTC with it.

2015-01-07 Thread Alexander Graf
On 29.12.14 11:25, Amit Tomar wrote: Changes since v1: * Move it to GPL v2+ * Replace the printf with DPRINTF * Fix the coding style issues * Change the subject line This patch adds an emulation model for i2c controller found on most of the FSL SoCs. It also

Re: [Qemu-devel] Gives user ability to select endian format for video display - fixes Mac OS X guest color issue.

2015-01-07 Thread Gerd Hoffmann
Hi, However, you should specify it whatever the host endianness and the host OS is. If this is not the case, you're just exchanging a bug with another. If something a) works with Linux host but not with Mac OS X host b) and works with Linux guest but not with Mac OS X guest the

[Qemu-devel] [PATCH v3] vl.c: fix regression when reading machine type from config file

2015-01-07 Thread Marcel Apfelbaum
After 'Machine as QOM' series the machine type input triggers the creation of the machine class. If the machine type is set in the configuration file, the machine class is not updated accordingly and remains the default. Fixed that by querying the machine options after the configuration file is

[Qemu-devel] [Makefile] Compiling Qemu to dynamic library

2015-01-07 Thread Halsey Pian
Dear All, Recently, I would try to compile qemu to a so in order to call qemu internal functions in my program, I'm trying to do this by steps, 1. Add rules in qemu-2.1.2/ rules.mak %.so: $(call quiet-command,rm -f $@ $(LINKPROG) $(QEMU_INCLUDES) $(QEMU_CFLAGS)

Re: [Qemu-devel] [PULL 0/8] pc: resizeable ROM blocks

2015-01-07 Thread Paolo Bonzini
On 07/01/2015 11:03, Michael S. Tsirkin wrote: On Wed, Jan 07, 2015 at 08:33:07AM +0100, Paolo Bonzini wrote: On 24/12/2014 13:41, Michael S. Tsirkin wrote: I don't think these are necessary, and I thought these were just RFC when they were posted. I and mst didn't really understand each

Re: [Qemu-devel] [PULL 5/8] exec: qemu_ram_alloc_resizeable, qemu_ram_resize

2015-01-07 Thread Paolo Bonzini
On 24/12/2014 12:51, Michael S. Tsirkin wrote: +/* On-device RAM allocated with g_malloc: supports realloc, + * not accessible to vcpu on kvm. + */ Is this still true? Paolo

Re: [Qemu-devel] [PATCH] block: Split BLOCK_OP_TYPE_COMMIT to BLOCK_OP_TYPE_COMMIT_{SOURCE, TARGET}

2015-01-07 Thread Stefan Hajnoczi
On Thu, Sep 11, 2014 at 01:14:00PM +0800, Fam Zheng wrote: Like BLOCK_OP_TYPE_BACKUP_SOURCE and BLOCK_OP_TYPE_BACKUP_TARGET, block-commit involves two asymmetric devices. This change is not user-visible (yet), because commit only works with device names. But once we enable backing

Re: [Qemu-devel] [PATCH 5/6] hw/ppc/spapr: simplify usb controller creation logic

2015-01-07 Thread Alexander Graf
On 07.01.15 12:07, Paolo Bonzini wrote: On 07/01/2015 12:03, Marcel Apfelbaum wrote: While I agree it will be better if we place this in instance_init, setting the machine_usb to defaults_enabled() there would be problematic since it depends on - papr_vga_init(phb-bus) for sparpr and

Re: [Qemu-devel] [PATCH v2 01/12] block/dmg: properly detect the UDIF trailer

2015-01-07 Thread Stefan Hajnoczi
On Tue, Jan 06, 2015 at 06:48:04PM +0100, Peter Wu wrote: DMG files have a variable length with a UDIF trailer at the end of a file. This UDIF trailer is essential as it describes the contents of the image. At the moment however, the start of this trailer is almost always incorrect as

Re: [Qemu-devel] [PATCH 09/10] block/dmg: support bzip2 block entry types

2015-01-07 Thread Paolo Bonzini
On 05/01/2015 20:32, John Snow wrote: fi ## +# bzip2 check + +if test $bzip2 != no ; then +cat $TMPC EOF +#include bzlib.h +int main(void) { BZ2_bzlibVersion(); return 0; } +EOF +if compile_prog -lbz2 ; then +

Re: [Qemu-devel] [Bug 1391942] [NEW] Unnecessary events option of the trace argument with UST backend

2015-01-07 Thread Stefan Hajnoczi
On Wed, Nov 12, 2014 at 04:01:38PM -, Francis Deslauriers wrote: When running configure with the --enable-trace-backends=ust option and compiling. The user should not have to specify a the events and file options because they are not used with that tracing framework. Right now, in

Re: [Qemu-devel] [PULL 0/8] pc: resizeable ROM blocks

2015-01-07 Thread Paolo Bonzini
On 24/12/2014 13:41, Michael S. Tsirkin wrote: I don't think these are necessary, and I thought these were just RFC when they were posted. I and mst didn't really understand each other, and I take the fault for not reviewing the submission; however, Peter, please hold these for a little

[Qemu-devel] Ping [PATCH] Fix irq route entries exceed KVM_MAX_IRQ_ROUTES

2015-01-07 Thread 马文霜
Ping Patches here: http://patchwork.ozlabs.org/patch/424738/ Description: In multi-core guest, set irq affinity will eventually lead to guest crash, this is a severe BUG, I do not know why this patch was ignored? Wenshuang Ma

[Qemu-devel] [RFC PATCH v1 04/13] spapr: Factor out CPU initialization code into realizefn

2015-01-07 Thread Bharata B Rao
Move some CPU initialization code from machine init function to CPU realizefn so that it can be used from CPU hotplug path too. With the inclusion of ppc.h in translate_init.c, explicit *irq_init() function definitions aren't required, remove them. Signed-off-by: Bharata B Rao

[Qemu-devel] [RFC PATCH v1 13/13] spapr: Memory hotplug support

2015-01-07 Thread Bharata B Rao
Make use of pc-dimm infrastructure to support memory hotplug for PowerPC. Modelled on i386 memory hotplug. Signed-off-by: Bharata B Rao bhar...@linux.vnet.ibm.com --- hw/ppc/spapr.c| 107 +- hw/ppc/spapr_events.c | 3 ++ 2 files changed,

[Qemu-devel] [RFC PATCH v1 00/13] CPU and Memory hotplug for PowerPC guests

2015-01-07 Thread Bharata B Rao
This patchset enables CPU and memory hotplug support for PowerPC guests. Changes in this patchset (v1): - Based on top of Michael Roth's tree (https://github.com/mdroth/qemu/commits/spapr-hotplug-core) which serves as base for his PCI hotplug patches too. - Switched to device_add/del

[Qemu-devel] [RFC PATCH v1 07/13] spapr: Start all the threads of CPU core when core is hotplugged

2015-01-07 Thread Bharata B Rao
PowerPC kernel adds or removes CPUs in core granularity and hence onlines/offlines all the SMT threads of a core during hot plug/unplug. Support this notion by starting all SMT threads of a core when a core is hotplugged. Signed-off-by: Bharata B Rao bhar...@linux.vnet.ibm.com --- hw/ppc/spapr.c

[Qemu-devel] [RFC PATCH v2] tests: rtl8139: test timers and interrupt

2015-01-07 Thread Frediano Ziglio
Test behaviour of timers and interrupts related to timeouts. Signed-off-by: Frediano Ziglio fredd...@gmail.com --- tests/Makefile | 2 +- tests/rtl8139-test.c | 180 +++ 2 files changed, 181 insertions(+), 1 deletion(-) This patch was

Re: [Qemu-devel] [Makefile] Compiling Qemu to dynamic library

2015-01-07 Thread Halsey Pian
Hi All, During building this so library, I found that there are many functions with same name in stubs and other source file, for example, There are two implement functions with same name slirp_pollfds_fill in slirp.c and main-loop.c. ./stubs/slirp.c:void slirp_pollfds_fill(GArray

[Qemu-devel] [RFC PATCH v1 12/13] spapr: Support ibm, dynamic-reconfiguration-memory

2015-01-07 Thread Bharata B Rao
Parse ibm,architecture.vec table obtained from the guest and enable memory node configuration via ibm,dynamic-reconfiguration-memory if guest supports it. This is in preparation to support memory hotplug for sPAPR guests. This changes the way memory node configuration is done. Currently all

[Qemu-devel] [RFC PATCH v1 09/13] spapr: CPU hot unplug support

2015-01-07 Thread Bharata B Rao
Support hot removal of CPU for sPAPR guests. Signed-off-by: Bharata B Rao bhar...@linux.vnet.ibm.com --- hw/ppc/spapr.c | 43 +++ 1 file changed, 43 insertions(+) diff --git a/hw/ppc/spapr.c b/hw/ppc/spapr.c index 4347471..ec793b1 100644 ---

[Qemu-devel] [RFC PATCH v1 05/13] spapr: Support ibm, lrdr-capacity device tree property

2015-01-07 Thread Bharata B Rao
Add support for ibm,lrdr-capacity since this is needed by the guest kernel to know about the possible hot-pluggable CPUs and Memory. Define minimum hotpluggable memory size as 256MB and start storing maximum possible memory for the guest in sPAPREnvironment. Signed-off-by: Bharata B Rao

[Qemu-devel] [RFC PATCH v1 01/13] spapr: enable PHB/CPU/LMB hotplug for pseries-2.3

2015-01-07 Thread Bharata B Rao
From: Michael Roth mdr...@linux.vnet.ibm.com Introduce an sPAPRMachineClass sub-class of MachineClass to handle sPAPR-specific machine configuration properties. The 'dr_phb[cpu,lmb]_enabled' field of that class can be set as part of machine-specific init code, and is then propagated to

[Qemu-devel] [RFC PATCH v1 11/13] spapr: Initialize hotplug memory address space

2015-01-07 Thread Bharata B Rao
Initialize a hotplug memory region under which all the hotplugged memory is accommodated. Also enable memory hotplug by setting CONFIG_MEM_HOTPLUG. Modelled on i386 memory hotplug. Signed-off-by: Bharata B Rao bhar...@linux.vnet.ibm.com --- default-configs/ppc64-softmmu.mak | 1 +

[Qemu-devel] [RFC PATCH v1 03/13] spapr: Consider max_cpus during xics initialization

2015-01-07 Thread Bharata B Rao
Use max_cpus instead of smp_cpus when intializating xics system. Also report max_cpus in ibm,interrupt-server-ranges device tree property of interrupt controller node. Signed-off-by: Bharata B Rao bhar...@linux.vnet.ibm.com --- hw/ppc/spapr.c | 4 ++-- 1 file changed, 2 insertions(+), 2

[Qemu-devel] [RFC PATCH v1 08/13] spapr: Enable CPU hotplug for POWER8 CPU family

2015-01-07 Thread Bharata B Rao
Signed-off-by: Bharata B Rao bhar...@linux.vnet.ibm.com --- target-ppc/translate_init.c | 1 + 1 file changed, 1 insertion(+) diff --git a/target-ppc/translate_init.c b/target-ppc/translate_init.c index cf9d8d3..cda706b 100644 --- a/target-ppc/translate_init.c +++ b/target-ppc/translate_init.c

Re: [Qemu-devel] [PATCH RFC v6 13/20] virtio: allow to fail setting status

2015-01-07 Thread Cornelia Huck
On Wed, 7 Jan 2015 21:08:21 +0200 Michael S. Tsirkin m...@redhat.com wrote: On Wed, Jan 07, 2015 at 05:13:32PM +0100, Cornelia Huck wrote: On Tue, 30 Dec 2014 14:25:37 +0200 Michael S. Tsirkin m...@redhat.com wrote: On Thu, Dec 11, 2014 at 02:25:15PM +0100, Cornelia Huck wrote:

[Qemu-devel] [RFC PATCH v1 02/13] spapr: Add DRC dt entries for CPUs

2015-01-07 Thread Bharata B Rao
Advertise CPU DR-capability to the guest via device tree. Signed-off-by: Bharata B Rao bhar...@linux.vnet.ibm.com Signed-off-by: Michael Roth mdr...@linux.vnet.ibm.com [spapr_drc_reset implementation] --- hw/ppc/spapr.c | 28 1 file changed, 28

[Qemu-devel] [RFC PATCH v1 06/13] spapr: CPU hotplug support

2015-01-07 Thread Bharata B Rao
Support CPU hotplug via device-add command. Use the exising EPOW event infrastructure to send CPU hotplug notification to the guest. Signed-off-by: Bharata B Rao bhar...@linux.vnet.ibm.com --- hw/ppc/spapr.c | 205 +++- hw/ppc/spapr_events.c

[Qemu-devel] [RFC PATCH v1 10/13] cpus, spapr: reclaim allocated vCPU objects

2015-01-07 Thread Bharata B Rao
From: Gu Zheng guz.f...@cn.fujitsu.com Signed-off-by: Gu Zheng guz.f...@cn.fujitsu.com Signed-off-by: Bharata B Rao bhar...@linux.vnet.ibm.com (added spapr bits) --- cpus.c | 44 hw/ppc/spapr.c | 14 -

[Qemu-devel] flags variable in DisplaySurface structure

2015-01-07 Thread Programmingkid
Does anyone know what the flags variable means in the DisplaySurface structure located in console.h? struct DisplaySurface { pixman_format_code_t format; pixman_image_t *image; uint8_t flags; };

[Qemu-devel] [RFC PATCH] tests: rtl8139: test timers and interrupt

2015-01-07 Thread Frediano Ziglio
Test behaviour of timers and interrupts related to timeouts. Signed-off-by: Frediano Ziglio fredd...@gmail.com --- tests/Makefile | 2 +- tests/rtl8139-test.c | 164 +++ 2 files changed, 165 insertions(+), 1 deletion(-) This patch was

[Qemu-devel] [PATCH] vfio-pci: Fix interrupt disabling

2015-01-07 Thread Alex Williamson
When disabling MSI/X interrupts the disable functions will leave the device in INTx mode (when available). This matches how hardware operates, INTx is enabled unless MSI/X is enabled (DisINTx is handled separately). Therefore when we really want to disable all interrupts, such as when removing

Re: [Qemu-devel] [PATCH v2] vfio-pci: Fix BAR size overflow

2015-01-07 Thread Don Slutz
On 01/07/15 12:23, Alex Williamson wrote: We use an unsigned int when working with the PCI BAR size, which can obviously overflow if the BAR is 4GB or larger. This needs to change to a fixed length uint64_t. A similar issue is possible, though even more unlikely, when mapping the region

[Qemu-devel] [RESEND PATCH v1 01/13] acpi, mem-hotplug: Use PC_DIMM_SLOT_PROP in acpi_memory_plug_cb().

2015-01-07 Thread Tang Chen
Replace string slot in acpi_memory_plug_cb() with MACRO PC_DIMM_SLOT_PROP. Signed-off-by: Tang Chen tangc...@cn.fujitsu.com --- hw/acpi/memory_hotplug.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/hw/acpi/memory_hotplug.c b/hw/acpi/memory_hotplug.c index

[Qemu-devel] [RESEND PATCH v1 00/13] QEmu memory hot unplug support.

2015-01-07 Thread Tang Chen
Memory hot unplug are both asynchronize procedures. When the unplug operation happens, unplug request cb is called first. And when ghest OS finished handling unplug, unplug cb will be called to do the real removal of device. This patch-set is based on QEmu 2.2 This series depends on the

[Qemu-devel] [RESEND PATCH v1 04/13] acpi, mem-hotplug: Add unplug request cb for memory device.

2015-01-07 Thread Tang Chen
Memory hot unplug are both asynchronize procedures. When the unplug operation happens, unplug request cb is called first. And when ghest OS finished handling unplug, unplug cb will be called to do the real removal of device. This patch adds unplug request cb for memory device. Add a new bool

[Qemu-devel] [RESEND PATCH v1 06/13] acpi, ich9: Add memory hot unplug request support for ich9.

2015-01-07 Thread Tang Chen
Call memory unplug request cb in ich9_pm_device_unplug_request_cb(). --- hw/acpi/ich9.c | 10 -- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/hw/acpi/ich9.c b/hw/acpi/ich9.c index c48d176..841f57d 100644 --- a/hw/acpi/ich9.c +++ b/hw/acpi/ich9.c @@ -304,8 +304,14 @@ void

[Qemu-devel] [RESEND PATCH v1 02/13] acpi, mem-hotplug: Add acpi_memory_get_slot_status_descriptor() to get MemStatus.

2015-01-07 Thread Tang Chen
Add a new API named acpi_memory_get_slot_status_descriptor() to obtain a single memory slot status. Doing this is because this procedure will be used by other functions in the next coming patches. Signed-off-by: Tang Chen tangc...@cn.fujitsu.com --- hw/acpi/memory_hotplug.c | 27

[Qemu-devel] [RESEND PATCH v1 11/13] pc-dimm: Add memory hot unplug support for pc-dimm.

2015-01-07 Thread Tang Chen
Implement unplug cb for pc-dimm. It remove the corresponding memory region, and unregister vmstat. At last, it calls memory unplug cb to reset memory status and do unparenting. --- hw/i386/pc.c | 25 +++-- 1 file changed, 23 insertions(+), 2 deletions(-) diff --git

[Qemu-devel] [RESEND PATCH v1 07/13] pc-dimm: Add memory hot unplug request support for pc-dimm.

2015-01-07 Thread Tang Chen
Implement memory unplug request cb for pc-dimm, and call it in pc_machine_device_unplug_request_cb(). --- hw/i386/pc.c | 28 ++-- 1 file changed, 26 insertions(+), 2 deletions(-) diff --git a/hw/i386/pc.c b/hw/i386/pc.c index 0f3b1e0..f501f1f 100644 --- a/hw/i386/pc.c +++

[Qemu-devel] [RESEND PATCH v1 05/13] acpi, piix4: Add memory hot unplug request support for piix4.

2015-01-07 Thread Tang Chen
From: Hu Tao hu...@cn.fujitsu.com Call memory unplug request cb in piix4_device_unplug_request_cb(). Signed-off-by: Hu Tao hu...@cn.fujitsu.com Signed-off-by: Tang Chen tangc...@cn.fujitsu.com --- hw/acpi/piix4.c | 6 +- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git

[Qemu-devel] [RESEND PATCH v1 03/13] acpi, mem-hotplug: Add acpi_memory_hotplug_sci() to rise sci for memory hotplug.

2015-01-07 Thread Tang Chen
Add a new API named acpi_memory_hotplug_sci() to send memory hotplug SCI. Doing this is because this procedure will be used by other functions in the next coming patches. Signed-off-by: Tang Chen tangc...@cn.fujitsu.com --- hw/acpi/memory_hotplug.c | 12 1 file changed, 8

[Qemu-devel] [RESEND PATCH v1 10/13] acpi, ich9: Add memory hot unplug support for ich9.

2015-01-07 Thread Tang Chen
Call memory unplug cb in ich9_pm_device_unplug_cb(). --- hw/acpi/ich9.c | 10 -- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/hw/acpi/ich9.c b/hw/acpi/ich9.c index 841f57d..0a8e757 100644 --- a/hw/acpi/ich9.c +++ b/hw/acpi/ich9.c @@ -317,8 +317,14 @@ void

[Qemu-devel] [RESEND PATCH v1 12/13] acpi: Add hardware implementation for memory hot unplug.

2015-01-07 Thread Tang Chen
This patch adds a new bit to memory hotplug IO port indicating that ej0 has been evaluated by guest OS. And call pc-dimm unplug cb to do the real removal. Signed-off-by: Hu Tao hu...@cn.fujitsu.com Signed-off-by: Tang Chen tangc...@cn.fujitsu.com --- docs/specs/acpi_mem_hotplug.txt | 8

[Qemu-devel] [RESEND PATCH v1 13/13] pc, acpi bios: Add memory hot unplug interface.

2015-01-07 Thread Tang Chen
From: Hu Tao hu...@cn.fujitsu.com This patch implements MEMORY_SLOT_EJECT_METHOD according to ACPI spec. Signed-off-by: Hu Tao hu...@cn.fujitsu.com Signed-off-by: Tang Chen tangc...@cn.fujitsu.com --- hw/i386/acpi-dsdt-mem-hotplug.dsl | 11 ++- hw/i386/ssdt-mem.dsl | 5

[Qemu-devel] [RESEND PATCH v1 09/13] acpi, piix4: Add memory hot unplug support for piix4.

2015-01-07 Thread Tang Chen
Call memory unplug cb in piix4_device_unplug_cb(). --- hw/acpi/piix4.c | 12 ++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/hw/acpi/piix4.c b/hw/acpi/piix4.c index f809c3a..4ae4867 100644 --- a/hw/acpi/piix4.c +++ b/hw/acpi/piix4.c @@ -377,8 +377,16 @@ static void

[Qemu-devel] [RESEND PATCH v1 08/13] acpi, mem-hotplug: Add unplug cb for memory device.

2015-01-07 Thread Tang Chen
Reset all memory status, and unparent the memory device. --- hw/acpi/memory_hotplug.c | 16 include/hw/acpi/memory_hotplug.h | 2 ++ 2 files changed, 18 insertions(+) diff --git a/hw/acpi/memory_hotplug.c b/hw/acpi/memory_hotplug.c index 3d8e398..2b0c8ca 100644 ---

Re: [Qemu-devel] [Qemu-stable] 2.1 unexpected stop after exporting blockdev via nbd server

2015-01-07 Thread Michael Roth
Quoting Stefan Hajnoczi (2015-01-06 05:49:11) On Mon, Jan 05, 2015 at 05:12:10PM +0400, Andrey Korolyov wrote: On Fri, Jan 2, 2015 at 4:04 PM, Stefan Hajnoczi stefa...@gmail.com wrote: On Thu, Dec 18, 2014 at 07:38:59PM +0400, Andrey Korolyov wrote: 2.1-stable is currently crashing with

[Qemu-devel] [PATCH v3 0/8] acpi: make ROMs resizeable

2015-01-07 Thread Michael S. Tsirkin
This is v3 of the patchset. Changes since v2: - Address Paolo's comments: drop an unused function, fix up comment. Changes since v1: - Any RAM can now be resizeable - there's no requirement that it's device RAM any longer. - For simplicity, max_size RAM is always

Re: [Qemu-devel] [PATCH v3] configure: Simplify alternate .text segment

2015-01-07 Thread Peter Maydell
On 7 January 2015 at 18:02, Stefan Weil s...@weilnetz.de wrote: Hello, this patch which is part of QEMU for more than a year now needs to be fixed for builds on Mac OS X: I just saw that the Mac's native linker ld does not support --verbose, but shows a warning. Cosmetically ugly, but not

Re: [Qemu-devel] [PATCH v2 01/10] pci: move REDHAT_SDHCI device ID to make room for Rocker

2015-01-07 Thread Scott Feldman
On Wed, Jan 7, 2015 at 2:55 AM, Paolo Bonzini pbonz...@redhat.com wrote: On 07/01/2015 11:39, Peter Maydell wrote: Within the virt team, we have always considered the authoritative source to be qemu.git and Gerd to be the maintainer. Jiri is a Red Hatter but not in the virt team, hence

[Qemu-devel] [PATCH v3 4/8] exec: qemu_ram_alloc_resizeable, qemu_ram_resize

2015-01-07 Thread Michael S. Tsirkin
Add API to allocate resizeable RAM. This looks just like regular RAM generally, but has a special property that only a portion of it (used_length) is actually used, and migrated. This used_length size can change across reboots. Follow up patches will change used_length for such blocks at

[Qemu-devel] [PATCH v3 3/8] exec: split length - used_length/max_length

2015-01-07 Thread Michael S. Tsirkin
This patch allows us to distinguish between two length values for each block: max_length - length of memory block that was allocated used_length - length of block used by QEMU/guest Currently, we set used_length - max_length, unconditionally. Follow-up patches allow used_length =

[Qemu-devel] [PATCH v3 5/8] arch_init: support resizing on incoming migration

2015-01-07 Thread Michael S. Tsirkin
If block used_length does not match, try to resize it. Signed-off-by: Michael S. Tsirkin m...@redhat.com --- arch_init.c | 13 - 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/arch_init.c b/arch_init.c index 106f46e..cfedbf0 100644 --- a/arch_init.c +++ b/arch_init.c

Re: [Qemu-devel] [PATCH v3 0/8] acpi: make ROMs resizeable

2015-01-07 Thread Paolo Bonzini
On 07/01/2015 20:48, Michael S. Tsirkin wrote: This is v3 of the patchset. Changes since v2: - Address Paolo's comments: drop an unused function, fix up comment. Changes since v1: - Any RAM can now be resizeable - there's no requirement that it's device RAM any

[Qemu-devel] [PATCH v3 2/8] exec: cpu_physical_memory_set/clear_dirty_range

2015-01-07 Thread Michael S. Tsirkin
Make cpu_physical_memory_set/clear_dirty_range behave symmetrically. To clear range for a given client type only, add cpu_physical_memory_clear_dirty_range_type. Signed-off-by: Michael S. Tsirkin m...@redhat.com --- include/exec/ram_addr.h | 15 --- exec.c | 2 +-

[Qemu-devel] [PATCH v3 1/8] memory: add memory_region_set_size

2015-01-07 Thread Michael S. Tsirkin
Add API to change MR size. Will be used internally for RAM resize. Signed-off-by: Michael S. Tsirkin m...@redhat.com --- include/exec/memory.h | 10 ++ memory.c | 16 2 files changed, 26 insertions(+) diff --git a/include/exec/memory.h

[Qemu-devel] [PATCH v3 7/8] acpi-build: make ROMs RAM blocks resizeable

2015-01-07 Thread Michael S. Tsirkin
Use resizeable ram API so we can painlessly extend ROMs in the future. Note: migration is not affected, as we are not actually changing the used length for RAM, which is the part that's migrated. Use this in acpi: reserve x16 more RAM space. Signed-off-by: Michael S. Tsirkin m...@redhat.com ---

[Qemu-devel] [PATCH v3 8/8] qemu_ram_resize: document assumptions

2015-01-07 Thread Michael S. Tsirkin
Document that when using qemu_ram_resize for anything mapped into guest address space, it's the job of the resize function to update guest visible state. Signed-off-by: Michael S. Tsirkin m...@redhat.com --- exec.c | 7 +++ 1 file changed, 7 insertions(+) diff --git a/exec.c b/exec.c index

[Qemu-devel] [PATCH v3 6/8] memory: API to allocate resizeable RAM MR

2015-01-07 Thread Michael S. Tsirkin
Add API to allocate resizeable RAM MR. This looks just like regular RAM generally, but has a special property that only a portion of it (used_length) is actually used, and migrated. This used_length size can change across reboots. Follow up patches will change used_length for such blocks at

Re: [Qemu-devel] [PATCH v2 0/6] aio: Support epoll by introducing qemu_poll abstraction

2015-01-07 Thread Stefan Hajnoczi
On Tue, Dec 16, 2014 at 10:04:38AM +0800, Fam Zheng wrote: On Thu, 12/04 11:43, Fam Zheng wrote: v2: Emulate nanoseconds precison of timeout with ppoll and timerfd. Their performance is on par with each other, but both much better than qemu.git: syscall high # of fd

[Qemu-devel] [PULL 23/37] target-ppc: Power8 Supports Transactional Memory

2015-01-07 Thread Alexander Graf
From: Tom Musta tommu...@gmail.com The Power8 processor implements the Transactional Memory Facility as defined in Power ISA 2.07. Update the initialization code to indicate this. Signed-off-by: Tom Musta tommu...@gmail.com Signed-off-by: Alexander Graf ag...@suse.de ---

[Qemu-devel] [PULL 06/37] target-ppc: VXSQRT Should Not Be Set for NaNs

2015-01-07 Thread Alexander Graf
From: Tom Musta tommu...@gmail.com The Power ISA square root instructions (fsqrt[s], frsqrte[s]) must set the FPSCR[VXSQRT] flag when operating on a negative value. However, NaNs have no sign and therefore this flag should not be set when operating on one. Change the order of the checks in the

[Qemu-devel] [PULL 27/37] target-ppc: Introduce tcheck

2015-01-07 Thread Alexander Graf
From: Tom Musta tommu...@gmail.com Add a degenerate implementation of the Transaction Check (tcheck) instruction. Since transaction always immediately fail, this implementation simply sets CR[BF] to 0b1000, i.e. TDOOMED = 1 and MSR[TS] == 0. Signed-off-by: Tom Musta tommu...@gmail.com

[Qemu-devel] [PULL 17/37] ppc: do not use get_clock_realtime()

2015-01-07 Thread Alexander Graf
From: Paolo Bonzini pbonz...@redhat.com Use the external qemu-timer API instead. Signed-off-by: Paolo Bonzini pbonz...@redhat.com Signed-off-by: Alexander Graf ag...@suse.de --- hw/ppc/ppc.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/hw/ppc/ppc.c b/hw/ppc/ppc.c

[Qemu-devel] [PULL 30/37] target-ppc: Mark SR() and gen_sync_exception() as !CONFIG_USER_ONLY

2015-01-07 Thread Alexander Graf
From: Peter Maydell peter.mayd...@linaro.org The functions SR() and gen_sync_exception() are only used in softmmu configs; wrap them in #ifndef CONFIG_USER_ONLY to suppress clang warnings on the linux-user builds. Signed-off-by: Peter Maydell peter.mayd...@linaro.org Signed-off-by: Alexander

[Qemu-devel] [PULL 12/37] target-ppc: explicitly save page table headers in big endian

2015-01-07 Thread Alexander Graf
From: Cédric Le Goater c...@fr.ibm.com Currently, when the page tables are saved, the kvm_get_htab_header structs and the ptes are assumed being big endian and dumped as a indistinct blob in the statefile. This is no longer true when the host is little endian and this breaks restoration. This

[Qemu-devel] [PULL 37/37] hw/ppc/mac_newworld: simplify usb controller creation logic

2015-01-07 Thread Alexander Graf
From: Marcel Apfelbaum mar...@redhat.com Signed-off-by: Marcel Apfelbaum mar...@redhat.com Reviewed-by: Stefan Hajnoczi stefa...@redhat.com Reviewed-by: Paolo Bonzini pbonz...@redhat.com Signed-off-by: Alexander Graf ag...@suse.de --- hw/ppc/mac_newworld.c | 4 ++-- 1 file changed, 2

[Qemu-devel] [PULL 35/37] hw/ppc/mac_newworld: QOMified mac99 machines

2015-01-07 Thread Alexander Graf
From: Marcel Apfelbaum mar...@redhat.com Signed-off-by: Marcel Apfelbaum mar...@redhat.com Reviewed-by: Stefan Hajnoczi stefa...@redhat.com Reviewed-by: Paolo Bonzini pbonz...@redhat.com Signed-off-by: Alexander Graf ag...@suse.de --- hw/ppc/mac_newworld.c | 29 +++-- 1

[Qemu-devel] [PULL 11/37] target-ppc: Eliminate set_fprf Argument From helper_compute_fprf

2015-01-07 Thread Alexander Graf
From: Tom Musta tommu...@gmail.com The set_fprf argument to the helper_compute_fprf helper function is no longer necessary -- the helper is only invoked when FPSCR[FPRF] is going to be set. Eliminate the unnecessary argument from the function signature and its corresponding implementation.

[Qemu-devel] [PULL 18/37] PPC: Fix crash on spapr_tce_table_finalize()

2015-01-07 Thread Alexander Graf
From: David Gibson da...@gibson.dropbear.id.au spapr_tce_table_finalize() can SEGV if the object was not previously realized. In particular this can be triggered by running qemu-system-ppc -device spapr-tce-table,? The basic problem is that we have mismatched initialization versus

  1   2   3   >