[Qemu-devel] [Bug 1777301] [NEW] Boot failed after installing Checkpoint Pointsec FDE

2018-06-17 Thread Haldun ALIMLI
Public bug reported: Boot failed after installing Checkpoint Pointsec FDE Hi, I installed Windows 10 64-bit guest on CentOS 7. Everything works great as expected. However after installing CheckPoint AlertSec full disk encryption, the guest failed to boot. The following error is displayed in

Re: [Qemu-devel] valgrind problem in sun4u_load_kernel()

2018-06-17 Thread Mark Cave-Ayland
On 15/06/18 11:37, Thomas Huth wrote: Hi Mark, hi Artyom, while using valgrind to fix some issues with the rom_ptr() function today, I noticed that there is one more problem in sun4u_load_kernel(): The kernel_top variable can be used uninitialized in some cases: If load_elf() fails and the

[Qemu-devel] [PATCH] i386/monitor.c: make addresses canonical for "info mem" and "info tlb"

2018-06-17 Thread Doug Gale
Correct the output of the "info mem" and "info tlb" monitor commands to correctly show canonical addresses. In 48-bit addressing mode, the upper 16 bits of linear addresses are equal to bit 47. In 57-bit addressing mode (LA57), the upper 7 bits of linear addresses are equal to bit 56.

Re: [Qemu-devel] [PATCH v7 12/54] tests/tcg/multiarch: don't hard code paths/ports for linux-test

2018-06-17 Thread Alex Bennée
Philippe Mathieu-Daudé writes: > Hi Alex, > > On 06/15/2018 04:46 PM, Alex Bennée wrote: >> The fixed path and ports get in the way of running our tests and >> builds in parallel. Instead of using TESTPATH we use mkdtemp() and >> instead of a fixed port we allow the kernel to assign one and

Re: [Qemu-devel] [PATCHv2] target/ppc, spapr: Move VPA information to machine_data

2018-06-17 Thread David Gibson
On Fri, Jun 15, 2018 at 04:00:24PM +0200, Greg Kurz wrote: > On Fri, 15 Jun 2018 22:29:28 +1000 > David Gibson wrote: > > > CPUPPCState currently contains a number of fields containing the state of > > the VPA. The VPA is a PAPR specific concept covering several guest/host > > shared memory

Re: [Qemu-devel] [PATCH 3/5] spapr_cpu_core: add missing rollback on realization path

2018-06-17 Thread David Gibson
On Fri, Jun 15, 2018 at 03:24:18PM +0200, Greg Kurz wrote: > On Fri, 15 Jun 2018 22:32:44 +1000 > David Gibson wrote: > > > On Fri, Jun 15, 2018 at 10:01:47AM +0200, Greg Kurz wrote: > > > On Fri, 15 Jun 2018 09:07:24 +0200 > > > Greg Kurz wrote: > > > > > > > On Fri, 15 Jun 2018 16:29:15

[Qemu-devel] [RFC 0/1] ide: attempt at fixing the bug #1777315.

2018-06-17 Thread Amol Surati
This is an attempt at fixing the bug #1777315, through code review alone (i.e. test and debugging are pending.) The function bmdma_prepare_buf shows that s->io_buffer_size can be controlled through the PRDs, and it is possible for it to not be a perfect multiple of the sector size (the function

[Qemu-devel] [RFC 1/1] ide: bug #1777315: io_buffer_size and sg.size can represent partial sector sizes

2018-06-17 Thread Amol Surati
This patch fixes the assumption that io_buffer_size is always a perfect multiple of the sector size. The assumption is the cause of the firing of 'assert(n * 512 == s->sg.size);'. Signed-off-by: Amol Surati --- hw/ide/core.c | 12 ++-- 1 file changed, 10 insertions(+), 2 deletions(-)

Re: [Qemu-devel] [PATCH] target/arm: Allow ARMv6-M Thumb2 instructions

2018-06-17 Thread Julia Suvorova via Qemu-devel
On 17.06.2018 19:33, Peter Maydell wrote: On 17 June 2018 at 06:36, Richard Henderson wrote: On 06/15/2018 12:55 AM, Peter Maydell wrote: +uint32_t armv6m_insn[] = {0xf3808000 /* msr */, 0xf3b08040 /* dsb */, + 0xf3b08050 /* dmb */, 0xf3b08060 /* isb */, +

[Qemu-devel] [Bug 1777315] [NEW] Denial of service

2018-06-17 Thread icytxw
Public bug reported: Hi, QEMU 'hw/ide/core.c:871' Denial of Service Vulnerability in version qemu-2.12.0 run the program in qemu-2.12.0: #define _GNU_SOURCE #include #include #include #include #include #include #include #include #include static uintptr_t syz_open_dev(uintptr_t a0,

Re: [Qemu-devel] [PATCH v3 00/13] 9p: Add support for Darwin

2018-06-17 Thread no-reply
Hi, This series seems to have some coding style problems. See output below for more information: Type: series Message-id: cover.1529196703.git.k...@juliacomputing.com Subject: [Qemu-devel] [PATCH v3 00/13] 9p: Add support for Darwin === TEST SCRIPT BEGIN === #!/bin/bash BASE=base n=1

Re: [Qemu-devel] [PATCH v3 0/2] kvm: limited x86 CPU power management

2018-06-17 Thread no-reply
Hi, This series seems to have some coding style problems. See output below for more information: Type: series Message-id: 20180615222855.44421-1-...@redhat.com Subject: [Qemu-devel] [PATCH v3 0/2] kvm: limited x86 CPU power management === TEST SCRIPT BEGIN === #!/bin/bash BASE=base n=1

[Qemu-devel] [PATCH] fpu_helper.c: fix helper_fpscr_clrbit() function

2018-06-17 Thread John Arbuckle
Fix the helper_fpscr_clrbit() function so it correctly sets the FEX and VX bits. Signed-off-by: John Arbuckle --- target/ppc/fpu_helper.c | 57 + 1 file changed, 57 insertions(+) diff --git a/target/ppc/fpu_helper.c b/target/ppc/fpu_helper.c

Re: [Qemu-devel] [PATCH] target/arm: Allow ARMv6-M Thumb2 instructions

2018-06-17 Thread Peter Maydell
On 17 June 2018 at 06:36, Richard Henderson wrote: > On 06/15/2018 12:55 AM, Peter Maydell wrote: >>> +uint32_t armv6m_insn[] = {0xf3808000 /* msr */, 0xf3b08040 /* dsb */, >>> + 0xf3b08050 /* dmb */, 0xf3b08060 /* isb */, >>> +

[Qemu-devel] Denial of service in hw/ide/core.c

2018-06-17 Thread air icy
Hi, QEMU 'hw/ide/core.c:871' Denial of Service Vulnerability in version qemu-2.12.0 run the program in qemu-2.12.0: #define _GNU_SOURCE #include #include #include #include #include #include #include #include #include static uintptr_t syz_open_dev(uintptr_t a0, uintptr_t a1, uintptr_t

[Qemu-devel] [Bug 1777315] Re: Denial of service

2018-06-17 Thread icytxw
** Information type changed from Private Security to Public Security -- You received this bug notification because you are a member of qemu- devel-ml, which is subscribed to QEMU. https://bugs.launchpad.net/bugs/1777315 Title: Denial of service Status in QEMU: New Bug description: Hi,

Re: [Qemu-devel] [PATCH] spapr: fix xics_system_init() error path

2018-06-17 Thread David Gibson
On Fri, Jun 15, 2018 at 06:58:00PM +0200, Greg Kurz wrote: > Commit 3d85885a1b1f3 tried to fix error handling, but it actually > went into the wrong direction by dropping the local Error *. > > In the default KVM case, the rationale is to try the in-kernel XICS first, > and if not possible, to

Re: [Qemu-devel] [PATCH] fpu_helper.c: fix helper_fpscr_clrbit() function

2018-06-17 Thread David Gibson
On Sun, Jun 17, 2018 at 11:53:09AM -0400, John Arbuckle wrote: > Fix the helper_fpscr_clrbit() function so it correctly > sets the FEX and VX bits. This needs a lot more information in the commit message: * What exactly was wrong with the previous setting of the FEX and VX bits? * Where

Re: [Qemu-devel] [PATCH v3 9/9] target/ppc: Add missing opcode for icbt on PPC440

2018-06-17 Thread David Gibson
On Fri, Jun 15, 2018 at 11:35:37AM +0200, BALATON Zoltan wrote: > On Thu, 14 Jun 2018, David Gibson wrote: > > On Thu, Jun 14, 2018 at 10:03:41AM +0200, BALATON Zoltan wrote: > > > On Thu, 14 Jun 2018, David Gibson wrote: > > > > On Thu, Jun 14, 2018 at 02:17:00AM +0200, BALATON Zoltan wrote: > >

Re: [Qemu-devel] [PATCH] fpu_helper.c: fix helper_fpscr_clrbit() function

2018-06-17 Thread Programmingkid
> On Jun 17, 2018, at 8:34 PM, David Gibson wrote: > > On Sun, Jun 17, 2018 at 11:53:09AM -0400, John Arbuckle wrote: >> Fix the helper_fpscr_clrbit() function so it correctly >> sets the FEX and VX bits. > > This needs a lot more information in the commit message: > > * What exactly was

Re: [Qemu-devel] [PATCH v2 3/8] ppc4xx_i2c: Implement directcntl register

2018-06-17 Thread David Gibson
On Wed, Jun 13, 2018 at 04:03:18PM +0200, BALATON Zoltan wrote: > On Wed, 13 Jun 2018, David Gibson wrote: > > On Wed, Jun 13, 2018 at 10:54:22AM +0200, BALATON Zoltan wrote: > > > On Wed, 13 Jun 2018, David Gibson wrote: > > > > On Wed, Jun 06, 2018 at 03:31:48PM +0200, BALATON Zoltan wrote: > >

Re: [Qemu-devel] [PATCH v3 09/13] nvdimm: convert "unarmed" into a static property

2018-06-17 Thread David Gibson
On Fri, Jun 15, 2018 at 04:04:44PM +0200, David Hildenbrand wrote: > We don't allow to modify it after realization. So we can simply turn > it into a static property. > > Signed-off-by: David Hildenbrand Reviewed-by: David Gibson > --- > hw/mem/nvdimm.c | 32 +++-

Re: [Qemu-devel] [PATCH v3 10/13] nvdimm: convert nvdimm_mr into a pointer

2018-06-17 Thread David Gibson
On Fri, Jun 15, 2018 at 04:04:45PM +0200, David Hildenbrand wrote: > This way we can easily check if the region has already been inititalized > without having to rely on the size of an uninitialized region being 0. > > Signed-off-by: David Hildenbrand I'm not terribly convinced that this is a

Re: [Qemu-devel] [PATCH v3 13/13] pc-dimm: get_memory_region() will not fail after realize

2018-06-17 Thread David Gibson
On Fri, Jun 15, 2018 at 04:04:48PM +0200, David Hildenbrand wrote: > Let's try to reduce error handling a bit. In the plug/unplug case, the > device was realized and therefore we can assume that getting access to > the memory region will not fail. > > For get_vmstate_memory_region() this is

Re: [Qemu-devel] [PATCH v3 03/13] pc-dimm: rename pc_dimm_memory_* to pc_dimm_*

2018-06-17 Thread David Gibson
On Fri, Jun 15, 2018 at 04:04:38PM +0200, David Hildenbrand wrote: > Let's rename it to make it look more consistent. > > Reviewed-by: Igor Mammedov > Signed-off-by: David Hildenbrand Reviewed-by: David Gibson ppc parts Acked-by: David Gibson > --- > hw/i386/pc.c | 4 ++-- >

Re: [Qemu-devel] [PATCH v3 2/9] ppc4xx_i2c: Implement directcntl register

2018-06-17 Thread David Gibson
On Thu, Jun 14, 2018 at 09:51:33AM +0200, BALATON Zoltan wrote: > On Thu, 14 Jun 2018, David Gibson wrote: > > On Thu, Jun 14, 2018 at 02:17:00AM +0200, BALATON Zoltan wrote: > > > Signed-off-by: BALATON Zoltan > > > > Patch looks good, but it needs a commit message. What is the > > directcntl

Re: [Qemu-devel] [PATCH v3 02/13] pc: rename pc_dimm_(plug|unplug|...)* into pc_memory_(plug|unplug|...)*

2018-06-17 Thread David Gibson
On Fri, Jun 15, 2018 at 04:04:37PM +0200, David Hildenbrand wrote: > Use a similar naming scheme as spapr. This way, we can go ahead and > rename e.g. pc_dimm_memory_plug to pc_dimm_plug, which avoids > confusion. > > Reviewed-by: Igor Mammedov > Signed-off-by: David Hildenbrand Reviewed-by:

Re: [Qemu-devel] [PATCH v3 08/13] pc-dimm: merge get_(vmstate_)memory_region()

2018-06-17 Thread David Gibson
On Fri, Jun 15, 2018 at 04:04:43PM +0200, David Hildenbrand wrote: > Importantly, get_vmstate_memory_region() should also fail with a proper > error if called before the device is realized. For a PCDIMM, both functions > are to return the same thing, so share the implementation. > > All current

Re: [Qemu-devel] [PATCH v3 04/13] pc-dimm: remove pc_dimm_get_free_slot() from header

2018-06-17 Thread David Gibson
On Fri, Jun 15, 2018 at 04:04:39PM +0200, David Hildenbrand wrote: > Not used outside of pc-dimm.c and there shouldn't be other users. If > other devices (e.g. memory devices) ever have to also use slots, then we > will have to factor this out. > > Reviewed-by: Igor Mammedov > Signed-off-by:

Re: [Qemu-devel] [PATCH v3 7/9] sm501: Implement i2c part for reading monitor EDID

2018-06-17 Thread David Gibson
On Thu, Jun 14, 2018 at 10:06:33AM +0200, BALATON Zoltan wrote: > On Thu, 14 Jun 2018, David Gibson wrote: > > On Thu, Jun 14, 2018 at 02:17:00AM +0200, BALATON Zoltan wrote: > > > Signed-off-by: BALATON Zoltan > > > > Again needs a commit message expanding on what this is and why it's > >

Re: [Qemu-devel] [PATCH] device_tree: Add qemu_fdt_totalsize function

2018-06-17 Thread David Gibson
On Wed, May 09, 2018 at 12:23:49PM +0100, Peter Maydell wrote: > On 9 May 2018 at 06:32, David Gibson wrote: > > On Sun, May 06, 2018 at 04:04:02PM +0100, Peter Maydell wrote: > >> On 6 May 2018 at 14:39, David Gibson wrote: > >> > Although, that said, I'll re-iterate that I think qemu's fdt >

Re: [Qemu-devel] [Qemu-ppc] [PATCH for-2.13 01/10] spapr: Avoid redundant calls to spapr_cpu_reset()

2018-06-17 Thread David Gibson
On Fri, Apr 20, 2018 at 05:39:42PM +0200, Greg Kurz wrote: > On Fri, 20 Apr 2018 11:15:01 +0200 > Greg Kurz wrote: > > > On Fri, 20 Apr 2018 16:34:37 +1000 > > David Gibson wrote: > > > > > On Thu, Apr 19, 2018 at 03:48:23PM +0200, Greg Kurz wrote: > > > > On Tue, 17 Apr 2018 17:17:13 +1000

[Qemu-devel] [PULL 04/28] spapr: fix leak in h_client_architecture_support()

2018-06-17 Thread David Gibson
From: Greg Kurz If the negotiated compat mode can't be set, but raw mode is supported, we decide to ignore the error. An so, we should free it to prevent a memory leak. Signed-off-by: Greg Kurz Reviewed-by: Philippe Mathieu-Daudé Signed-off-by: David Gibson --- hw/ppc/spapr_hcall.c | 1 + 1

[Qemu-devel] [PULL 03/28] target/ppc: drop empty #if/#endif block

2018-06-17 Thread David Gibson
From: Greg Kurz Commit 9d6f106552fa moved the last line in this block to somewhere else, but it forgot to remove the now useless #if/#endif. Signed-off-by: Greg Kurz Reviewed-by: Philippe Mathieu-Daudé Signed-off-by: David Gibson --- target/ppc/cpu.h | 2 -- 1 file changed, 2 deletions(-)

[Qemu-devel] [PULL 02/28] ppc/spapr_caps: Don't disable cap_cfpc on POWER8 by default

2018-06-17 Thread David Gibson
From: Suraj Jitindar Singh In default_caps_with_cpu() we set spapr_cap_cfpc to broken for POWER8 processors and before. Since we no longer require private l1d cache on POWER8 for this cap to be set to workaround change this to default to broken for POWER7 processors and before. Signed-off-by:

[Qemu-devel] [PULL 10/28] adb: add property to disable direct reg 3 writes

2018-06-17 Thread David Gibson
From: Mark Cave-Ayland MacOS 9 has a bug in its PMU driver whereby after configuring the ADB bus devices it sends another write to reg 3 on both devices resetting them both back to the same address. Add a new disable_direct_reg3_writes property to ADBDevice to disable these direct writes which

[Qemu-devel] [PULL 01/28] target/ppc: Don't require private l1d cache on POWER8 for cap_ppc_safe_cache

2018-06-17 Thread David Gibson
From: Suraj Jitindar Singh For cap_ppc_safe_cache to be set to workaround, we require both a l1d cache flush instruction and private l1d cache. On POWER8 don't require private l1d cache. This means a guest on a POWER8 machine can make use of the cache flush workarounds. Signed-off-by: Suraj

[Qemu-devel] [PULL 00/28] ppc-for-3.0 queue 20180618

2018-06-17 Thread David Gibson
The following changes since commit 2ef2f16781af9dee6ba6517755e9073ba5799fa2: Merge remote-tracking branch 'remotes/dgilbert/tags/pull-migration-20180615a' into staging (2018-06-15 18:13:35 +0100) are available in the Git repository at: git://github.com/dgibson/qemu.git

[Qemu-devel] [PULL 08/28] mac_newworld: wire up programmer switch to NMI handler

2018-06-17 Thread David Gibson
From: Mark Cave-Ayland The programmer switch is wired up via an external GPIO pin and can be used to aid debugging Mac guests. Signed-off-by: Mark Cave-Ayland Signed-off-by: David Gibson --- hw/misc/macio/gpio.c | 13 + 1 file changed, 13 insertions(+) diff --git

[Qemu-devel] [PULL 06/28] mac_newworld: add via machine option to control mac99 VIA/ADB configuration

2018-06-17 Thread David Gibson
From: Mark Cave-Ayland This option allows the VIA configuration to be controlled between 3 different possible setups: cuda, pmu-adb and pmu with USB rather than ADB keyboard/mouse. For the moment we don't do anything with the configuration except to pass it to the macio device (the via-cuda

[Qemu-devel] [PULL 13/28] mos6522: only clear the shift register interrupt upon write

2018-06-17 Thread David Gibson
From: Mark Cave-Ayland According to the 6522 datasheet the shift register (SR) interrupt flag is cleared upon write with no mention of any other interrupt flags. Signed-off-by: Mark Cave-Ayland Signed-off-by: David Gibson --- hw/misc/mos6522.c | 2 +- 1 file changed, 1 insertion(+), 1

[Qemu-devel] [PULL 09/28] adb: fix read reg 3 byte ordering

2018-06-17 Thread David Gibson
From: Mark Cave-Ayland According to the Apple ADB documentation, register 3 is a 2-byte register with the device address in the first byte, and the handler ID in the second byte. This is currently the opposite away to which QEMU returns them so switch the order around. Signed-off-by: Mark

[Qemu-devel] [PULL 05/28] ppc: introduce Core99MachinesState for the mac99 machine

2018-06-17 Thread David Gibson
From: Mark Cave-Ayland This is in preparation for adding configuration controlled via machine options. Signed-off-by: Mark Cave-Ayland Signed-off-by: David Gibson --- hw/ppc/mac.h | 11 +++ hw/ppc/mac_newworld.c | 7 +++ 2 files changed, 18 insertions(+) diff --git

[Qemu-devel] [PULL 07/28] mac_newworld: add gpios to macio devices with PMU enabled

2018-06-17 Thread David Gibson
From: Mark Cave-Ayland PMU-enabled New World Macs expose their GPIOs via a separate memory region within the macio device. Signed-off-by: Mark Cave-Ayland Signed-off-by: David Gibson --- default-configs/ppc-softmmu.mak | 1 + hw/misc/macio/Makefile.objs | 1 + hw/misc/macio/gpio.c

[Qemu-devel] [PULL 23/28] spapr_cpu_core: fix potential leak in spapr_cpu_core_realize()

2018-06-17 Thread David Gibson
From: Greg Kurz Commit 94ad93bd97684 (QEMU 2.12) switched to instantiate CPUs separately but it missed to adapt the error path accordingly. If something fails in the CPU creation loop, then the CPU object that was just created is leaked. The error paths in this function are a bit obfuscated,

[Qemu-devel] [PULL 18/28] pnv: Fix some error handling cpu realize()

2018-06-17 Thread David Gibson
In pnv_core_realize() we call two functions with an Error * parameter in succession, which will go badly if they both cause errors. In fact, a failure in either of them indicates a qemu internal error, so we can just use _abort in both cases. Signed-off-by: David Gibson Reviewed-by: Cédric Le

[Qemu-devel] [PULL 22/28] spapr_cpu_core: convert last snprintf() to g_strdup_printf()

2018-06-17 Thread David Gibson
From: Greg Kurz Because this is the preferred practice in QEMU. Signed-off-by: Greg Kurz Signed-off-by: David Gibson --- hw/ppc/spapr_cpu_core.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/hw/ppc/spapr_cpu_core.c b/hw/ppc/spapr_cpu_core.c index

[Qemu-devel] [PULL 15/28] mos6522: expose mos6522_update_irq() through MOS6522DeviceClass

2018-06-17 Thread David Gibson
From: Mark Cave-Ayland In the case where we have an interrupt generated externally from inputs to bits 1 and 2 of port A and/or port B, it is necessary to expose mos6522_update_irq() so it can be called by the interrupt source. Signed-off-by: Mark Cave-Ayland Signed-off-by: David Gibson ---

[Qemu-devel] [PULL 17/28] spapr: Clean up cpu realize/unrealize paths

2018-06-17 Thread David Gibson
spapr_cpu_init() and spapr_cpu_destroy() are only called from the spapr cpu core realize/unrealize paths, and really can only be called from there. Those are all short functions, so fold the pairs together for simplicity. While we're there rename some functions and change some parameter types for

[Qemu-devel] [PULL 16/28] sm501: Do not clear read only bits when writing registers

2018-06-17 Thread David Gibson
From: BALATON Zoltan When writing registers that have read only bits we have to avoid changing these bits as they may have non zero values. Make sure we use the correct masks to mask out read only and reserved bits when changing registers. Also remove extra spaces from dram_control and

[Qemu-devel] [PULL 24/28] spapr_cpu_core: add missing rollback on realization path

2018-06-17 Thread David Gibson
From: Greg Kurz The spapr_realize_vcpu() function doesn't rollback in case of error. This isn't a problem with coldplugged CPUs because the machine won't start and QEMU will exit. Hotplug is a different story though: the CPU thread is started under object_property_set_bool() and it assumes it

[Qemu-devel] [PULL 26/28] ppc/pnv: introduce a pnv_chip_core_realize() routine

2018-06-17 Thread David Gibson
From: Cédric Le Goater This extracts from the PvChip realize routine the part creating the cores. On Power9, we will need to create the cores after the Xive interrupt controller is created. Signed-off-by: Cédric Le Goater Signed-off-by: David Gibson --- hw/ppc/pnv.c | 32

[Qemu-devel] [PULL 14/28] mos6522: remove additional interrupt flag filter from mos6522_update_irq()

2018-06-17 Thread David Gibson
From: Mark Cave-Ayland The datasheet indicates that the interrupt is generated by ANDing the interrupt flags register (IFR) with the interrupt enable register (IER) but currently there is an extra filter for the SR and timer interrupts. Remove this extra filter to allow interrupts to be

[Qemu-devel] [PULL 20/28] pnv: Clean up cpu realize path

2018-06-17 Thread David Gibson
pnv_cpu_init() is only called from the the pnv cpu core realize path, and really only can be called from there. So fold it into its caller, which we also rename for brevity. Signed-off-by: David Gibson Reviewed-by: Cédric Le Goater Reviewed-by: Greg Kurz --- hw/ppc/pnv_core.c | 56

[Qemu-devel] [PULL 19/28] pnv_core: Allocate cpu thread objects individually

2018-06-17 Thread David Gibson
Currently, we allocate space for all the cpu objects within a single core in one big block. This was copied from an older version of the spapr code and requires some ugly pointer manipulation to extract the individual objects. This design was due to a misunderstanding of qemu lifetime

[Qemu-devel] [PULL 28/28] spapr: fix xics_system_init() error path

2018-06-17 Thread David Gibson
From: Greg Kurz Commit 3d85885a1b1f3 tried to fix error handling, but it actually went into the wrong direction by dropping the local Error *. In the default KVM case, the rationale is to try the in-kernel XICS first, and if not possible, to fallback to userland XICS. Passing errp everywhere

[Qemu-devel] [PULL 12/28] xics_kvm: fix a build break

2018-06-17 Thread David Gibson
From: Cédric Le Goater On CentOS 7.5, gcc-4.8.5-28.el7_5.1.ppc64le fails to build QEMU due to : hw/intc/xics_kvm.c: In function ‘ics_set_kvm_state’: hw/intc/xics_kvm.c:281:13: error: ‘ret’ may be used uninitialized in this function [-Werror=maybe-uninitialized] return ret;

[Qemu-devel] [PULL 27/28] target/ppc, spapr: Move VPA information to machine_data

2018-06-17 Thread David Gibson
CPUPPCState currently contains a number of fields containing the state of the VPA. The VPA is a PAPR specific concept covering several guest/host shared memory areas used to communicate some information with the hypervisor. As a PAPR concept this is really machine specific information, although

[Qemu-devel] [PULL 25/28] spapr_cpu_core: introduce spapr_create_vcpu()

2018-06-17 Thread David Gibson
From: Greg Kurz This moves some code out from spapr_cpu_core_realize() for clarity. No functional change. Signed-off-by: Greg Kurz Signed-off-by: David Gibson --- hw/ppc/spapr_cpu_core.c | 73 + 1 file changed, 45 insertions(+), 28 deletions(-) diff

[Qemu-devel] [PULL 21/28] pnv: Add cpu unrealize path

2018-06-17 Thread David Gibson
Currently we don't have any unrealize path for pnv cpu cores. We get away with this because we don't yet support cpu hotplug for pnv. However, we're going to want it eventually, and in the meantime, it makes it non-obvious why there are a bunch of allocations on the realize() path that don't

[Qemu-devel] [PULL 11/28] mac_newworld: add PMU device

2018-06-17 Thread David Gibson
From: Mark Cave-Ayland The PMU device supercedes the CUDA device found on older New World Macs and is supported by a larger number of guest OSs from OS 9 to OS X 10.5. Signed-off-by: Mark Cave-Ayland Signed-off-by: David Gibson --- default-configs/ppc-softmmu.mak | 1 +

Re: [Qemu-devel] [PATCH 1/3] spapr: split the IRQ allocation sequence

2018-06-17 Thread David Gibson
On Fri, Jun 15, 2018 at 01:53:01PM +0200, Cédric Le Goater wrote: > Today, when a device requests for IRQ number in a sPAPR machine, the > spapr_irq_alloc() routine first scans the ICSState status array to > find an empty slot and then performs the assignement of the selected > numbers. Split this

Re: [Qemu-devel] [PATCH v2 1/4] ppc/pnv: introduce a new intc_create() operation to the chip model

2018-06-17 Thread David Gibson
On Fri, Jun 15, 2018 at 05:25:33PM +0200, Cédric Le Goater wrote: > On Power9, the thread interrupt presenter has a different type and is > linked to the chip owning the cores. > > Signed-off-by: Cédric Le Goater Applied to ppc-for-3.0, thanks. > --- > include/hw/ppc/pnv.h | 1 + >

Re: [Qemu-devel] [PATCH v2 2/4] ppc/pnv: introduce a new isa_create() operation to the chip model

2018-06-17 Thread David Gibson
On Fri, Jun 15, 2018 at 05:25:34PM +0200, Cédric Le Goater wrote: > This moves the details of the ISA bus creation under the LPC model but > more important, the new PnvChip operation will let us choose the chip > class to use when we introduce the different chip classes for Power9 > and Power8. It

[Qemu-devel] [Bug 1386197] Re: keyboard suddenly stops working in VM and problem persists until host reboot. All super-standard setup no funny stuff

2018-06-17 Thread Launchpad Bug Tracker
[Expired for QEMU because there has been no activity for 60 days.] ** Changed in: qemu Status: Incomplete => Expired -- You received this bug notification because you are a member of qemu- devel-ml, which is subscribed to QEMU. https://bugs.launchpad.net/bugs/1386197 Title: keyboard

[Qemu-devel] [Bug 1222034] Re: QEMU + SPICE + AUDIO = FAILURE

2018-06-17 Thread Launchpad Bug Tracker
[Expired for QEMU because there has been no activity for 60 days.] ** Changed in: qemu Status: Incomplete => Expired -- You received this bug notification because you are a member of qemu- devel-ml, which is subscribed to QEMU. https://bugs.launchpad.net/bugs/1222034 Title: QEMU +

[Qemu-devel] [Bug 1228285] Re: e1000 nic TCP performances

2018-06-17 Thread Launchpad Bug Tracker
[Expired for QEMU because there has been no activity for 60 days.] ** Changed in: qemu Status: Incomplete => Expired -- You received this bug notification because you are a member of qemu- devel-ml, which is subscribed to QEMU. https://bugs.launchpad.net/bugs/1228285 Title: e1000 nic

Re: [Qemu-devel] [PATCH v3 1/2] qapi: open files in binary mode and use explicit decoding/encoding in common.py

2018-06-17 Thread Markus Armbruster
Matthias Maier writes: > This is a different approach to fix the locale dependent encode/decode > problem in common.py utilizing the binary read/write mode [1,2], and (if > a python 3 interpreter is used) with explicit decode/encode arguments > [3]. Why can't we simply pass encoding='utf-8' to

[Qemu-devel] [Bug 1777293] Re: [REQUEST[ SHARING MEMORY WITH HOST

2018-06-17 Thread Thomas Huth
Sorry, but I have a hard to to imagine what you exactly mean here. Do you mean a possibility for one application in the guest and one in the host to share a piece of memory? Or do you mean that the operating systems in the host and guest should somehow share the memory (why?)? Or do you just look

Re: [Qemu-devel] [Bug 1777252] Re: tests/Makefile.include trying to add linking library '-lutil' that break the build on Solaris

2018-06-17 Thread Markus Armbruster
Thomas Huth <1777...@bugs.launchpad.net> writes: > I'm sorry, but Solaris is currently unsupported and might get removed in > a future release, see: > > https://wiki.qemu.org/ChangeLog/2.12#Warning:_unsupported_host_systems Quote configure: if test "$supported_os" = "no"; then echo

Re: [Qemu-devel] [PATCH 2/3] spapr: remove unused spapr_irq routines

2018-06-17 Thread David Gibson
On Fri, Jun 15, 2018 at 01:53:02PM +0200, Cédric Le Goater wrote: > spapr_irq_alloc_block and spapr_irq_alloc() are now deprecated. > > Signed-off-by: Cédric Le Goater Reviewed-by: David Gibson > --- > include/hw/ppc/spapr.h | 4 --- > hw/ppc/spapr.c | 80 >