[Qemu-devel] Qemu SDL2 bug

2018-02-18 Thread Howard Spoelstra
Hi, I'd like to report a bug when using the SDL2 GUI in both Linux and Windows, which can be observed with in my case latest qemu-system-ppc running parallel instances of OSX 10.4 and 10.3. After switching back and forth between GUIs, dragging becomes copying, keyboard starts using a strange char

[Qemu-devel] [Bug 1750229] [NEW] virtio-blk-pci regression: softlock in guest kernel at module loading

2018-02-18 Thread Matwey V. Kornilov
Public bug reported: Hello, I am running qemu from master git branch on x86_64 host with kernel is 4.4.114. I've found that commit 9a4c0e220d8a "hw/virtio-pci: fix virtio behaviour" introduces an regression with the following command: qemu-system-x86_64 -enable-kvm -nodefaults -no-rebo

[Qemu-devel] [Bug 1750229] Re: virtio-blk-pci regression: softlock in guest kernel at module loading

2018-02-18 Thread Matwey V. Kornilov
** Attachment added: ".build.initrd.kvm" https://bugs.launchpad.net/qemu/+bug/1750229/+attachment/5057654/+files/.build.initrd.kvm -- You received this bug notification because you are a member of qemu- devel-ml, which is subscribed to QEMU. https://bugs.launchpad.net/bugs/1750229 Title: v

[Qemu-devel] [Bug 1750229] Re: virtio-blk-pci regression: softlock in guest kernel at module loading

2018-02-18 Thread Matwey V. Kornilov
** Attachment added: ".build.kernel.kvm" https://bugs.launchpad.net/qemu/+bug/1750229/+attachment/5057653/+files/.build.kernel.kvm -- You received this bug notification because you are a member of qemu- devel-ml, which is subscribed to QEMU. https://bugs.launchpad.net/bugs/1750229 Title: v

[Qemu-devel] [RFC, PATCH, v1] hw/audio/opl2lpt: add support for OPL2LPT

2018-02-18 Thread Vincent Bernat
OPL2LPT is an OPL2 chip on the parallel port. It can be programmed mostly like an OPL2 chip, except it is write-only. Timers are therefore not usable and we emulate a simplified version of them: they expire immediately (in the future, this could be updated to properly emulate them). Timers are usua

[Qemu-devel] Multiqueue block layer

2018-02-18 Thread Stefan Hajnoczi
Paolo's patches have been getting us closer to multiqueue block layer support but there is a final set of changes required that has become clearer to me just recently. I'm curious if this matches Paolo's vision and whether anyone else has comments. Multiqueue block layer means that I/O requests f

Re: [Qemu-devel] [PATCH 2/3] target/sparc: convert to DisasContextBase

2018-02-18 Thread Richard Henderson
On 02/15/2018 03:17 PM, Emilio G. Cota wrote: > - The original meaning of ctx.singlestep is > cs->singlestep_enabled || singlestep > , which required a little extra work since base.singlestep_enabled > only gets its value from cs->singlestep_enabled. These sort of inconsistencies should be

Re: [Qemu-devel] [PATCH 1/3] target/sparc: convert to DisasJumpType

2018-02-18 Thread Richard Henderson
On 02/15/2018 03:17 PM, Emilio G. Cota wrote: > Signed-off-by: Emilio G. Cota > --- > target/sparc/translate.c | 27 +++ > 1 file changed, 15 insertions(+), 12 deletions(-) Reviewed-by: Richard Henderson r~

Re: [Qemu-devel] [PATCH 3/3] target/sparc: convert to TranslatorOps

2018-02-18 Thread Richard Henderson
On 02/15/2018 03:17 PM, Emilio G. Cota wrote: > +(dc->pc - dc->base.pc_first) >= (TARGET_PAGE_SIZE - 32)) { What is this, and why is it not a bug to be fixed via elimination? Surely this condition is covered by the normal max_insns test. r~

[Qemu-devel] [PATCH] linux-user: Support f_flags in statfs when available.

2018-02-18 Thread Shea Levy
Signed-off-by: Shea Levy --- configure | 20 + linux-user/syscall.c | 3 +++ linux-user/syscall_defs.h | 56 +++ 3 files changed, 79 insertions(+) diff --git a/configure b/configure index 913e14839d..52fe2bf941 100

[Qemu-devel] e1000e: MSI-X problem with recent Linux drivers

2018-02-18 Thread Jan Kiszka
Hi, I've just noticed that the e1000e model does not work with its recent Linux kernel driver. This is my test matrix: Kernel INTx (IntMode=0)MSI-X 4.4 OK OK 4.14OK no link master OK n

Re: [Qemu-devel] [PATCH] spapr: fix missing CPU core nodes in DT when running with TCG

2018-02-18 Thread David Gibson
On Fri, Feb 16, 2018 at 07:58:06PM +0100, Greg Kurz wrote: > Commit 5d0fb1508e2d "spapr: consolidate the VCPU id numbering logic > in a single place" introduced a helper to detect thread0 of a virtual > core based on its VCPU id. This is used to create CPU core nodes in > the DT, but it is broken i

Re: [Qemu-devel] [PATCH v2 1/3] target/ppc: add basic support for PTCR on POWER9

2018-02-18 Thread David Gibson
On Fri, Feb 16, 2018 at 09:45:02AM +0100, Cédric Le Goater wrote: > The Partition Table Control Register (PTCR) is a hypervisor privileged > SPR. It contains the host real address of the Partition Table and its > size. > > Signed-off-by: Cédric Le Goater > --- > > Changes since v1: > > - rena

Re: [Qemu-devel] [PATCH v2 2/3] target/ppc: add hash MMU support on POWER9 for PowerNV only

2018-02-18 Thread David Gibson
On Fri, Feb 16, 2018 at 09:45:03AM +0100, Cédric Le Goater wrote: > The HPTE bits definitions are slightly modified in ISA v3.0. Let's add > some helpers to hide the differences in the hash MMU code. > > On a POWER9 processor, the Partition Table is composed of a pair of > doublewords per partitio

Re: [Qemu-devel] [Qemu-ppc] [PATCH v2 3/3] ppc: Add aCube Sam460ex board

2018-02-18 Thread David Gibson
On Sun, Feb 18, 2018 at 12:48:27AM +0100, BALATON Zoltan wrote: > On Fri, 16 Feb 2018, BALATON Zoltan wrote: > > On Fri, 16 Feb 2018, David Gibson wrote: > > > On Thu, Feb 15, 2018 at 10:27:06PM +0100, BALATON Zoltan wrote: > > > > Add emulation of aCube Sam460ex board based on AMCC 460EX embedded

Re: [Qemu-devel] [Qemu-ppc] [PATCH v2 0/3] Sam460ex emulation

2018-02-18 Thread David Gibson
On Sat, Feb 17, 2018 at 12:07:34AM +0100, Thomas Huth wrote: > On 16.02.2018 11:55, BALATON Zoltan wrote: > > On Fri, 16 Feb 2018, Thomas Huth wrote: > >> On 15.02.2018 22:27, BALATON Zoltan wrote: > >>> Remaining patches for Sam460ex emulation. The original cover letter > >>> with more details is

[Qemu-devel] [PATCH v2] linux-user: Support f_flags in statfs when available.

2018-02-18 Thread Shea Levy
Signed-off-by: Shea Levy --- configure | 20 ++ linux-user/syscall.c | 3 +++ linux-user/syscall_defs.h | 53 +++ 3 files changed, 76 insertions(+) diff --git a/configure b/configure index 913e14839d..52fe2bf941 10

Re: [Qemu-devel] [PATCH qemu v7 2/4] vfio/pci: Relax DMA map errors for MMIO regions

2018-02-18 Thread Alexey Kardashevskiy
On 16/02/18 16:28, David Gibson wrote: > On Wed, Feb 14, 2018 at 08:55:41AM -0700, Alex Williamson wrote: >> On Wed, 14 Feb 2018 19:09:16 +1100 >> Alexey Kardashevskiy wrote: >> >>> On 14/02/18 12:33, David Gibson wrote: On Tue, Feb 13, 2018 at 07:20:56PM +1100, Alexey Kardashevskiy wrote:

[Qemu-devel] [PATCH 4/5] tests: ds-rtc-i2c-test test 12 hour mode and DoW

2018-02-18 Thread Michael Davidsaver
Test time set+get in 12 hour mode. Also test handling of day of week offset. Signed-off-by: Michael Davidsaver --- tests/ds-rtc-i2c-test.c | 54 - 1 file changed, 53 insertions(+), 1 deletion(-) diff --git a/tests/ds-rtc-i2c-test.c b/tests/ds-rtc-

[Qemu-devel] [PATCH 2/5] tests: more thorough test of ds1338

2018-02-18 Thread Michael Davidsaver
Test current time and set+get round trip. The set+get test is repeated 4 times. These cases are spread across a single day in an attempt to trigger some potential issues regardless of the timezone of the machine running the tests. Signed-off-by: Michael Davidsaver --- tests/Makefile.include |

[Qemu-devel] [PATCH 0/5] Generalize Dallas/Maxim I2C RTC devices

2018-02-18 Thread Michael Davidsaver
These changes previously appeared as part of a series "Add MVME3100 PPC SBC v2" back in November. David Gibson, who looked that that series, suggested getting this reviewed separately. There doesn't appear to be a listed maintainer for this code, so I'm addressing this to the 3 people who have ma

[Qemu-devel] [PATCH 1/5] timer: ds1338 add magic reset for test code

2018-02-18 Thread Michael Davidsaver
When running w/ QTest, allow the tester to reliably zero time offsets. Allows tests to read the current time, and set time, independent of test order. Signed-off-by: Michael Davidsaver --- hw/timer/ds1338.c | 9 + 1 file changed, 9 insertions(+) diff --git a/hw/timer/ds1338.c b/hw/timer

[Qemu-devel] [PATCH 5/5] tests: drop ds1338-test

2018-02-18 Thread Michael Davidsaver
Now redundant to ds-rtc-i2c-test. Signed-off-by: Michael Davidsaver --- tests/Makefile.include | 2 -- tests/ds1338-test.c| 75 -- 2 files changed, 77 deletions(-) delete mode 100644 tests/ds1338-test.c diff --git a/tests/Makefile.include b/

[Qemu-devel] [PATCH 3/5] timer: generalize Dallas/Maxim RTC i2c devices

2018-02-18 Thread Michael Davidsaver
Support for: ds1307, ds1337, ds1338, ds1339, ds1340, ds1375, ds1388, and ds3231. Tested with ds1338 and ds1375. The existing ds1338 model has two bugs with almost no practical impact. 1. Trying to set time in 12-hour mode works, but the 12 hour mode bit isn't stored. So time always reads in 24 h

Re: [Qemu-devel] [PATCH v2 3/3] target/ppc: generalize check on radix when in HV mode

2018-02-18 Thread David Gibson
On Fri, Feb 16, 2018 at 09:45:04AM +0100, Cédric Le Goater wrote: > On a POWER9 processor, the first doubleword of the partition table > entry (as pointed to by the PTCR) indicates whether the host uses HPT > or Radix Tree translation for that partition. Use that bit to check > for radix mode on ps

[Qemu-devel] [RFC PATCH v0 0/2] Support for ibm,dynamic-memory-v2

2018-02-18 Thread Bharata B Rao
This is an RFC version of patchset to support the new ibm,dynamic-memory-v2 property which allows the LMB information to be represented in a more compact form by grouping LMBs into sets. I have tested it very lightly and observe guest crashes (during reboot) in a few scenarios. I am still trying t

[Qemu-devel] [RFC PATCH v0 1/2] pc-dimm: Make pc_dimm_built_list() global

2018-02-18 Thread Bharata B Rao
Making pc_dimm_built_list() global allows other parts of QEMU code to build and walk through the DIMM list in address-sorted order. This is needed in the next patch for sPAPR code to create ibm,dynamic-memory-v2 device tree property that will have entries for populated DIMMs as well as available h

[Qemu-devel] [RFC PATCH v0 2/2] spapr: Support ibm, dynamic-memory-v2 property

2018-02-18 Thread Bharata B Rao
The new property ibm,dynamic-memory-v2 allows memory to be represented in a more compact manner in device tree. Signed-off-by: Bharata B Rao --- docs/specs/ppc-spapr-hotplug.txt | 19 +++ hw/ppc/spapr.c | 254 +-- include/hw/ppc/spapr.h

Re: [Qemu-devel] Qemu SDL2 bug

2018-02-18 Thread Thomas Huth
On 18.02.2018 11:11, Howard Spoelstra wrote: > Hi, > > I'd like to report a bug when using the SDL2 GUI in both Linux and > Windows, which can be observed with in my case latest qemu-system-ppc > running parallel instances of OSX 10.4 and 10.3. > > After switching back and forth between GUIs, dra

Re: [Qemu-devel] [PATCH 2/5] tests: more thorough test of ds1338

2018-02-18 Thread Thomas Huth
On 19.02.2018 05:03, Michael Davidsaver wrote: > Test current time and set+get round trip. > > The set+get test is repeated 4 times. These cases are > spread across a single day in an attempt to trigger some potential > issues regardless of the timezone of the machine running the tests. > > Sign

Re: [Qemu-devel] e1000e: MSI-X problem with recent Linux drivers

2018-02-18 Thread Jan Kiszka
On 2018-02-18 21:54, Jan Kiszka wrote: > Hi, > > I've just noticed that the e1000e model does not work with its recent > Linux kernel driver. This is my test matrix: > > KernelINTx (IntMode=0)MSI-X > 4.4 OK OK > 4.14 OK

Re: [Qemu-devel] Qemu SDL2 bug

2018-02-18 Thread Howard Spoelstra
On Mon, Feb 19, 2018 at 8:09 AM, Thomas Huth wrote: > On 18.02.2018 11:11, Howard Spoelstra wrote: >> Hi, >> >> I'd like to report a bug when using the SDL2 GUI in both Linux and >> Windows, which can be observed with in my case latest qemu-system-ppc >> running parallel instances of OSX 10.4 and