[Qemu-devel] [PATCH V5 1/5] pci/shpc: Move function to generic header file

2018-01-07 Thread Marcel Apfelbaum
From: Yuval Shaia This function should be declared in generic header file so we can utilize it. Signed-off-by: Yuval Shaia Signed-off-by: Marcel Apfelbaum --- hw/pci/shpc.c | 13 ++--- include/qemu/host-utils.h | 10 ++ 2 files changed, 12 insertions(+), 11 deletio

[Qemu-devel] [PATCH V5 3/5] docs: add pvrdma device documentation.

2018-01-07 Thread Marcel Apfelbaum
Signed-off-by: Marcel Apfelbaum Signed-off-by: Yuval Shaia Reviewed-by: Shamir Rabinovitch --- docs/pvrdma.txt | 254 1 file changed, 254 insertions(+) create mode 100644 docs/pvrdma.txt diff --git a/docs/pvrdma.txt b/docs/pvrdma.txt ne

[Qemu-devel] [PATCH V5 2/5] mem: add share parameter to memory-backend-ram

2018-01-07 Thread Marcel Apfelbaum
Currently only file backed memory backend can be created with a "share" flag in order to allow sharing guest RAM with other processes in the host. Add the "share" flag also to RAM Memory Backend in order to allow remapping parts of the guest RAM to different host virtual addresses. This is needed

[Qemu-devel] [PATCH V5 5/5] MAINTAINERS: add entry for hw/rdma

2018-01-07 Thread Marcel Apfelbaum
Signed-off-by: Marcel Apfelbaum Signed-off-by: Yuval Shaia --- MAINTAINERS | 8 1 file changed, 8 insertions(+) diff --git a/MAINTAINERS b/MAINTAINERS index 73a735..256a284753 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -1979,6 +1979,14 @@ F: block/replication.c F: tests/test-re

[Qemu-devel] [PATCH V5 0/5] hw/pvrdma: PVRDMA device implementation

2018-01-07 Thread Marcel Apfelbaum
V4 -> V5: - Fixed (at least tried to) compilation issues V3 -> V4: - Fixed documentation (added more impl details) - Fixed compilation errors discovered by patchew. - Addressed Michael S. Tsirkin comments: - Removed unnecessary typedefs and replace them with macros in VMware header fil

[Qemu-devel] [Bug 1741718] [NEW] qemu-system-sparc64: "panic[cpu0]/thread=180e000: lgrp_traverse: No memory blocks found" with tribblix-sparc-0m16.iso

2018-01-07 Thread Michal Nowak
Public bug reported: qemu-system-sparc64 Niagara VM running Tribblix crashes with "panic[cpu0]/thread=180e000: lgrp_traverse: No memory blocks found" on QEMU 2.11.0. Happens also with 1 GB, 4 GB, and 8 GB of RAM. $ qemu-system-sparc64 -nographic -M niagara -L /home/newman/Downloads/OpenSPARCT1_A

[Qemu-devel] [PATCH 0/1] input-linux: provide hotkeys for evdev toggle

2018-01-07 Thread byxk
Hi QEMU, This patch allows one to pass either one or both of --evdev-lhotkey {keycode} and --evdev-rhotkey {keycode} to change the default key combo to toggle evdev grab. I had trouble figuring out where to set defaults (LCTRL + RCTRL), so ended up setting it directly. This is my first patch ev

[Qemu-devel] [PATCH 1/1] input-linux: provide hotkeys for evdev toggle

2018-01-07 Thread byxk
--- include/ui/input.h | 3 +++ qemu-options.hx| 13 + ui/input-linux.c | 4 ++-- vl.c | 8 4 files changed, 26 insertions(+), 2 deletions(-) diff --git a/include/ui/input.h b/include/ui/input.h index 5cc76d6e41..94b1468159 100644 --- a/include/ui/input

Re: [Qemu-devel] [PATCH 0/1] input-linux: provide hotkeys for evdev toggle

2018-01-07 Thread no-reply
Hi, This series seems to have some coding style problems. See output below for more information: Type: series Message-id: 20180107111341.8879-1-patrickt...@gmail.com Subject: [Qemu-devel] [PATCH 0/1] input-linux: provide hotkeys for evdev toggle === TEST SCRIPT BEGIN === #!/bin/bash BASE=base n

Re: [Qemu-devel] [PATCH 0/1] input-linux: provide hotkeys for evdev toggle

2018-01-07 Thread Patrick Tseng
Please disregard this patch, I'll have another one ready and actually isolated to input-linux. On Sun, Jan 7, 2018 at 3:31 AM, wrote: > Hi, > > This series seems to have some coding style problems. See output below for > more information: > > Type: series > Message-id: 20180107111341.8879-1-patr

[Qemu-devel] [PATCH V6 1/5] pci/shpc: Move function to generic header file

2018-01-07 Thread Marcel Apfelbaum
From: Yuval Shaia This function should be declared in generic header file so we can utilize it. Signed-off-by: Yuval Shaia Signed-off-by: Marcel Apfelbaum --- hw/pci/shpc.c | 13 ++--- include/qemu/host-utils.h | 10 ++ 2 files changed, 12 insertions(+), 11 deletio

[Qemu-devel] [PATCH V6 0/5] hw/pvrdma: PVRDMA device implementation

2018-01-07 Thread Marcel Apfelbaum
V5 -> V6: - Found a ppc machine and solved ppc compilation issues - Tried to fix the s390x issue (still looking of a machine) V4 -> V5: - Fixed (at least tried to) compilation issues V3 -> V4: - Fixed documentation (added more impl details) - Fixed compilation errors discovered by patchew.

[Qemu-devel] [PATCH V6 5/5] MAINTAINERS: add entry for hw/rdma

2018-01-07 Thread Marcel Apfelbaum
Signed-off-by: Marcel Apfelbaum Signed-off-by: Yuval Shaia --- MAINTAINERS | 8 1 file changed, 8 insertions(+) diff --git a/MAINTAINERS b/MAINTAINERS index 73a735..256a284753 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -1979,6 +1979,14 @@ F: block/replication.c F: tests/test-re

[Qemu-devel] [PATCH V6 3/5] docs: add pvrdma device documentation.

2018-01-07 Thread Marcel Apfelbaum
Signed-off-by: Marcel Apfelbaum Signed-off-by: Yuval Shaia Reviewed-by: Shamir Rabinovitch --- docs/pvrdma.txt | 254 1 file changed, 254 insertions(+) create mode 100644 docs/pvrdma.txt diff --git a/docs/pvrdma.txt b/docs/pvrdma.txt ne

[Qemu-devel] [PATCH V6 2/5] mem: add share parameter to memory-backend-ram

2018-01-07 Thread Marcel Apfelbaum
Currently only file backed memory backend can be created with a "share" flag in order to allow sharing guest RAM with other processes in the host. Add the "share" flag also to RAM Memory Backend in order to allow remapping parts of the guest RAM to different host virtual addresses. This is needed

Re: [Qemu-devel] [PATCH v2] linux-user/mmap.c: Avoid choosing NULL as start address

2018-01-07 Thread Laurent Vivier
Le 07/01/2018 à 02:01, Maximilian Riemensberger a écrit : > mmap() is required by the linux kernel ABI and POSIX to return a > non-NULL address when the implementation chooses a start address for the > mapping. > > The current implementation of mmap_find_vma_reserved() can return NULL > as start a

Re: [Qemu-devel] [PATCH RESEND V3 10/16] qmp event: Add COLO_EXIT event to notify users while exited COLO

2018-01-07 Thread Zhang Chen
On Thu, Jan 4, 2018 at 5:10 PM, Eric Blake wrote: > On 01/04/2018 12:01 AM, Zhang Chen wrote: > > From: zhanghailiang > > > > If some errors happen during VM's COLO FT stage, it's important to > > notify the users of this event. Together with 'x_colo_lost_heartbeat', > > Isn't that spelled x-col

Re: [Qemu-devel] [PATCH V6 1/5] pci/shpc: Move function to generic header file

2018-01-07 Thread Philippe Mathieu-Daudé
Hi Marcel, On 01/07/2018 09:32 AM, Marcel Apfelbaum wrote: > From: Yuval Shaia > > This function should be declared in generic header file so we can > utilize it. > > Signed-off-by: Yuval Shaia > Signed-off-by: Marcel Apfelbaum > --- > hw/pci/shpc.c | 13 ++--- > include/

Re: [Qemu-devel] Building QEMU natively from ARM CPU statically

2018-01-07 Thread Peter Maydell
On 7 January 2018 at 06:55, wrote: > Hi, > > I'm trying to build QEMU statically from ARM CPU (without cross-compiling). > But at "configure" step I have the following issue : > > ERROR: User requested feature sdl > configure was not able to find it. > Install SDL devel > However, from config.

Re: [Qemu-devel] [PATCH V6 1/5] pci/shpc: Move function to generic header file

2018-01-07 Thread Marcel Apfelbaum
On 07/01/2018 15:47, Philippe Mathieu-Daudé wrote: Hi Marcel, Hi Philippe, On 01/07/2018 09:32 AM, Marcel Apfelbaum wrote: From: Yuval Shaia This function should be declared in generic header file so we can utilize it. Signed-off-by: Yuval Shaia Signed-off-by: Marcel Apfelbaum --- hw

Re: [Qemu-devel] Building QEMU natively from ARM CPU statically

2018-01-07 Thread shiftag
January 7, 2018 6:30 PM, "Peter Maydell" wrote: > On 7 January 2018 at 06:55, wrote: > >> Hi, >> >> I'm trying to build QEMU statically from ARM CPU (without cross-compiling). >> But at "configure" step >> I have the following issue : >> >> ERROR: User requested feature sdl >> configure was

[Qemu-devel] [PATCH 1/2] Add save-snapshot, load-snapshot and delete-snapshot to QAPI

2018-01-07 Thread Richard Palethorpe
Add QAPI wrapper functions for the existing snapshot functionality. These functions behave the same way as the HMP savevm, loadvm and delvm commands. This will allow applications, such as OpenQA, to programmatically revert the VM to a previous state with no dependence on HMP or qemu-img. I used th

[Qemu-devel] [PATCH 2/2] Add test cases for saving, loading and deleting snapshots using QAPI

2018-01-07 Thread Richard Palethorpe
Signed-off-by: Richard Palethorpe --- tests/.gitignore | 1 + tests/Makefile.include | 2 ++ tests/test-snapshot.c | 93 ++ 3 files changed, 96 insertions(+) create mode 100644 tests/test-snapshot.c diff --git a/tests/.gitignore b/tests/.

Re: [Qemu-devel] [PATCH v4 15/16] piix4: rename PIIX4 object to piix4-isa

2018-01-07 Thread Philippe Mathieu-Daudé
On 01/06/2018 12:37 PM, Hervé Poussineau wrote: > Other piix4 parts are already named piix4-ide and piix4-usb-uhci. > > Reviewed-by: Philippe Mathieu-Daudé > Acked-by: Michael S. Tsirkin > Acked-by: Paolo Bonzini > Signed-off-by: Hervé Poussineau > --- > hw/isa/piix4.c | 1 - > hw/mips/

Re: [Qemu-devel] [PATCH v4 10/16] piix4: add a i8042 keyboard/mouse controller as specified in datasheet

2018-01-07 Thread Philippe Mathieu-Daudé
Hi Hervé, On 01/06/2018 12:37 PM, Hervé Poussineau wrote: > Remove i8042 instanciated in malta board, to not have it twice. Even if this works, I'm not 100% sure this is correct, since the Malta board uses the i8042 from the FDC37M817 superio, not from the PIIX4E southbridge. I think the problem

Re: [Qemu-devel] [PATCH v4 11/16] piix4: add a floppy controller, 1 parallel port and 2 serial ports

2018-01-07 Thread Philippe Mathieu-Daudé
On 01/06/2018 12:37 PM, Hervé Poussineau wrote: > Remove their instanciation from malta board, to not have them twice. > Automatically create serial/parallel ports in PIIX4 if not provided. > > Acked-by: Michael S. Tsirkin > Acked-by: Paolo Bonzini > Signed-off-by: Hervé Poussineau > --- > hw/

[Qemu-devel] [Bug 1740887] Re: qemu-system-arm & qemu-system-aarch64 for windows crash at start

2018-01-07 Thread Raphael
I've got th exact same crash under Windows 10 64 bits with QEMU emulator version 2.10.95 (v2.11.0-rc5-11692-g50cdacc703-dirty) Any idea how to fix it or is there a previous known working version for "-M raspi" option? Thanks. Raphaël. -- You received this bug notification because you are a memb

[Qemu-devel] [Bug 1740887] Re: qemu-system-arm & qemu-system-aarch64 for windows crash at start

2018-01-07 Thread Raphael
I had to switch back to the following installer "2016-03-03: New QEMU installers. Fixed, first version with support for Raspberry Pi 1 and 2." for having a working version with the "-M raspi" option. -- You received this bug notification because you are a member of qemu- devel-ml, which is subscr

Re: [Qemu-devel] [PATCH v2] scripts/make-release: Don't archive .git files

2018-01-07 Thread Thomas Huth
On 06.01.2018 22:56, Cole Robinson wrote: > As was last done in 379e21c25, we don't want .git files for > submodules here, which we aren't presently doing for capstone and > keycodemapdb. > > Rather than delete the offending files before archiving, ask tar > to --exclude=.git > > Signed-off-by: C

[Qemu-devel] [PATCH 1/1] input-linux: provide hotkeys for evdev toggle

2018-01-07 Thread byxk
--- ui/input-linux.c | 77 ++-- 1 file changed, 75 insertions(+), 2 deletions(-) diff --git a/ui/input-linux.c b/ui/input-linux.c index 9720333b2c..a553d2b4cc 100644 --- a/ui/input-linux.c +++ b/ui/input-linux.c @@ -5,6 +5,7 @@ */ #include

[Qemu-devel] [PATCH v2 0/1] input-linux: provide hotkeys for evdev toggle

2018-01-07 Thread byxk
Added some functionality to change the key combo for evdev toggle. example: -object input-linux,rhotkey=29,lhotkey=56,evdev=[etc...] Set the defaults to LCTRL and RCTRL if not provided. This is my first patch to anything so feedback/help appreciated! byxk (1): input-linux: provide hotkeys for

[Qemu-devel] Auto-install guests

2018-01-07 Thread microsoft gaofei
https://www.virtualbox.org/ticket/5810 VirtualBox has a new feature to auto-install guest OSes . Could you develop such a feature to improve QEMU ?

Re: [Qemu-devel] [Bug 1717708] Re: QEMU aarch64 can't run Windows ARM64 iso's

2018-01-07 Thread oscarbg
@Andrew can you upload these three drivers somewhere for the lazy people? thanks.. 2017-11-21 0:11 GMT+01:00 Andrew Baumann : > @Laszlo, I got the binaries from someone else, but they from a parallel > build system... nothing particularly special: some preprocessor rules to > build against the ne

Re: [Qemu-devel] [PATCH v4 10/16] piix4: add a i8042 keyboard/mouse controller as specified in datasheet

2018-01-07 Thread Philippe Mathieu-Daudé
Hi Hervé, > Even if this works, I'm not 100% sure this is correct, since the Malta > board uses the i8042 from the FDC37M817 superio, not from the PIIX4E > southbridge. I checked the datasheet and indeed the PIIX4 is a PCI-ISA bridge but doesn't provide slow devices such serial/parallel/floppy.

Re: [Qemu-devel] [PATCH v4 00/16] piix4: cleanup and improvements

2018-01-07 Thread Philippe Mathieu-Daudé
Hi Hervé, On 01/06/2018 12:37 PM, Hervé Poussineau wrote: > Hi, > > This patchset is a cleanup of the PIIX4 PCI-ISA bridge. Lots of devices > are moved from MIPS Malta board (which has a PIIX4) to PIIX4, where devices > belong. This lets us reuse PIIX4 in other machines, while not loosing any > f

[Qemu-devel] [PATCH 01/29] hw/acpi: add mem/nvdimm.h dependency

2018-01-07 Thread Philippe Mathieu-Daudé
Signed-off-by: Philippe Mathieu-Daudé --- hw/acpi/ich9.c | 1 + hw/acpi/piix4.c | 1 + 2 files changed, 2 insertions(+) diff --git a/hw/acpi/ich9.c b/hw/acpi/ich9.c index c5d8646abc..26aa87fa1a 100644 --- a/hw/acpi/ich9.c +++ b/hw/acpi/ich9.c @@ -37,6 +37,7 @@ #include "hw/i386/ich9.h" #inc

[Qemu-devel] [PATCH 02/29] pci/pci_host: move generic definitions out of i386/pc.h

2018-01-07 Thread Philippe Mathieu-Daudé
Signed-off-by: Philippe Mathieu-Daudé --- include/hw/i386/pc.h | 9 - include/hw/pci/pci_host.h | 8 2 files changed, 8 insertions(+), 9 deletions(-) diff --git a/include/hw/i386/pc.h b/include/hw/i386/pc.h index 6f77eb0665..780fa049d7 100644 --- a/include/hw/i386/pc.h +++

[Qemu-devel] [PATCH 08/29] hw/mips/fulong2e: use isa_superio_init()

2018-01-07 Thread Philippe Mathieu-Daudé
Signed-off-by: Philippe Mathieu-Daudé --- hw/mips/mips_fulong2e.c | 11 ++- 1 file changed, 2 insertions(+), 9 deletions(-) diff --git a/hw/mips/mips_fulong2e.c b/hw/mips/mips_fulong2e.c index 8660d078c8..2f4cc5d05e 100644 --- a/hw/mips/mips_fulong2e.c +++ b/hw/mips/mips_fulong2e.c @@ -2

[Qemu-devel] [PATCH 09/29] hw/mips/malta: code movement

2018-01-07 Thread Philippe Mathieu-Daudé
Signed-off-by: Philippe Mathieu-Daudé --- hw/mips/mips_malta.c | 14 +++--- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/hw/mips/mips_malta.c b/hw/mips/mips_malta.c index 28cc37ee08..195d7dd59e 100644 --- a/hw/mips/mips_malta.c +++ b/hw/mips/mips_malta.c @@ -1063,10 +1063

[Qemu-devel] [RFC PATCH 00/29] remove i386/pc dependency: generic SuperIO, PIIX cleanup

2018-01-07 Thread Philippe Mathieu-Daudé
Hi, This series could be the 'part 2' of my previous "remove i386/pc dependency from non-PC world" I started around 2.9. As Hervé sent a PIIX4 series [1], I awoke this old branch to reduce duplicated effort and added Hervé patches. Hervé: what is missing from your series is the 'user_creatable'

[Qemu-devel] [PATCH 11/29] mc146818rtc: always register rtc to rtc list

2018-01-07 Thread Philippe Mathieu-Daudé
From: Hervé Poussineau We are not required anymore to use rtc_init() function. Acked-by: Michael S. Tsirkin Acked-by: Paolo Bonzini Signed-off-by: Hervé Poussineau --- hw/timer/mc146818rtc.c | 6 +- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/hw/timer/mc146818rtc.c b/hw/

[Qemu-devel] [PATCH 03/29] hw/isa: extract parallel-isa specific code

2018-01-07 Thread Philippe Mathieu-Daudé
Signed-off-by: Philippe Mathieu-Daudé --- include/hw/char/parallel.h | 14 ++ include/hw/i386/pc.h | 8 hw/char/parallel-isa.c | 29 + hw/char/parallel.c | 2 +- hw/i386/pc.c | 1 + hw/isa/isa-bus.c | 26

[Qemu-devel] [PATCH 18/29] piix4: add a i8257 dma controller as specified in datasheet

2018-01-07 Thread Philippe Mathieu-Daudé
From: Hervé Poussineau Remove i8257 instanciated in malta board, to not have it twice. Signed-off-by: Hervé Poussineau [PMD: rebased] Signed-off-by: Philippe Mathieu-Daudé --- hw/isa/piix4.c | 4 hw/mips/mips_malta.c | 2 -- 2 files changed, 4 insertions(+), 2 deletions(-) diff --

[Qemu-devel] [PATCH 04/29] hw/dma/i8257: rename DMA_init() to i8257_dma_init()

2018-01-07 Thread Philippe Mathieu-Daudé
- move the header from hw/isa/ to hw/dma/ - remove the old i386/pc dependency Signed-off-by: Philippe Mathieu-Daudé --- include/hw/{isa => dma}/i8257.h | 6 ++ include/hw/isa/isa.h| 2 -- hw/dma/i82374.c | 3 ++- hw/dma/i8257.c | 4 ++-- hw/i386/p

[Qemu-devel] [PATCH 22/29] piix3: extract piix3_init() from i440fx_init()

2018-01-07 Thread Philippe Mathieu-Daudé
Signed-off-by: Philippe Mathieu-Daudé --- include/hw/southbridge/i82371_piix.h | 4 +++ hw/pci-host/piix.c | 62 2 files changed, 38 insertions(+), 28 deletions(-) diff --git a/include/hw/southbridge/i82371_piix.h b/include/hw/southbridge/

[Qemu-devel] [PATCH 13/29] piix4: convert reset function to QOM

2018-01-07 Thread Philippe Mathieu-Daudé
From: Hervé Poussineau Acked-by: Michael S. Tsirkin Acked-by: Paolo Bonzini Signed-off-by: Hervé Poussineau --- hw/isa/piix4.c | 8 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/hw/isa/piix4.c b/hw/isa/piix4.c index 7b231b704b..314f7f7359 100644 --- a/hw/isa/piix4.c +

[Qemu-devel] [PATCH 06/29] hw/isa: add a generic isa_superio_init()

2018-01-07 Thread Philippe Mathieu-Daudé
Signed-off-by: Philippe Mathieu-Daudé --- include/hw/isa/superio.h | 17 + hw/isa/isa-superio.c | 45 + MAINTAINERS | 2 ++ hw/isa/Makefile.objs | 1 + 4 files changed, 65 insertions(+) create mode 100644 include/

[Qemu-devel] [PATCH 05/29] hw/input/i8042: extract declarations from i386/pc.h into input/i8042.h

2018-01-07 Thread Philippe Mathieu-Daudé
Signed-off-by: Philippe Mathieu-Daudé --- include/hw/i386/pc.h | 9 - include/hw/input/i8042.h | 25 + hw/alpha/dp264.c | 3 ++- hw/i386/pc.c | 1 + hw/i386/vmmouse.c| 1 + hw/i386/vmport.c | 1 + hw/input/pckbd.c

[Qemu-devel] [PATCH 21/29] piix: move southbridge related declarations/definitions to i82371_piix.h

2018-01-07 Thread Philippe Mathieu-Daudé
Signed-off-by: Philippe Mathieu-Daudé --- include/hw/acpi/piix4.h | 6 -- include/hw/i386/pc.h | 12 include/hw/southbridge/i82371_piix.h | 17 + hw/acpi/piix4.c | 2 +- hw/i386/acpi-build.c | 2

[Qemu-devel] [RFC PATCH 16/29] Revert "irq: introduce qemu_irq_proxy()"

2018-01-07 Thread Philippe Mathieu-Daudé
This function isn't used anymore. This reverts commit 22ec3283efba9ba0792790da786d6776d83f2a92. Signed-off-by: Philippe Mathieu-Daudé --- I think circular IRQ dependencies should be avoided with today's QOM devices. include/hw/irq.h | 5 - hw/core/irq.c| 14 -- 2 files cha

[Qemu-devel] [PATCH 23/29] hw/i386: extract i440fx related declarations/definitions to i440fx.h

2018-01-07 Thread Philippe Mathieu-Daudé
Signed-off-by: Philippe Mathieu-Daudé --- include/hw/i386/pc.h | 22 --- include/hw/pci-host/i440fx.h | 51 hw/acpi/pcihp.c | 2 +- hw/i386/pc_piix.c| 1 + hw/pci-host/piix.c | 1 + stubs/pc

[Qemu-devel] [PATCH 07/29] hw/i386/pc: use isa_superio_init()

2018-01-07 Thread Philippe Mathieu-Daudé
Signed-off-by: Philippe Mathieu-Daudé --- hw/i386/pc.c | 19 +++ 1 file changed, 3 insertions(+), 16 deletions(-) diff --git a/hw/i386/pc.c b/hw/i386/pc.c index e5c4e48ebb..f9479351f3 100644 --- a/hw/i386/pc.c +++ b/hw/i386/pc.c @@ -24,12 +24,9 @@ #include "qemu/osdep.h" #inclu

[Qemu-devel] [PATCH 17/29] piix: move piix4 declaration into new southbridge/i82371_piix.h

2018-01-07 Thread Philippe Mathieu-Daudé
Signed-off-by: Philippe Mathieu-Daudé --- include/hw/i386/pc.h | 2 -- include/hw/southbridge/i82371_piix.h | 17 + hw/isa/piix4.c | 1 + hw/mips/gt64xxx_pci.c| 1 + MAINTAINERS | 1 + 5 files chang

[Qemu-devel] [PATCH 26/29] configs/mips-softmmu: use common CONFIG_PCI_PIIX instead of CONFIG_PIIX4

2018-01-07 Thread Philippe Mathieu-Daudé
Signed-off-by: Philippe Mathieu-Daudé --- default-configs/mips-softmmu-common.mak | 2 +- hw/isa/Makefile.objs| 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/default-configs/mips-softmmu-common.mak b/default-configs/mips-softmmu-common.mak index 7d8f5db

[Qemu-devel] [PATCH 28/29] piix: merge common code from isa/piix4.c with southbridge piix3

2018-01-07 Thread Philippe Mathieu-Daudé
Signed-off-by: Philippe Mathieu-Daudé --- hw/isa/piix4.c| 218 hw/southbridge/piix.c | 246 +- hw/isa/Makefile.objs | 1 - 3 files changed, 203 insertions(+), 262 deletions(-) delete mode 1006

[Qemu-devel] [PATCH 20/29] piix4: add a speaker as specified in datasheet

2018-01-07 Thread Philippe Mathieu-Daudé
From: Hervé Poussineau Acked-by: Michael S. Tsirkin Acked-by: Paolo Bonzini Signed-off-by: Hervé Poussineau --- hw/isa/piix4.c | 7 ++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/hw/isa/piix4.c b/hw/isa/piix4.c index 04b13f97c6..c78516e595 100644 --- a/hw/isa/piix4.c +++

[Qemu-devel] [PATCH 27/29] piix3: convert reset function to QOM

2018-01-07 Thread Philippe Mathieu-Daudé
Signed-off-by: Philippe Mathieu-Daudé --- hw/southbridge/piix.c | 13 ++--- 1 file changed, 6 insertions(+), 7 deletions(-) diff --git a/hw/southbridge/piix.c b/hw/southbridge/piix.c index df08d94a59..2d429d6b29 100644 --- a/hw/southbridge/piix.c +++ b/hw/southbridge/piix.c @@ -203,10 +2

[Qemu-devel] [PATCH 10/29] hw/mips/malta: add fdc37m81x_init() which uses isa_superio_init()

2018-01-07 Thread Philippe Mathieu-Daudé
Signed-off-by: Philippe Mathieu-Daudé --- hw/mips/mips_malta.c | 28 +--- 1 file changed, 13 insertions(+), 15 deletions(-) diff --git a/hw/mips/mips_malta.c b/hw/mips/mips_malta.c index 195d7dd59e..bfa79c374d 100644 --- a/hw/mips/mips_malta.c +++ b/hw/mips/mips_malta.c @

Re: [Qemu-devel] [PATCH v7 00/20] add byte-based block_status driver callbacks

2018-01-07 Thread Fam Zheng
On Sat, 01/06 22:03, no-re...@patchew.org wrote: > /var/tmp/patchew-tester-tmp-zu_flv2_/src/block/iscsi.c: In function > ‘iscsi_co_block_status’: > /var/tmp/patchew-tester-tmp-zu_flv2_/src/block/iscsi.c:755:14: error: > ‘iTask.task’ may be used uninitialized in this function > [-Werror=maybe-uni

[Qemu-devel] [PATCH 25/29] hw/i386: move piix from hw/pci-host to hw/southbridge

2018-01-07 Thread Philippe Mathieu-Daudé
Signed-off-by: Philippe Mathieu-Daudé --- hw/{pci-host => southbridge}/piix.c | 0 MAINTAINERS | 2 +- hw/Makefile.objs| 1 + hw/pci-host/Makefile.objs | 1 - hw/southbridge/Makefile.objs| 1 + 5 files changed, 3 insertions(+), 2 delet

[Qemu-devel] [PATCH 12/29] piix4: rename some variables in realize function

2018-01-07 Thread Philippe Mathieu-Daudé
From: Hervé Poussineau PIIX4 structure is now 's' PCI device is now 'pci_dev' DeviceState is now 'dev' Acked-by: Michael S. Tsirkin Acked-by: Paolo Bonzini Signed-off-by: Hervé Poussineau --- hw/isa/piix4.c | 13 +++-- 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/hw/

[Qemu-devel] [NOTFORMERGE PATCH 29/29] piix4: add isa_superio_init

2018-01-07 Thread Philippe Mathieu-Daudé
For Hervé to test his VirtualPC2007. hw/southbridge/piix.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/hw/southbridge/piix.c b/hw/southbridge/piix.c index 53ee177866..b800d538da 100644 --- a/hw/southbridge/piix.c +++ b/hw/southbridge/piix.c @@ -32,6 +32,7 @@ #include "hw/dma/i8257.h"

[Qemu-devel] [PATCH 14/29] piix4: add Reset Control Register

2018-01-07 Thread Philippe Mathieu-Daudé
From: Hervé Poussineau The RCR I/O port (0xcf9) is used to generate a hard reset or a soft reset. Acked-by: Michael S. Tsirkin Acked-by: Paolo Bonzini Signed-off-by: Hervé Poussineau --- hw/isa/piix4.c | 39 +++ 1 file changed, 39 insertions(+) diff --git

[Qemu-devel] [PATCH 15/29] piix4: add a i8259 interrupt controller as specified in datasheet

2018-01-07 Thread Philippe Mathieu-Daudé
From: Hervé Poussineau Add ISA irqs as piix4 gpio in, and CPU interrupt request as piix4 gpio out. Remove i8259 instanciated in malta board, to not have it twice. We can also remove the now unused piix4_init() function. Signed-off-by: Hervé Poussineau [PMD: rebased] Signed-off-by: Philippe Mat

[Qemu-devel] [PATCH 19/29] piix4: add a i8254 pit controller as specified in datasheet

2018-01-07 Thread Philippe Mathieu-Daudé
From: Hervé Poussineau Remove i8254 instanciated in malta board, to not have it twice. Signed-off-by: Hervé Poussineau [PMD: rebased] Signed-off-by: Philippe Mathieu-Daudé --- hw/isa/piix4.c | 4 hw/mips/mips_malta.c | 4 2 files changed, 4 insertions(+), 4 deletions(-) diff

[Qemu-devel] [PATCH 24/29] hw/i386: extract i440fx code from piix.c into i440fx.c

2018-01-07 Thread Philippe Mathieu-Daudé
Signed-off-by: Philippe Mathieu-Daudé --- default-configs/i386-softmmu.mak | 1 + default-configs/x86_64-softmmu.mak | 1 + hw/pci-host/i440fx.c | 543 + hw/pci-host/piix.c | 522 +-- MAINTAINE

[Qemu-devel] [PATCH] scsi: Don't check uninitialized local variable

2018-01-07 Thread Fam Zheng
After the out label there is a check on iTask.task but it is not initialized yet. Fixes: e38bc23454ef763deb4405ebdee6a1081aa00bc8 Signed-off-by: Fam Zheng --- block/iscsi.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/block/iscsi.c b/block/iscsi.c index 5c0a9e55b6..1cb8c

Re: [Qemu-devel] [PATCH 05/29] hw/input/i8042: extract declarations from i386/pc.h into input/i8042.h

2018-01-07 Thread David Gibson
On Sun, Jan 07, 2018 at 11:45:34PM -0300, Philippe Mathieu-Daudé wrote: > Signed-off-by: Philippe Mathieu-Daudé ppc parts Acked-by: David Gibson > --- > include/hw/i386/pc.h | 9 - > include/hw/input/i8042.h | 25 + > hw/alpha/dp264.c | 3 ++- > h

Re: [Qemu-devel] [PATCH v7 00/20] add byte-based block_status driver callbacks

2018-01-07 Thread Fam Zheng
On Mon, 01/08 10:56, Fam Zheng wrote: > On Sat, 01/06 22:03, no-re...@patchew.org wrote: > > /var/tmp/patchew-tester-tmp-zu_flv2_/src/block/iscsi.c: In function > > ‘iscsi_co_block_status’: > > /var/tmp/patchew-tester-tmp-zu_flv2_/src/block/iscsi.c:755:14: error: > > ‘iTask.task’ may be used unin

Re: [Qemu-devel] [virtio-dev] [RFC 0/3] Extend vhost-user to support VFIO based accelerators

2018-01-07 Thread Jason Wang
On 2018年01月05日 18:25, Liang, Cunming wrote: -Original Message- From: Jason Wang [mailto:jasow...@redhat.com] Sent: Friday, January 5, 2018 4:39 PM To: Liang, Cunming ; Bie, Tiwei Cc: Tan, Jianfeng ; virtio-...@lists.oasis-open.org; m...@redhat.com; qemu-devel@nongnu.org; alex.william

[Qemu-devel] [Bug 1729501] Re: qemu crashes with assertion error `off_cur_end >= off_cur' failed

2018-01-07 Thread Liang Dai
Hi Gerd, Any chance to have a look? This issue still can be reproduced with the latest code. (commit 281f327487c9c9b1599f93c589a408bbf4a651b8) Please check the attachment for full gdb backtrace. ** Attachment added: "gdb full stack log" https://bugs.launchpad.net/qemu/+bug/1729501/+attachme

Re: [Qemu-devel] [PATCH] block/ssh: fix possible segmentation fault when .desc is not null-terminated

2018-01-07 Thread Jeff Cody
On Fri, Jan 05, 2018 at 12:44:40PM -0200, Murilo Opsfelder Araujo wrote: > This patch prevents a possible segmentation fault when .desc members are > checked > against NULL. > > The ssh_runtime_opts was added by commit > 8a6a80896d6af03b8ee0c17cdf37219eca2588a7 ("block/ssh: Use QemuOpts for runti

[Qemu-devel] [PULL 03/12] sm501: Add panel hardware cursor registers also to read function

2018-01-07 Thread David Gibson
From: BALATON Zoltan These were forgotten when adding panel layer support in ffd39257018 "SM501 emulation for R2D-SH4". Signed-off-by: BALATON Zoltan Reviewed-by: Philippe Mathieu-Daudé [dwg: Added reference to earlier commit in message] Signed-off-by: David Gibson --- hw/display/sm501.c | 1

[Qemu-devel] [PULL 04/12] sm501: Add some more unimplemented registers

2018-01-07 Thread David Gibson
From: BALATON Zoltan These are not really implemented (just return zero or default values) but add these so guests accessing them can run. Signed-off-by: BALATON Zoltan Signed-off-by: David Gibson --- hw/display/sm501.c | 17 + 1 file changed, 17 insertions(+) diff --git a/hw

[Qemu-devel] [PULL 01/12] target-ppc: optimize cmp translation

2018-01-07 Thread David Gibson
From: "pbonz...@redhat.com" We know that only one bit (in addition to SO) is going to be set in the condition register, so do two movconds instead of three setconds, three shifts and two ORs. For ppc64-linux-user, the code size reduction is around 5% and the performance improvement slightly less

[Qemu-devel] [PULL 07/12] hw/ide: Emulate SiI3112 SATA controller

2018-01-07 Thread David Gibson
From: BALATON Zoltan This is a common generic PCI SATA controller that is also used in PCs but more importantly guests running on the Sam460ex board prefer this card and have a driver for it (unlike for other SATA controllers already emulated). Signed-off-by: BALATON Zoltan Acked-by: John Snow

[Qemu-devel] [PULL 11/12] hw/ppc: Remove the deprecated spapr-pci-vfio-host-bridge device

2018-01-07 Thread David Gibson
From: Thomas Huth It's a deprecated dummy device since QEMU v2.6.0. That should have been enough time to allow the users to update their scripts in case they still use it, so let's remove this legacy code now. Reviewed-by: Alexey Kardashevskiy Signed-off-by: Thomas Huth Signed-off-by: David Gi

[Qemu-devel] [PULL 10/12] Update dtc to fix compilation problem on Mac OS 10.6

2018-01-07 Thread David Gibson
From: John Arbuckle Currently QEMU does not build on Mac OS 10.6 because of a missing patch in the dtc subproject. Updating dtc to make the patch available fixes this problem. Signed-off-by: John Arbuckle Signed-off-by: David Gibson --- dtc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-

[Qemu-devel] [PULL 06/12] spapr_pci: use warn_report()

2018-01-07 Thread David Gibson
From: Greg Kurz These two are definitely warnings. Let's use the appropriate API. Signed-off-by: Greg Kurz Signed-off-by: David Gibson --- hw/ppc/spapr_pci.c | 6 +++--- hw/ppc/spapr_pci_vfio.c | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/hw/ppc/spapr_pci.c b/hw

[Qemu-devel] [PULL 08/12] ppc/pnv: change powernv_ prefix to pnv_ for overall naming consistency

2018-01-07 Thread David Gibson
From: Cédric Le Goater The 'pnv' prefix is now used for all and the routines populating the device tree start with 'pnv_dt'. The handler of the PnvXScomInterface is also renamed to 'dt_xscom' which should reflect that it is populating the device tree under the 'xscom@' node of the chip. Signed-o

[Qemu-devel] [PULL 00/12] ppc-for-2.12 queue 20180108

2018-01-07 Thread David Gibson
The following changes since commit 281f327487c9c9b1599f93c589a408bbf4a651b8: Merge remote-tracking branch 'remotes/vivier/tags/m68k-for-2.12-pull-request' into staging (2017-12-22 00:11:36 +) are available in the Git repository at: git://github.com/dgibson/qemu.git tags/ppc-for-2.12-201

[Qemu-devel] [PULL 09/12] target/ppc: more use of the PPC_*() macros

2018-01-07 Thread David Gibson
From: Cédric Le Goater Also introduce utilities to manipulate bitmasks (originaly from OPAL) which be will be used in the model of the XIVE interrupt controller. Signed-off-by: Cédric Le Goater Signed-off-by: David Gibson --- hw/ppc/pnv_lpc.c| 10 - target/ppc/cpu.h| 5

[Qemu-devel] [PULL 12/12] spapr: Correct compatibility mode setting for hotplugged CPUs

2018-01-07 Thread David Gibson
Currently the pseries machine sets the compatibility mode for the guest's cpus in two places: 1) at machine reset and 2) after CAS negotiation. This means that if we set or negotiate a compatiblity mode, then hotplug a cpu, the hotplugged cpu doesn't get the right mode set and will incorrectly hav

[Qemu-devel] [PULL 05/12] ppc4xx_i2c: Implement basic I2C functions

2018-01-07 Thread David Gibson
From: BALATON Zoltan Enough to please U-Boot and make it able to detect SDRAM SPD EEPROMs Signed-off-by: François Revol Signed-off-by: BALATON Zoltan Reviewed-by: David Gibson Signed-off-by: David Gibson --- hw/i2c/ppc4xx_i2c.c | 198 +--- inc

Re: [Qemu-devel] [PATCH v1 03/21] RISC-V CPU Core Definition

2018-01-07 Thread Michael Clark
FYI, I've been working on the patch review comments in order of the patches and am focusing on cleanup up the cpu and helpers. OK [PATCH v1 0001/0021] RISC-V Maintainers OK [PATCH v1 0002/0021] RISC-V ELF Machine Definition INPROGRESS [PATCH v1 0003/0021] RISC-V CPU Core Definition DONE [PATCH v1

Re: [Qemu-devel] [PATCH v4 1/2] migration: Create tcp_port parameter

2018-01-07 Thread Peter Xu
On Fri, Jan 05, 2018 at 09:51:08PM +0100, Juan Quintela wrote: > It will be used to store the uri tcp_port parameter. This is the only > parameter than can change and we can need to be able to connect to it. > > Signed-off-by: Juan Quintela > > -- > > This used to be uri parameter, but it has

Re: [Qemu-devel] [PATCH v2] usb: Remove legacy -usbdevice option

2018-01-07 Thread Thomas Huth
On 04.01.2018 18:10, Paolo Bonzini wrote: > On 04/01/2018 16:59, Thomas Huth wrote: >> >> But instead of introducing a new "-braille" parameter, maybe we should >> rather keep some of the convenience "-usbdevice" possibilities around? >> E.g. keep "-usbdevice braille", "-usbdevice mouse", etc. but

Re: [Qemu-devel] [PATCH v2] usb: Remove legacy -usbdevice option

2018-01-07 Thread Thomas Huth
On 04.01.2018 18:57, Paolo Bonzini wrote: > On 04/01/2018 18:45, Samuel Thibault wrote: >> Paolo Bonzini, on jeu. 04 janv. 2018 18:11:00 +0100, wrote: >>> On 04/01/2018 16:56, Samuel Thibault wrote: > However, adding magic to "-device usb-braille" that creates both a > front-end and a back-