Re: [Qemu-devel] [qemu-s390x] [PATCH v5] s390x: Enable KVM huge page backing support

2018-08-02 Thread Thomas Huth
On 08/02/2018 09:02 AM, Janosch Frank wrote: > QEMU has had huge page support for a longer time already, but KVM > memory management under s390x needed some changes to work with huge > backings. > > Now that we have support, let's enable it if requested and > available. Otherwise we now properly

Re: [Qemu-devel] [Qemu-ppc] [PULL 0/2] ppc-for-3.0 queue 20180801

2018-08-02 Thread Thomas Huth
On 08/02/2018 04:07 PM, David Gibson wrote: > On Thu, Aug 02, 2018 at 10:16:32AM +0100, Peter Maydell wrote: >> On 2 August 2018 at 08:08, David Gibson wrote: >>> The macio fix, however, *is* a regression from 2.12. Whether it's >>> severe enough to warrant another -rc, I'm not sure. It is a

Re: [Qemu-devel] [PATCH 0/3] hw/ppc: Convert various devices away from old_mmio

2018-08-02 Thread David Gibson
On Thu, Aug 02, 2018 at 03:44:27PM +0100, Peter Maydell wrote: > This patchset removes various uses of old_mmio from minor PPC > devices: > * hw/ppc/prep had an entirely ifdeffed-out stub of an XCSR device, >which we remove > * hw/ppc/ppc_boards had ref405ep_fpga > * hw/ppc/ppc405_uc had

[Qemu-devel] [PATCH v4 3/3] arm: Add BBC micro:bit machine

2018-08-02 Thread Joel Stanley
This adds the base for a machine model of the BBC micro:bit: https://en.wikipedia.org/wiki/Micro_Bit This is a system with a nRF51 SoC containing the main processor, with various peripherals on board. Reviewed-by: Stefan Hajnoczi Signed-off-by: Joel Stanley --- v2: - Instead of setting

[Qemu-devel] [PATCH v4 2/3] arm: Add Nordic Semiconductor nRF51 SoC

2018-08-02 Thread Joel Stanley
The nRF51 is a Cortex-M0 microcontroller with an on-board radio module, plus other common ARM SoC peripherals. http://infocenter.nordicsemi.com/pdf/nRF51_RM_v3.0.pdf This defines a basic model of the CPU and memory, with no peripherals implemented at this stage. Signed-off-by: Joel Stanley

[Qemu-devel] [PATCH v4 0/3] arm: Add nRF51 SoC and micro:bit machine

2018-08-02 Thread Joel Stanley
v4: Fix number of IRQs Based-on: 20180725085944.11856-1-stefa...@redhat.com This short series implements a minimal definition of the Nordic Semiconductor nRF51, a Cortex-M0 ARM SoC, and the BBC micro:bit, a machine that will use this SoC. This work will serve as the base for our Google Summer of

[Qemu-devel] [PATCH v4 1/3] MAINTAINERS: Add NRF51 entry

2018-08-02 Thread Joel Stanley
This contains the NRF51, and the machine that uses it, the BBC micro:bit. Reviewed-by: Stefan Hajnoczi Signed-off-by: Joel Stanley --- v3: fix spelling of mailing list add stefan's reviewed-by --- MAINTAINERS | 8 1 file changed, 8 insertions(+) diff --git a/MAINTAINERS

[Qemu-devel] Can I create img more thant 16TB?

2018-08-02 Thread lampahome
There's file size maximum in ext4 and it's 16TB Can I create qcow2 ex:32TB and write more than 16TB? thx

[Qemu-devel] Efficacy of jitterentropy RNG on qemu-kvm Guests

2018-08-02 Thread procmem
Hello. I'm a distro maintainer and was wondering about the efficacy of entropy daemons like haveged and jitterentropyd in qemu-kvm. One of the authors of haveged [0] pointed out if the hardware cycles counter is emulated and deterministic, and thus predictible. He therefore does not recommend

Re: [Qemu-devel] [PATCH] migrate/cpu-throttle: Add max-cpu-throttle migration parameter

2018-08-02 Thread Li Qiang
2018-08-02 18:47 GMT+08:00 Dr. David Alan Gilbert : > * Li Qiang (liq...@gmail.com) wrote: > > Currently, the default maximum CPU throttle for migration is > > 99(CPU_THROTTLE_PCT_MAX). This is too big and can make a remarkable > > performance effect for the guest. We see a lot of packets latency

[Qemu-devel] Node deletion in aio_set_fd_handler

2018-08-02 Thread Fam Zheng
Paolo, is this else branch dead code (or bug?): /* If the lock is held, just mark the node as deleted */ if (qemu_lockcnt_count(>list_lock)) { node->deleted = 1; node->pfd.revents = 0; } else { /* Otherwise, delete it for real. We can't

Re: [Qemu-devel] [PATCH] qemu-img.c: Add examples section

2018-08-02 Thread Programmingkid
> On Aug 2, 2018, at 10:10 PM, Fam Zheng wrote: > > On Thu, 08/02 20:50, John Arbuckle wrote: >> Add an examples section to the help output. >> >> Signed-off-by: John Arbuckle >> --- >> qemu-img.c | 11 +++ >> 1 file changed, 11 insertions(+) >> >> diff --git a/qemu-img.c

Re: [Qemu-devel] [PATCH] qemu-img.c: Add examples section

2018-08-02 Thread Fam Zheng
On Thu, 08/02 20:50, John Arbuckle wrote: > Add an examples section to the help output. > > Signed-off-by: John Arbuckle > --- > qemu-img.c | 11 +++ > 1 file changed, 11 insertions(+) > > diff --git a/qemu-img.c b/qemu-img.c > index 1acddf693c..f77c82695d 100644 > --- a/qemu-img.c >

Re: [Qemu-devel] [PULL v4 0/7] riscv-pull queue

2018-08-02 Thread Palmer Dabbelt
On Mon, 09 Jul 2018 16:04:48 PDT (-0700), Michael Clark wrote: On Tue, Jul 10, 2018 at 9:52 AM, Alistair Francis wrote: On Mon, Jul 9, 2018 at 3:00 AM, Andreas Schwab wrote: > What is the state of the sifive_u emulation? When I tried to boot a bbl > with an included kernel I get these

[Qemu-devel] [PATCH] qemu-img.c: Add examples section

2018-08-02 Thread John Arbuckle
Add an examples section to the help output. Signed-off-by: John Arbuckle --- qemu-img.c | 11 +++ 1 file changed, 11 insertions(+) diff --git a/qemu-img.c b/qemu-img.c index 1acddf693c..f77c82695d 100644 --- a/qemu-img.c +++ b/qemu-img.c @@ -199,6 +199,17 @@ static void QEMU_NORETURN

Re: [Qemu-devel] RISC-V platform

2018-08-02 Thread Programmingkid
> On Aug 2, 2018, at 5:07 PM, Palmer Dabbelt wrote: > > On Fri, 29 Jun 2018 14:20:34 PDT (-0700), alistai...@gmail.com wrote: >> On Fri, Jun 29, 2018 at 2:05 PM, G 3 wrote: >>> Hi, I noticed your RISC-V patches on the mailing list and had a question >>> that I think you may be able to answer.

[Qemu-devel] [ANNOUNCE] QEMU 2.12.1 Stable released

2018-08-02 Thread Michael Roth
Hi everyone, I am pleased to announce that the QEMU v2.12.1 stable release is now available: You can grab the tarball from our download page here: https://www.qemu.org/download/#source v2.12.1 is now tagged in the official qemu.git repository, and the stable-2.12 branch has been updated

Re: [Qemu-devel] [PATCH v3 6/7] loader: Implement .hex file loader

2018-08-02 Thread Peter Maydell
On 2 August 2018 at 13:43, Stefan Hajnoczi wrote: > On Mon, Jul 30, 2018 at 07:01:53PM +0100, Peter Maydell wrote: >> I'm still not convinced we want to add another random >> special case only-works-on-one-architecture-and-some-boards >> feature to the -kernel command line option. >> >> Adding it

Re: [Qemu-devel] [PATCH v3 2/2] Add Nios II semihosting support.

2018-08-02 Thread Sandra Loosemore
On 05/18/2018 03:35 PM, Sandra Loosemore wrote: On 05/18/2018 02:19 PM, Julian Brown wrote: On Fri, 18 May 2018 21:52:04 +0200 Marek Vasut wrote: On 05/18/2018 09:23 PM, Julian Brown wrote: This patch (by Sandra Loosemore, mildly rebased) adds support for semihosting for Nios II bare-metal

Re: [Qemu-devel] [PATCH v6 00/77] Add nanoMIPS support to QEMU

2018-08-02 Thread no-reply
Hi, This series seems to have some coding style problems. See output below for more information: Type: series Message-id: 1533219424-7627-1-git-send-email-stefan.marko...@rt-rk.com Subject: [Qemu-devel] [PATCH v6 00/77] Add nanoMIPS support to QEMU === TEST SCRIPT BEGIN === #!/bin/bash

Re: [Qemu-devel] [PATCH v3 6/7] loader: Implement .hex file loader

2018-08-02 Thread Stefan Hajnoczi
On Mon, Jul 30, 2018 at 07:01:53PM +0100, Peter Maydell wrote: > On 25 July 2018 at 09:59, Stefan Hajnoczi wrote: > > From: Su Hang > > > > This patch adds Intel Hexadecimal Object File format support to the > > loader. The file format specification is available here: > >

Re: [Qemu-devel] RISC-V platform

2018-08-02 Thread Palmer Dabbelt
On Fri, 29 Jun 2018 14:20:34 PDT (-0700), alistai...@gmail.com wrote: On Fri, Jun 29, 2018 at 2:05 PM, G 3 wrote: Hi, I noticed your RISC-V patches on the mailing list and had a question that I think you may be able to answer. Has anyone defined a RISC-V platform yet? What I mean is defining

Re: [Qemu-devel] 'make vm-build-freebsd' don't work if KVM isn't enabled

2018-08-02 Thread Peter Maydell
On 2 August 2018 at 20:13, Philippe Mathieu-Daudé wrote: > Hi Peter, > > On 07/30/2018 10:23 AM, Peter Maydell wrote: >> The tests in tests/vm/ seem to make some attempt to cope with the >> host system not allowing the user to use KVM, but it doesn't quite >> work. The problem is that

[Qemu-devel] [Bug 1784919] Re: native libgfapi glusterfs support for virtio 9p filesystem passthrough

2018-08-02 Thread Hans
** Tags added: whishlist ** Tags removed: whishlist ** Tags added: wishlist -- You received this bug notification because you are a member of qemu- devel-ml, which is subscribed to QEMU. https://bugs.launchpad.net/bugs/1784919 Title: native libgfapi glusterfs support for virtio 9p

Re: [Qemu-devel] [Bug 1784900] Re: QEMU (frontend) crashes upon warm reboot with virtio-gpu device and vga=775 on Linux cmdline

2018-08-02 Thread no-reply
Hi, This series seems to have some coding style problems. See output below for more information: Type: series Message-id: 153321150379.28572.4771679861864409417.mal...@chaenomeles.canonical.com Subject: [Qemu-devel] [Bug 1784900] Re: QEMU (frontend) crashes upon warm reboot with virtio-gpu

Re: [Qemu-devel] [PATCH v6 77/77] linux-user: Add nanoMIPS support in scripts/qemu-binfmt-conf.sh

2018-08-02 Thread Laurent Vivier
Le 02/08/2018 à 16:17, Stefan Markovic a écrit : > From: Aleksandar Rikalo > > Add support for nanomips[eb] variant in scripts/qemu-binfmt-conf.sh. > > Signed-off-by: Aleksandar Markovic > Signed-off-by: Stefan Markovic > --- > scripts/qemu-binfmt-conf.sh | 12 ++-- > 1 file changed,

Re: [Qemu-devel] [PATCH v1 0/5] Connect a PCIe host and graphics support toRISC-V

2018-08-02 Thread Alistair
Hey, Sorry for the top post. I’m on holidays at the moment and will be back next week. I have sent a V2 to the list, I don’t think I CCed you as I know your busy. Once the 3.1 merge window opens I’ll send a new version with all the comments I have received. Alistair From: Palmer Dabbelt

Re: [Qemu-devel] 'make vm-build-freebsd' don't work if KVM isn't enabled

2018-08-02 Thread Philippe Mathieu-Daudé
Hi Peter, On 07/30/2018 10:23 AM, Peter Maydell wrote: > The tests in tests/vm/ seem to make some attempt to cope with the > host system not allowing the user to use KVM, but it doesn't quite > work. The problem is that tests/vm/basevm.py always uses "-cpu host" > in the QEMU options it uses to

Re: [Qemu-devel] [PATCH 4/6] dirty-bitmaps: clean-up bitmaps loading and migration logic

2018-08-02 Thread John Snow
On 08/02/2018 03:05 PM, Denis V. Lunev wrote: > On 08/02/2018 12:50 PM, Dr. David Alan Gilbert wrote: >> * Denis V. Lunev (d...@openvz.org) wrote: >> >> I don't quite understand the last two paragraphs. >>> we are thinking right now to eliminate delay on regular IO >>> for migration. There

Re: [Qemu-devel] [PATCH 4/6] dirty-bitmaps: clean-up bitmaps loading and migration logic

2018-08-02 Thread Denis V. Lunev
On 08/02/2018 12:50 PM, Dr. David Alan Gilbert wrote: > * Denis V. Lunev (d...@openvz.org) wrote: > > >>> I don't quite understand the last two paragraphs. >> we are thinking right now to eliminate delay on regular IO >> for migration. There is some thoughts and internal work in >> progress. That

Re: [Qemu-devel] [PATCH] hw/timer/m48t59: Move away from old_mmio accessors

2018-08-02 Thread Philippe Mathieu-Daudé
On 08/02/2018 03:06 PM, Peter Maydell wrote: > Move the m48t59 device away from using old_mmio MemoryRegionOps > accessors. > > Signed-off-by: Peter Maydell Reviewed-by: Philippe Mathieu-Daudé > --- > Tested with 'make check' and by booting a sparc guest. > > hw/timer/m48t59.c | 59

Re: [Qemu-devel] [PATCH 1/2] hw/display/vga-isa-mm: Convert away from old_mmio

2018-08-02 Thread Hervé Poussineau
Le 02/08/2018 à 17:51, Peter Maydell a écrit : Convert the vga-isa-mm device away from the old_mmio MemoryRegion accessors. This device is only used by the MIPS 'jazz' boards "magnum" and "pica61". Signed-off-by: Peter Maydell --- hw/display/vga-isa-mm.c | 60

Re: [Qemu-devel] [PATCH v2 21/23] libqtest: Remove qtest_qmp_discard_response() & friends

2018-08-02 Thread Markus Armbruster
Thomas Huth writes: > On 08/02/2018 06:53 AM, Markus Armbruster wrote: >> Thomas Huth writes: >> >>> On 07/30/2018 08:32 AM, Markus Armbruster wrote: Eric Blake writes: > On 07/27/2018 11:46 AM, Thomas Huth wrote: >> On 07/27/2018 05:13 PM, Markus Armbruster wrote: >>>

[Qemu-devel] [PATCH] hw/timer/m48t59: Move away from old_mmio accessors

2018-08-02 Thread Peter Maydell
Move the m48t59 device away from using old_mmio MemoryRegionOps accessors. Signed-off-by: Peter Maydell --- Tested with 'make check' and by booting a sparc guest. hw/timer/m48t59.c | 59 +-- 1 file changed, 11 insertions(+), 48 deletions(-) diff

Re: [Qemu-devel] [PATCH v5 45/76] target/mips: Implement emulation of nanoMIPS LLWP/SCWP pair

2018-08-02 Thread Aleksandar Markovic
> From: Richard Henderson > Sent: Thursday, August 2, 2018 7:28 PM > > On 08/02/2018 08:29 AM, Aleksandar Markovic wrote: > > Hi, Richard, > > > > We are going to remove obsoleted helpers, that was just an honest mistake > > made in a rush. > > > > For unprotected access to gpr, we are going to

Re: [Qemu-devel] [PATCH v1 0/5] Connect a PCIe host and graphics support to RISC-V

2018-08-02 Thread Palmer Dabbelt
On Fri, 22 Jun 2018 12:28:14 PDT (-0700), alistair.fran...@wdc.com wrote: Alistair Francis (5): hw/riscv/virtio: Set the soc device tree node as a simple-bus hw/riscv/virt: Increase the number of interrupts hw/riscv/virt: Connect the Xilinx PCIe hw/riscv/virt: Connect a VGA PCIe device

[Qemu-devel] [PATCH 2/2] hw/net/pcnet-pci: Unify pcnet_ioport_read/write and pcnet_mmio_read/write

2018-08-02 Thread Peter Maydell
The only difference between our implementation of the pcnet ioport accessors and the mmio accessors is that the former check BCR_DWIO to see what access widths are permitted for addresses in the aprom range (0x0..0xf). In fact our failure to do this in the mmio accessors is a bug (one which was

[Qemu-devel] [PATCH 1/2] hw/net/pcnet-pci: Convert away from old_mmio accessors

2018-08-02 Thread Peter Maydell
Convert the pcnet-pci device away from using the old_mmio MemoryRegionOps accessor functions. This commit is a no-behaviour-change API conversion. (Since PCNET_PNPMMIO_SIZE is 0x20, the old "addr & 0x10" check and the new "addr < 0x10" check are exact opposites; the new code is phrased to be

[Qemu-devel] [PATCH 0/2] hw/net/pcnet-pci: Convert away from old_mmio accessors

2018-08-02 Thread Peter Maydell
This patchset converts the pcnet-pci's MMIO BAR MemoryRegionOps away from the old_mmio accessors. It does it in two stages: * patch 1 is a no-behaviour-change patch which replaces the old split byte/word/long accessor functions with single read and write functions which take the size, and

Re: [Qemu-devel] [PATCH v6 23/77] target/mips: Add emulation of nanoMIPS 16-bit load and store instructions

2018-08-02 Thread Richard Henderson
On 08/02/2018 10:16 AM, Stefan Markovic wrote: > case NM_P16_LB: > +switch (extract32(ctx->opcode, 2, 2)) { > +case NM_LB16: > +offset = extract32(ctx->opcode, 0, 2); > +gen_ld(ctx, OPC_LB, rt, rs, offset); > +break; > +case NM_SB16:

Re: [Qemu-devel] [PATCH 1/3] hw/ppc/prep: Remove ifdeffed-out stub of XCSR code

2018-08-02 Thread Hervé Poussineau
Le 02/08/2018 à 16:44, Peter Maydell a écrit : The prep machine has some code which is stubs of accessors for XCSR registers. This has been disabled via #if 0 since commit b6b8bd1819ff in 2004, and doesn't have any actual interesting content. It also uses the deprecated old_mmio accessor

Re: [Qemu-devel] [PATCH v6 19/77] target/mips: Add emulation of nanoMIPS 16-bit arithmetic instructions

2018-08-02 Thread Richard Henderson
On 08/02/2018 10:16 AM, Stefan Markovic wrote: > From: Yongbok Kim > > Add emulation of nanoMIPS 16-bit arithmetic instructions. > > Signed-off-by: Yongbok Kim > Signed-off-by: Aleksandar Markovic > Signed-off-by: Stefan Markovic > --- > target/mips/translate.c | 125 >

Re: [Qemu-devel] [PATCH v5 45/76] target/mips: Implement emulation of nanoMIPS LLWP/SCWP pair

2018-08-02 Thread Richard Henderson
On 08/02/2018 08:29 AM, Aleksandar Markovic wrote: > Hi, Richard, > > We are going to remove obsoleted helpers, that was just an honest mistake > made in a rush. > > For unprotected access to gpr, we are going to insert if(reg1 != 0) in two > places. Be careful that you do not eliminate side

Re: [Qemu-devel] [PATCH 2/3] hw/ppc/ppc_boards: Don't use old_mmio for ref405ep_fpga

2018-08-02 Thread Philippe Mathieu-Daudé
On 08/02/2018 01:40 PM, Peter Maydell wrote: > On 2 August 2018 at 16:58, Philippe Mathieu-Daudé wrote: >> Hopefully this is a good case to show the bug I'm having with >> access_with_adjusted_size(). >> >> I agree with your change, so: >> Reviewed-by: Philippe Mathieu-Daudé >> >> However IMO

Re: [Qemu-devel] [PATCH 2/3] hw/ppc/ppc_boards: Don't use old_mmio for ref405ep_fpga

2018-08-02 Thread Peter Maydell
On 2 August 2018 at 16:58, Philippe Mathieu-Daudé wrote: > Hopefully this is a good case to show the bug I'm having with > access_with_adjusted_size(). > > I agree with your change, so: > Reviewed-by: Philippe Mathieu-Daudé > > However IMO little endian guest access is likely to fail. > > The

Re: [Qemu-devel] [PATCH 0/4] target/arm sve fixes

2018-08-02 Thread no-reply
Hi, This series seems to have some coding style problems. See output below for more information: Type: series Message-id: 20180801123111.3595-1-richard.hender...@linaro.org Subject: [Qemu-devel] [PATCH 0/4] target/arm sve fixes === TEST SCRIPT BEGIN === #!/bin/bash BASE=base n=1 total=$(git

[Qemu-devel] [Bug 1784900] Re: QEMU (frontend) crashes upon warm reboot with virtio-gpu device and vga=775 on Linux cmdline

2018-08-02 Thread Stefan Berger
On my system vga_draw_graphic is called with a surface_width(surface) = 1280, the next time surface_width(surface) = 1024, and then the next time again with surface_width(surface) = 1280. So it's a quick resolution change. Each time the surface pointer changes as well as surface_width(surface) and

Re: [Qemu-devel] [PATCH 1/2] hw/display/vga-isa-mm: Convert away from old_mmio

2018-08-02 Thread Philippe Mathieu-Daudé
On 08/02/2018 12:51 PM, Peter Maydell wrote: > Convert the vga-isa-mm device away from the old_mmio > MemoryRegion accessors. > > This device is only used by the MIPS 'jazz' boards > "magnum" and "pica61". > > Signed-off-by: Peter Maydell Reviewed-by: Philippe Mathieu-Daudé > --- >

Re: [Qemu-devel] [PATCH 1/3] hw/ppc/prep: Remove ifdeffed-out stub of XCSR code

2018-08-02 Thread Philippe Mathieu-Daudé
On 08/02/2018 12:54 PM, Peter Maydell wrote: > On 2 August 2018 at 16:45, Philippe Mathieu-Daudé wrote: >> While not directly use the harmless UnimplementedDevice? >> >>create_unimplemented_device("ppc-xcsr", 0xfeff, 0x1000); > > I preferred not to change the current behaviour for

Re: [Qemu-devel] [PATCH 3/3] hw/ppc/ppc405_uc: Convert away from old_mmio

2018-08-02 Thread Philippe Mathieu-Daudé
On 08/02/2018 11:44 AM, Peter Maydell wrote: > Convert the devices in ppc405_uc away from using the old_mmio > MemoryRegion accessors: > > * opba's 32-bit and 16-bit accessors were just calling the >8-bit accessors and assembling a big-endian order number, >which we can do by setting the

Re: [Qemu-devel] [PATCH v6 4/4] spapr: increase the size of the IRQ number space

2018-08-02 Thread Cédric Le Goater
On 08/02/2018 04:47 PM, Greg Kurz wrote: > On Mon, 30 Jul 2018 16:11:34 +0200 > Cédric Le Goater wrote: > >> The new layout using static IRQ number does not leave much space to >> the dynamic MSI range, only 0x100 IRQ numbers. Increase the total >> number of IRQS for newer machines and introduce

Re: [Qemu-devel] [PATCH 2/3] hw/ppc/ppc_boards: Don't use old_mmio for ref405ep_fpga

2018-08-02 Thread Philippe Mathieu-Daudé
Hi Peter, On 08/02/2018 11:44 AM, Peter Maydell wrote: > Switch the ref405ep_fpga device away from using the old_mmio > MemoryRegion accessors. > > Signed-off-by: Peter Maydell > --- > hw/ppc/ppc405_boards.c | 60 +++--- > 1 file changed, 10 insertions(+),

Re: [Qemu-devel] [PATCH 1/3] hw/ppc/prep: Remove ifdeffed-out stub of XCSR code

2018-08-02 Thread Peter Maydell
On 2 August 2018 at 16:45, Philippe Mathieu-Daudé wrote: > While not directly use the harmless UnimplementedDevice? > >create_unimplemented_device("ppc-xcsr", 0xfeff, 0x1000); I preferred not to change the current behaviour for this API conversion. If the PPC/prep maintainers would

[Qemu-devel] [PATCH 0/2] mips: convert devices away from old_mmio

2018-08-02 Thread Peter Maydell
These patches convert a couple of devices used only by MIPS boards from using the old_mmio MemoryRegionOps accessor functions. * vga-isa-mm: used by the MIPS 'jazz' boards "magnum" and "pica61" * bonito pci controller: used by the MIPS "fulong2e" board Tested only with "make check". thanks --

[Qemu-devel] [PATCH 2/2] hw/pci-host/bonito: Move away from old_mmio accessors

2018-08-02 Thread Peter Maydell
Move away from the old_mmio MemoryRegion accessors in the bonito pci controller. This device is used only in the MIPS "fulong2e" machine. Signed-off-by: Peter Maydell --- hw/pci-host/bonito.c | 145 +-- 1 file changed, 15 insertions(+), 130 deletions(-)

[Qemu-devel] [PATCH 1/2] hw/display/vga-isa-mm: Convert away from old_mmio

2018-08-02 Thread Peter Maydell
Convert the vga-isa-mm device away from the old_mmio MemoryRegion accessors. This device is only used by the MIPS 'jazz' boards "magnum" and "pica61". Signed-off-by: Peter Maydell --- hw/display/vga-isa-mm.c | 60 + 1 file changed, 13 insertions(+), 47

Re: [Qemu-devel] [PATCH v5] s390x: Enable KVM huge page backing support

2018-08-02 Thread David Hildenbrand
On 02.08.2018 09:02, Janosch Frank wrote: > QEMU has had huge page support for a longer time already, but KVM > memory management under s390x needed some changes to work with huge > backings. > > Now that we have support, let's enable it if requested and > available. Otherwise we now properly

Re: [Qemu-devel] [PATCH 1/3] hw/ppc/prep: Remove ifdeffed-out stub of XCSR code

2018-08-02 Thread Philippe Mathieu-Daudé
On 08/02/2018 11:44 AM, Peter Maydell wrote: > The prep machine has some code which is stubs of accessors > for XCSR registers. This has been disabled via #if 0 > since commit b6b8bd1819ff in 2004, and doesn't have any > actual interesting content. It also uses the deprecated > old_mmio accessor

Re: [Qemu-devel] [Qemu-arm] [PATCH 4/4] target/arm: Fix typo in helper_sve_movz_d

2018-08-02 Thread Philippe Mathieu-Daudé
On 08/01/2018 09:31 AM, Richard Henderson wrote: > Reported-by: Laurent Desnogues > Signed-off-by: Richard Henderson > --- > target/arm/sve_helper.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/target/arm/sve_helper.c b/target/arm/sve_helper.c > index

[Qemu-devel] [PATCH 1/4] qemu-iotests: Test removing a throttle group member with a pending timer

2018-08-02 Thread Alberto Garcia
A throttle group can have several members, and each one of them can have several pending requests in the queue. The requests are processed in a round-robin fashion, so the algorithm decides the drive that is going to run the next request and sets a timer in it. Once the timer fires and the

[Qemu-devel] [PATCH 2/4] throttle-groups: Skip the round-robin if a member is being drained

2018-08-02 Thread Alberto Garcia
In the throttling code after an I/O request has been completed the next one is selected from a different member using a round-robin algorithm. This ensures that all members get a chance to finish their pending I/O requests. However, if a group member has its I/O limits disabled (because it's

Re: [Qemu-devel] [PATCH v1] s390x/cpu_models: Add "-cpu max" support

2018-08-02 Thread Cornelia Huck
On Wed, 25 Jul 2018 11:12:33 +0200 David Hildenbrand wrote: > The "max" CPU model behaves like "-cpu host" when KVM is enabled, and like > a CPU with the maximum possible feature set when TCG is enabled. > > While the "host" model can not be used under TCG ("kvm_required"), the > "max" model

[Qemu-devel] [PATCH 3/4] qemu-iotests: Update 093 to improve the draining test

2018-08-02 Thread Alberto Garcia
The previous patch fixes a problem in which draining a block device with more than one throttled request can make it wait first for the completion of requests in other members of the same group. This patch updates test_remove_group_member() in iotest 093 to reproduce that scenario. This updated

[Qemu-devel] [PATCH 2/3] hw/ppc/ppc_boards: Don't use old_mmio for ref405ep_fpga

2018-08-02 Thread Peter Maydell
Switch the ref405ep_fpga device away from using the old_mmio MemoryRegion accessors. Signed-off-by: Peter Maydell --- hw/ppc/ppc405_boards.c | 60 +++--- 1 file changed, 10 insertions(+), 50 deletions(-) diff --git a/hw/ppc/ppc405_boards.c

[Qemu-devel] [PATCH 1/3] hw/ppc/prep: Remove ifdeffed-out stub of XCSR code

2018-08-02 Thread Peter Maydell
The prep machine has some code which is stubs of accessors for XCSR registers. This has been disabled via #if 0 since commit b6b8bd1819ff in 2004, and doesn't have any actual interesting content. It also uses the deprecated old_mmio accessor functions. Remove it entirely. Signed-off-by: Peter

[Qemu-devel] [PATCH 0/4] throttle: Race condition fixes and test cases

2018-08-02 Thread Alberto Garcia
Hi all, here are the patches that I promised yesterday. I was originally thinking to propose this for the v3.0 release, but after debugging and fixing the problem I think that it's not essential (details below). The important patch is the second one. The first and the third are just test cases

[Qemu-devel] [PATCH 2/4] nbd/server: Advertise actual minimum block size

2018-08-02 Thread Eric Blake
Both NBD_CMD_BLOCK_STATUS and structured NBD_CMD_READ will split their reply according to bdrv_block_status() boundaries. If the block device has a request_alignment smaller than 512, but we advertise a block alignment of 512 to the client, then this can result in the server reply violating client

[Qemu-devel] [PATCH 3/4] iotests: Add 228 to test NBD on unaligned images

2018-08-02 Thread Eric Blake
Add a test for the NBD server fix in the previous patch. In short, when serving a raw POSIX file that is not aligned to sector boundaries, qemu must not split a structured read or block status result any smaller than the block size that it advertised to the client; since qemu as client rejects

[Qemu-devel] [PATCH 4/4] throttle-groups: Don't allow timers without throttled requests

2018-08-02 Thread Alberto Garcia
Commit 6fccbb475bc6effc313ee9481726a1748b6dae57 fixed a bug caused by QEMU attempting to remove a throttle group member with no pending requests but an active timer set. This was the result of a previous bdrv_drained_begin() call processing the throttled requests but leaving the timer untouched.

[Qemu-devel] [PATCH 0/4 for-3.0?] NBD fixes for unaligned images

2018-08-02 Thread Eric Blake
Rich reported a bug when using qemu as client to nbdkit serving a non-sector-aligned image; in turn, I found a second bug with qemu as server of such an image. Both bugs were present in 2.12, and thus are not new regressions in 3.0. If there is a reason to spin -rc4, then these could be included;

[Qemu-devel] [PATCH 1/4] block: Add bdrv_get_request_alignment()

2018-08-02 Thread Eric Blake
The next patch needs access to a device's minimum permitted alignment, since NBD wants to advertise this to clients. Add an accessor function, borrowing from blk_get_max_transfer() for accessing a backend's block limits. Signed-off-by: Eric Blake --- include/sysemu/block-backend.h | 1 +

[Qemu-devel] [PATCH 4/4] nbd/client: Deal with unaligned size from server

2018-08-02 Thread Eric Blake
When a server advertises an unaligned size but no block sizes, the code was rounding up to a sector-aligned size (a known limitation of bdrv_getlength()), then assuming a request_alignment of 512 (the recommendation of the NBD spec for maximum portability). However, this means that qemu will

[Qemu-devel] [PATCH v6 77/77] linux-user: Add nanoMIPS support in scripts/qemu-binfmt-conf.sh

2018-08-02 Thread Stefan Markovic
From: Aleksandar Rikalo Add support for nanomips[eb] variant in scripts/qemu-binfmt-conf.sh. Signed-off-by: Aleksandar Markovic Signed-off-by: Stefan Markovic --- scripts/qemu-binfmt-conf.sh | 12 ++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git

Re: [Qemu-devel] [PATCH v6 4/4] spapr: increase the size of the IRQ number space

2018-08-02 Thread Greg Kurz
On Mon, 30 Jul 2018 16:11:34 +0200 Cédric Le Goater wrote: > The new layout using static IRQ number does not leave much space to > the dynamic MSI range, only 0x100 IRQ numbers. Increase the total > number of IRQS for newer machines and introduce a legacy XICS backend > for pre-3.1 machines to

[Qemu-devel] [PATCH v6 75/77] linux-user: Add support for statx() syscall for all platforms

2018-08-02 Thread Stefan Markovic
From: Aleksandar Rikalo Implement support for syscall statx(). The implementation is based on invoking other (more mature) syscalls (from the same 'stat' family) on the host side. This way, problems of availability of statx() on the host are avoided. Signed-off-by: Aleksandar Markovic

[Qemu-devel] [PATCH 0/3] hw/ppc: Convert various devices away from old_mmio

2018-08-02 Thread Peter Maydell
This patchset removes various uses of old_mmio from minor PPC devices: * hw/ppc/prep had an entirely ifdeffed-out stub of an XCSR device, which we remove * hw/ppc/ppc_boards had ref405ep_fpga * hw/ppc/ppc405_uc had three minor devices As you can see from the diffstat, the new API provides

[Qemu-devel] [PATCH v6 76/77] linux-user: Add nanoMIPS linux user mode configuration support

2018-08-02 Thread Stefan Markovic
From: Stefan Markovic Add new linux user mode configuration for nanoMIPS. Signed-off-by: Aleksandar Rikalo Signed-off-by: Aleksandar Markovic Signed-off-by: Stefan Markovic --- configure | 13 - default-configs/nanomips-linux-user.mak | 1 + 2

[Qemu-devel] [PATCH v6 73/77] linux-user: Add cpu_loop.c for nanoMIPS

2018-08-02 Thread Stefan Markovic
From: Dimitrije Nikolic Amend regular MIPS' cpu_loop.c to include nanoMIPS support. Signed-off-by: Aleksandar Rikalo Signed-off-by: Aleksandar Markovic Signed-off-by: Stefan Markovic --- linux-user/mips/cpu_loop.c | 8 +++- linux-user/nanomips/cpu_loop.c | 1 + 2 files changed, 8

[Qemu-devel] [PATCH v6 72/77] linux-user: Add support for nanoMIPS signal trampoline

2018-08-02 Thread Stefan Markovic
From: Aleksandar Rikalo Add signal trampoline support for nanoMIPS. Signed-off-by: Aleksandar Rikalo Signed-off-by: Aleksandar Markovic Signed-off-by: Stefan Markovic --- linux-user/mips/signal.c | 13 - 1 file changed, 12 insertions(+), 1 deletion(-) diff --git

[Qemu-devel] [PATCH 3/3] hw/ppc/ppc405_uc: Convert away from old_mmio

2018-08-02 Thread Peter Maydell
Convert the devices in ppc405_uc away from using the old_mmio MemoryRegion accessors: * opba's 32-bit and 16-bit accessors were just calling the 8-bit accessors and assembling a big-endian order number, which we can do by setting the .impl.max_access_size to 1 and the endianness to

[Qemu-devel] [PATCH v6 74/77] linux-user: Amend support for sigaction() syscall for nanoMIPS

2018-08-02 Thread Stefan Markovic
From: Aleksandar Rikalo Amend sigaction syscall support for nanoMIPS. This must be done since nanoMIPS' signal handling is different than MIPS' signal handling. Signed-off-by: Aleksandar Rikalo Signed-off-by: Aleksandar Markovic Signed-off-by: Stefan Markovic --- linux-user/syscall.c | 2 +-

[Qemu-devel] [PATCH v6 67/77] linux-user: Add target_syscall.h header for nanoMIPS

2018-08-02 Thread Stefan Markovic
From: Aleksandar Rikalo Add target_syscall.h header for nanoMIPS. Signed-off-by: Aleksandar Rikalo Signed-off-by: Aleksandar Markovic Signed-off-by: Stefan Markovic --- linux-user/nanomips/target_syscall.h | 30 ++ 1 file changed, 30 insertions(+) create mode

[Qemu-devel] [PATCH v6 69/77] linux-user: Add target_structs.h header for nanoMIPS

2018-08-02 Thread Stefan Markovic
From: Dimitrije Nikolic Add target_structs.h header for nanoMIPS, that in fact only redirects to the corresponding MIPS header. Signed-off-by: Aleksandar Rikalo Signed-off-by: Aleksandar Markovic Signed-off-by: Stefan Markovic --- linux-user/nanomips/target_structs.h | 1 + 1 file changed,

[Qemu-devel] [PATCH v6 70/77] linux-user: Add target_elf.h header for nanoMIPS

2018-08-02 Thread Stefan Markovic
From: Dimitrije Nikolic This header includes common elf header, and adds cpu_get_model() function. Signed-off-by: Aleksandar Rikalo Signed-off-by: Aleksandar Markovic Signed-off-by: Stefan Markovic --- linux-user/nanomips/target_elf.h | 14 ++ 1 file changed, 14 insertions(+)

[Qemu-devel] [PATCH v6 71/77] linux-user: Add signal.c for nanoMIPS

2018-08-02 Thread Stefan Markovic
From: Dimitrije Nikolic Add signal.c as a redirection to regular mips' signal.c, but at the same time amend regular mips' signal.c with bits and pieces specific for nanoMIPS. This was done this way to avoid duplication of large pieces of code. Signed-off-by: Aleksandar Rikalo Signed-off-by:

[Qemu-devel] [PATCH v6 66/77] linux-user: Add sockbits.h header for nanoMIPS

2018-08-02 Thread Stefan Markovic
From: Aleksandar Rikalo Add sockbits.h header for nanoMIPS. Signed-off-by: Aleksandar Rikalo Signed-off-by: Aleksandar Markovic Signed-off-by: Stefan Markovic --- linux-user/nanomips/sockbits.h | 1 + 1 file changed, 1 insertion(+) create mode 100644 linux-user/nanomips/sockbits.h diff

[Qemu-devel] [PATCH v6 64/77] linux-user: Update syscall_defs.h header for nanoMIPS

2018-08-02 Thread Stefan Markovic
From: Aleksandar Markovic Update constants and structures related to linux user syscall support in nanoMIPS. Signed-off-by: Aleksandar Rikalo Signed-off-by: Aleksandar Markovic Signed-off-by: Stefan Markovic --- linux-user/syscall_defs.h | 57 ++-

[Qemu-devel] [PATCH v6 68/77] linux-user: Add target_cpu.h header for nanoMIPS

2018-08-02 Thread Stefan Markovic
From: Dimitrije Nikolic Add target_cpu.h header for nanoMIPS. Signed-off-by: Aleksandar Rikalo Signed-off-by: Aleksandar Markovic Signed-off-by: Stefan Markovic --- linux-user/nanomips/target_cpu.h | 21 + 1 file changed, 21 insertions(+) create mode 100644

[Qemu-devel] [PATCH v6 63/77] linux-user: Add termbits.h header for nanoMIPS

2018-08-02 Thread Stefan Markovic
From: Aleksandar Rikalo Add termbits.h header for nanoMIPS. Reuse MIPS' termbits.h as the functionalities are almost identical. Signed-off-by: Aleksandar Rikalo Signed-off-by: Aleksandar Markovic Signed-off-by: Stefan Markovic --- linux-user/mips/termbits.h | 4

[Qemu-devel] [PATCH v6 65/77] linux-user: Add target_fcntl.h header for nanoMIPS

2018-08-02 Thread Stefan Markovic
From: Aleksandar Rikalo Add fcntl-related constants and structures for nanoMIPS. Signed-off-by: Aleksandar Rikalo Signed-off-by: Aleksandar Markovic Signed-off-by: Stefan Markovic --- linux-user/nanomips/target_fcntl.h | 38 ++ 1 file changed, 38

[Qemu-devel] [PATCH v6 61/77] linux-user: Add syscall numbers for nanoMIPS

2018-08-02 Thread Stefan Markovic
From: Aleksandar Rikalo Add syscall numbers for nanoMIPS. nanoMIPS redefines its ABI compared to preceding MIPS architectures, and its set of supported system calls is significantly different. Signed-off-by: Aleksandar Rikalo Signed-off-by: Aleksandar Markovic Signed-off-by: Stefan Markovic

[Qemu-devel] [PATCH v6 62/77] linux-user: Add target_signal.h header for nanoMIPS

2018-08-02 Thread Stefan Markovic
From: Aleksandar Rikalo nanoMIPS signal handling is much closer to the signal handling in other mainstream platforms than to the signal handling in preceding MIPS platforms. Signed-off-by: Aleksandar Rikalo Signed-off-by: Aleksandar Markovic Signed-off-by: Stefan Markovic ---

[Qemu-devel] [PATCH v6 59/77] gdbstub: Add XML support for GDB for nanoMIPS

2018-08-02 Thread Stefan Markovic
From: Stefan Markovic Add XML support files for GDB for nanoMIPS. Signed-off-by: Aleksandar Markovic Signed-off-by: Stefan Markovic --- MAINTAINERS| 3 ++- gdb-xml/nanomips-cp0.xml | 13 + gdb-xml/nanomips-cpu.xml | 44

[Qemu-devel] [PATCH v6 58/77] gdbstub: Disable handling of nanoMIPS ISA bit in the MIPS gdbstub

2018-08-02 Thread Stefan Markovic
From: James Hogan nanoMIPS has no ISA bit in the PC, so remove the handling of the low bit of the PC in the MIPS gdbstub for nanoMIPS. This prevents the PC being read as e.g. 0xbfc1, and prevents writing to the PC clearing MIPS_HFLAG_M16. Signed-off-by: James Hogan Signed-off-by: Yongbok

[Qemu-devel] [PATCH v6 60/77] target/mips: Add definition of nanoMIPS I7200 CPU

2018-08-02 Thread Stefan Markovic
From: Stefan Markovic Add definition of the first nanoMIPS processor in QEMU. Signed-off-by: Yongbok Kim Signed-off-by: Aleksandar Markovic Signed-off-by: Stefan Markovic --- target/mips/translate_init.inc.c | 39 +++ 1 file changed, 39 insertions(+)

[Qemu-devel] [PATCH v6 43/77] target/mips: Add emulation of DSP ASE for nanoMIPS - part 6

2018-08-02 Thread Stefan Markovic
From: Stefan Markovic Add emulation of DSP ASE instructions for nanoMIPS - part 6. Signed-off-by: Aleksandar Markovic Signed-off-by: Stefan Markovic --- target/mips/translate.c | 64 + 1 file changed, 64 insertions(+) diff --git

[Qemu-devel] [PATCH v6 47/77] target/mips: Implement CP0 Config1.WR bit functionality

2018-08-02 Thread Stefan Markovic
From: Stefan Markovic Add testing Config1.WR bit into watch exception handling logic. Signed-off-by: Aleksandar Markovic Signed-off-by: Stefan Markovic --- target/mips/helper.c| 1 + target/mips/translate.c | 8 2 files changed, 9 insertions(+) diff --git a/target/mips/helper.c

[Qemu-devel] [PATCH v6 57/77] mips_malta: Fix semihosting argument passing for nanoMIPS bare metal

2018-08-02 Thread Stefan Markovic
From: Stefan Markovic Signed-off-by: Yongbok Kim Signed-off-by: Aleksandar Markovic Signed-off-by: Stefan Markovic --- hw/mips/mips_malta.c | 7 ++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/hw/mips/mips_malta.c b/hw/mips/mips_malta.c index d1a7c1f..8bb1686 100644 ---

[Qemu-devel] [PATCH v6 56/77] mips_malta: Setup GT64120 BARs in nanoMIPS bootloader

2018-08-02 Thread Stefan Markovic
From: Paul Burton Setup the GT64120 BARs in the nanoMIPS bootloader, in the same way that they are setup in the MIPS32 bootloader. This is necessary for Linux to be able to access peripherals, including the UART. Signed-off-by: Paul Burton Signed-off-by: Yongbok Kim Signed-off-by: Aleksandar

[Qemu-devel] [PATCH v6 42/77] target/mips: Add emulation of DSP ASE for nanoMIPS - part 5

2018-08-02 Thread Stefan Markovic
From: Stefan Markovic Add emulation of DSP ASE instructions for nanoMIPS - part 5. Signed-off-by: Aleksandar Markovic Signed-off-by: Stefan Markovic --- target/mips/translate.c | 159 1 file changed, 159 insertions(+) diff --git

  1   2   >