Re: [Qemu-devel] [PATCH 1/3] iothread: provide helpers for internal use

2017-10-08 Thread Peter Xu
On Mon, Oct 02, 2017 at 07:18:04PM +0200, Markus Armbruster wrote: > Stefan Hajnoczi writes: > > > On Fri, Sep 22, 2017 at 04:56:10PM +0800, Peter Xu wrote: > >> IOThread is a general framework that contains IO loop environment and a > >> real thread behind. It's also good

[Qemu-devel] [Bug 1722074] Re: warning: host doesn't support requested feature: CPUID.01H:ECX.vmx

2017-10-08 Thread htmldevelo...@gmail.com
** Description changed: - I encountered the bug today: + + I encountered the bug today (when using qemu to boot up images - which used to work on my Intel CPU box): warning: host doesn't support requested feature: CPUID.01H:ECX.vmx + + The bug is a show-stopper - I completely cannot load

Re: [Qemu-devel] [PATCH v5 4/6] target/ppc: Handle NMI guest exit

2017-10-08 Thread Aravinda Prasad
On Wednesday 04 October 2017 06:59 AM, David Gibson wrote: > On Thu, Sep 28, 2017 at 04:08:10PM +0530, Aravinda Prasad wrote: >> Memory error such as bit flips that cannot be corrected >> by hardware are passed on to the kernel for handling. >> If the memory address in error belongs to guest

[Qemu-devel] [Bug 1722074] [NEW] warning: host doesn't support requested feature: CPUID.01H:ECX.vmx

2017-10-08 Thread htmldevelo...@gmail.com
Public bug reported: I encountered the bug today: warning: host doesn't support requested feature: CPUID.01H:ECX.vmx My Ubuntu have this version of QEMU installed: qemu-system-x86_64 --version QEMU emulator version 2.5.0 (Debian 1:2.5+dfsg-5ubuntu10.16), Copyright (c) 2003-2008 Fabrice

Re: [Qemu-devel] [PATCH v5 6/6] migration: Block migration while handling machine check

2017-10-08 Thread Aravinda Prasad
On Wednesday 04 October 2017 07:09 AM, David Gibson wrote: > On Thu, Sep 28, 2017 at 04:08:31PM +0530, Aravinda Prasad wrote: >> Block VM migration requests until the machine check >> error handling is complete as (i) these errors are >> specific to the source hardware and is irrelevant on >>

Re: [Qemu-devel] [PATCH v5 5/6] ppc: spapr: Enable FWNMI capability

2017-10-08 Thread Aravinda Prasad
On Wednesday 04 October 2017 07:04 AM, David Gibson wrote: > On Thu, Sep 28, 2017 at 04:08:21PM +0530, Aravinda Prasad wrote: >> Enable the KVM capability KVM_CAP_PPC_FWNMI so that >> the KVM causes guest exit with NMI as exit reason >> when it encounters a machine check exception on the >>

[Qemu-devel] [PATCH v2 1/2] spapr: introduce SPAPR_MACHINE_NOASSERT()

2017-10-08 Thread Greg Kurz
A spapr-cpu-core device can only be plugged into a pseries machine. This is checked in spapr_cpu_core_realize() with object_dynamic_cast() instead of the usual SPAPR_MACHINE() macro because we don't want QEMU to abort. This patch moves the gory details to a SPAPR_MACHINE_NOASSERT() macro that

[Qemu-devel] [PATCH v2 2/2] spapr_pci: fail gracefully with non-pseries machine types

2017-10-08 Thread Greg Kurz
QEMU currently crashes when the user tries to add a spapr-pci-host-bridge on a non-pseries machine: $ qemu-system-ppc64 -M ppce500 -device spapr-pci-host-bridge,index=1 hw/ppc/spapr_pci.c:1535:spapr_phb_realize: Object 0x1003dacae60 is not an instance of type spapr-machine Aborted (core dumped)

Re: [Qemu-devel] [Qemu-ppc] How to debug crash in TCG code?

2017-10-08 Thread BALATON Zoltan
Hello, I'm still trying to debug a crash that I don't understand why is happening and how to debug it further. Any hints are apreciated. I've described the problem previously in http://lists.nongnu.org/archive/html/qemu-ppc/2017-08/msg00249.html but I've dug deeper now, here's what I've found.

Re: [Qemu-devel] [PATCH v3 0/8] Add the ZynqMP PMU and IPI

2017-10-08 Thread Edgar E. Iglesias
On Wed, Sep 20, 2017 at 03:01:31PM -0700, Alistair Francis wrote: > > This series adds the ZynqMP Power Management Unit (PMU) machine with basic > functionality. > > The machine only has the > - CPU > - Memory > - Interrupt controller > - IPI device > > connected, but that is enough to run

Re: [Qemu-devel] [PATCH v2 1/2] spapr: introduce SPAPR_MACHINE_NOASSERT()

2017-10-08 Thread Peter Maydell
On 8 October 2017 at 18:17, Greg Kurz wrote: > A spapr-cpu-core device can only be plugged into a pseries machine. This > is checked in spapr_cpu_core_realize() with object_dynamic_cast() instead > of the usual SPAPR_MACHINE() macro because we don't want QEMU to abort. > > This

Re: [Qemu-devel] [PATCH 36/88] SLIRP: use g_new() family of functions

2017-10-08 Thread Samuel Thibault
Hello, Philippe Mathieu-Daudé, on ven. 06 oct. 2017 20:49:31 -0300, wrote: > --- a/net/slirp.c > +++ b/net/slirp.c > @@ -869,7 +869,7 @@ net_init_slirp_configs(const StringList *fwd, int flags) > while (fwd) { > struct slirp_config_str *config; > > -config =

Re: [Qemu-devel] [PATCH v2 1/2] spapr: introduce SPAPR_MACHINE_NOASSERT()

2017-10-08 Thread David Gibson
On Sun, Oct 08, 2017 at 09:05:37PM +0100, Peter Maydell wrote: > On 8 October 2017 at 18:17, Greg Kurz wrote: > > A spapr-cpu-core device can only be plugged into a pseries machine. This > > is checked in spapr_cpu_core_realize() with object_dynamic_cast() instead > > of the usual

Re: [Qemu-devel] [PATCH v5 5/6] ppc: spapr: Enable FWNMI capability

2017-10-08 Thread David Gibson
On Sun, Oct 08, 2017 at 01:56:06PM +0530, Aravinda Prasad wrote: > > > On Wednesday 04 October 2017 07:04 AM, David Gibson wrote: > > On Thu, Sep 28, 2017 at 04:08:21PM +0530, Aravinda Prasad wrote: > >> Enable the KVM capability KVM_CAP_PPC_FWNMI so that > >> the KVM causes guest exit with NMI

Re: [Qemu-devel] [PATCH v5 4/6] target/ppc: Handle NMI guest exit

2017-10-08 Thread David Gibson
On Sun, Oct 08, 2017 at 02:29:26PM +0530, Aravinda Prasad wrote: > > > On Wednesday 04 October 2017 06:59 AM, David Gibson wrote: > > On Thu, Sep 28, 2017 at 04:08:10PM +0530, Aravinda Prasad wrote: > >> Memory error such as bit flips that cannot be corrected > >> by hardware are passed on to

Re: [Qemu-devel] [PATCH v2 2/6] aspeed: add an I2C RTC device to all machines

2017-10-08 Thread Andrew Jeffery
On Wed, 2017-09-20 at 09:01 +0200, Cédric Le Goater wrote: > The AST2500 EVB does not have an RTC but we can pretend that one is > plugged on the I2C bus header. >  > The romulus and witherspoon boards expects an Epson RX8900 I2C RTC but > a ds1338 is good enough for the basic features we need. > 

Re: [Qemu-devel] [PATCH v2 4/6] aspeed: Add EEPROM I2C devices

2017-10-08 Thread Andrew Jeffery
On Wed, 2017-09-20 at 09:01 +0200, Cédric Le Goater wrote: > The Aspeed boards have at least one EEPROM to hold the Vital Product > Data (VPD). >  > Signed-off-by: Cédric Le Goater Reviewed-by: Andrew Jeffery > --- >  > Changes since v1: >  >  - fixed palmetto

Re: [Qemu-devel] [PATCH v2 6/6] aspeed: add the pc9552 chips to the witherspoon machine

2017-10-08 Thread Andrew Jeffery
On Wed, 2017-09-20 at 09:01 +0200, Cédric Le Goater wrote: > The pca9552 LED blinkers on the Witherspoon machine are used for leds > but also as GPIOs to control fans and GPUs. >  > Signed-off-by: Cédric Le Goater Reviewed-by: Andrew Jeffery > --- >  

Re: [Qemu-devel] [RFC PATCH qemu] virtio-pci: Replace modern_as with direct access to modern_bar

2017-10-08 Thread Alexey Kardashevskiy
On 06/10/17 23:58, Paolo Bonzini wrote: > On 03/10/2017 04:11, Alexey Kardashevskiy wrote: What is best to do if MR is not found (and is it possible in practice)? assert or redirect to unassigned memory? >>> Do nothing at all, I think. >> Repost without asserts? > > Yes, I guess so.

Re: [Qemu-devel] [PATCH v2] watchdog/aspeed: fix variable type to store reload value

2017-10-08 Thread Andrew Jeffery
On Wed, 2017-09-20 at 08:49 +0200, Cédric Le Goater wrote: > Initially from Anton D. Kachalov" but the SoB was > missing. >  > Signed-off-by: Cédric Le Goater > [clg: change commit log and subject >   replace UL suffix by ULL ] > Signed-off-by: Cédric Le

Re: [Qemu-devel] [PATCH v2 1/6] aspeed: add support for the witherspoon-bmc board

2017-10-08 Thread Andrew Jeffery
On Wed, 2017-09-20 at 09:01 +0200, Cédric Le Goater wrote: > The Witherspoon boards are OpenPOWER system hosting POWER9 Processors. > Let's add support for their BMC including a couple of I2C devices as > found on real HW. >  > Signed-off-by: Cédric Le Goater > --- >  

Re: [Qemu-devel] [PATCH v2 3/6] smbus: add a smbus_eeprom_init_one() routine

2017-10-08 Thread Philippe Mathieu-Daudé
On 09/20/2017 04:01 AM, Cédric Le Goater wrote: > This is an helper routine to add a single EEPROM on an I2C bus. It can > be directly used by smbus_eeprom_init() which adds a certain number of > EEPROMs on mips and x86 machines. > > Signed-off-by: Cédric Le Goater Reviewed-by:

[Qemu-devel] [PATCH qemu v2] virtio-pci: Replace modern_as with direct access to modern_bar

2017-10-08 Thread Alexey Kardashevskiy
The modern bar is accessed now via yet another address space created just for that purpose and it does not really need FlatView and dispatch tree as it has a single memory region so it is just a waste of memory. Things get even worse when there are dozens or hundreds of virtio-pci devices - since

Re: [Qemu-devel] [PATCH v2 1/2] exec: add page_mask for flatview_do_translate

2017-10-08 Thread Peter Xu
On Fri, Oct 06, 2017 at 03:03:50PM +0200, Maxime Coquelin wrote: > > > On 10/06/2017 02:48 PM, Paolo Bonzini wrote: > >On 06/10/2017 14:46, Maxime Coquelin wrote: >   addr = ((iotlb.translated_addr & ~iotlb.addr_mask) >   | (addr & iotlb.addr_mask)); > - 

Re: [Qemu-devel] What is the status of the QEMU sound rework?

2017-10-08 Thread Markus Armbruster
Copying Gerd... Zir Blazer writes: > I'm a VGA Passthrough user that uses a QEMU VM to fully replace a Windows > native install as the main OS. > > > Currently, one of the biggest hazzles for many users is that sound is hard to > get working properly with the emulated

Re: [Qemu-devel] [RFC v2 24/33] migration: synchronize dirty bitmap for resume

2017-10-08 Thread Peter Xu
On Mon, Oct 02, 2017 at 12:04:46PM +0100, Dr. David Alan Gilbert wrote: > * Peter Xu (pet...@redhat.com) wrote: > > On Fri, Sep 22, 2017 at 12:33:19PM +0100, Dr. David Alan Gilbert wrote: > > > * Peter Xu (pet...@redhat.com) wrote: > > > > This patch implements the first part of core RAM resume

Re: [Qemu-devel] [PATCH 18/23] ppc: pnv: use generic cpu_model parsing

2017-10-08 Thread Igor Mammedov
On Fri, 6 Oct 2017 22:25:03 +1100 David Gibson wrote: > On Fri, Oct 06, 2017 at 11:30:54AM +0200, Igor Mammedov wrote: > > On Fri, 6 Oct 2017 19:34:19 +1100 > > David Gibson wrote: > > > > > On Thu, Oct 05, 2017 at 06:24:45PM +0200,

Re: [Qemu-devel] [PATCH 7/8] os-posix: Provide new -runasid option

2017-10-08 Thread Markus Armbruster
Ian Jackson writes: > This allows the caller to specify a uid and gid to use, even if there > is no corresponding password entry. This will be useful in certain > Xen configurations. > > Signed-off-by: Ian Jackson [...] > diff --git

Re: [Qemu-devel] [PATCH v2 1/2] spapr: introduce SPAPR_MACHINE_NOASSERT()

2017-10-08 Thread Greg Kurz
On Mon, 9 Oct 2017 10:26:38 +1100 David Gibson wrote: > On Sun, Oct 08, 2017 at 09:05:37PM +0100, Peter Maydell wrote: > > On 8 October 2017 at 18:17, Greg Kurz wrote: > > > A spapr-cpu-core device can only be plugged into a pseries machine. This >