Re: [PATCH v6 08/11] migration: add new migration state wait-unplug

2019-10-28 Thread Jens Freimann
Dr. David Alan Gilbert schrieb am Di., 29. Okt. 2019, 03:57: > * Jens Freimann (jfreim...@redhat.com) wrote: > > This patch adds a new migration state called wait-unplug. It is entered > > after the SETUP state if failover devices are present. It will transition > > into ACTIVE once all devices

Re: [PULL 00/20] hw/i386/pc: Split PIIX3 southbridge from i440FX northbridge

2019-10-28 Thread Aleksandar Markovic
On Monday, October 28, 2019, Philippe Mathieu-Daudé wrote: > Hi Peter, > > This is a X86/MIPS pull, Paolo and Aleksandar are OK I send it: > > https://lists.gnu.org/archive/html/qemu-devel/2019-10/msg04959.html > > Regards, > > Phil. > > Does this pull request apply on the current code base

Re: [PULL 00/20] hw/i386/pc: Split PIIX3 southbridge from i440FX northbridge

2019-10-28 Thread no-reply
Patchew URL: https://patchew.org/QEMU/20191028163447.18541-1-phi...@redhat.com/ Hi, This series seems to have some coding style problems. See output below for more information: Subject: [PULL 00/20] hw/i386/pc: Split PIIX3 southbridge from i440FX northbridge Type: series Message-id:

Re: [PULL 00/20] hw/i386/pc: Split PIIX3 southbridge from i440FX northbridge

2019-10-28 Thread no-reply
Patchew URL: https://patchew.org/QEMU/20191028163447.18541-1-phi...@redhat.com/ Hi, This series seems to have some coding style problems. See output below for more information: Subject: [PULL 00/20] hw/i386/pc: Split PIIX3 southbridge from i440FX northbridge Type: series Message-id:

Re: [PATCH v6 08/11] migration: add new migration state wait-unplug

2019-10-28 Thread Dr. David Alan Gilbert
* Jens Freimann (jfreim...@redhat.com) wrote: > This patch adds a new migration state called wait-unplug. It is entered > after the SETUP state if failover devices are present. It will transition > into ACTIVE once all devices were succesfully unplugged from the guest. > > So if a guest doesn't

Re: [PATCH] fw_cfg: Allow reboot-timeout=-1 again

2019-10-28 Thread Dr. David Alan Gilbert
* Laszlo Ersek (ler...@redhat.com) wrote: > On 10/25/19 18:57, Dr. David Alan Gilbert (git) wrote: > > From: "Dr. David Alan Gilbert" > > > > Commit ee5d0f89de3e53cdb0dc added range checking on reboot-timeout > > to only allow the range 0..65535; however both qemu and libvirt document > > the

Re: [PULL 0/4] Net patches

2019-10-28 Thread Jason Wang
On 2019/10/29 上午5:42, Peter Maydell wrote: On Mon, 28 Oct 2019 at 06:35, Jason Wang wrote: The following changes since commit 187f35512106501fe9a11057f4d8705431e0026d: Merge remote-tracking branch 'remotes/stsquad/tags/pull-testing-next-251019-3' into staging (2019-10-26 10:13:48

[PULL V2 2/4] virtio: new post_load hook

2019-10-28 Thread Jason Wang
From: "Michael S. Tsirkin" Post load hook in virtio vmsd is called early while device is processed, and when VirtIODevice core isn't fully initialized. Most device specific code isn't ready to deal with a device in such state, and behaves weirdly. Add a new post_load hook in a device class

[PULL V2 3/4] virtio-net: prevent offloads reset on migration

2019-10-28 Thread Jason Wang
From: Mikhail Sennikovsky Currently offloads disabled by guest via the VIRTIO_NET_CTRL_GUEST_OFFLOADS_SET command are not preserved on VM migration. Instead all offloads reported by guest features (via VIRTIO_PCI_GUEST_FEATURES) get enabled. What happens is: first the

[PULL V2 0/4] Net patches

2019-10-28 Thread Jason Wang
The following changes since commit 187f35512106501fe9a11057f4d8705431e0026d: Merge remote-tracking branch 'remotes/stsquad/tags/pull-testing-next-251019-3' into staging (2019-10-26 10:13:48 +0100) are available in the git repository at: https://github.com/jasowang/qemu.git

[PULL V2 1/4] net: add tulip (dec21143) driver

2019-10-28 Thread Jason Wang
From: Sven Schnelle This adds the basic functionality to emulate a Tulip NIC. Implemented are: - RX and TX functionality - Perfect Frame Filtering - Big/Little Endian descriptor support - 93C46 EEPROM support - LXT970 PHY Not implemented, mostly because i had no OS using these functions: -

[PULL V2 4/4] COLO-compare: Fix incorrect `if` logic

2019-10-28 Thread Jason Wang
From: Fan Yang 'colo_mark_tcp_pkt' should return 'true' when packets are the same, and 'false' otherwise. However, it returns 'true' when 'colo_compare_packet_payload' returns non-zero while 'colo_compare_packet_payload' is just a 'memcmp'. The result is that COLO-compare reports inconsistent

Re: [PULL 00/20] hw/i386/pc: Split PIIX3 southbridge from i440FX northbridge

2019-10-28 Thread no-reply
Patchew URL: https://patchew.org/QEMU/20191028163447.18541-1-phi...@redhat.com/ Hi, This series seems to have some coding style problems. See output below for more information: Subject: [PULL 00/20] hw/i386/pc: Split PIIX3 southbridge from i440FX northbridge Type: series Message-id:

Re: [RFC 3/3] tests/vhost-user-fs-test: add vhost-user-fs test case

2019-10-28 Thread Dr. David Alan Gilbert
* Stefan Hajnoczi (stefa...@redhat.com) wrote: > Add a test case for the vhost-user-fs device. There are two > limitations: > > 1. This test only runs when invoked as root. The virtiofsd vhost-user >device backend currently requires root in order to maintain accurate >file system

Re: [PULL 00/11] Q800 branch patches

2019-10-28 Thread no-reply
Patchew URL: https://patchew.org/QEMU/20191028181643.5143-1-laur...@vivier.eu/ Hi, This series seems to have some coding style problems. See output below for more information: Subject: [PULL 00/11] Q800 branch patches Type: series Message-id: 20191028181643.5143-1-laur...@vivier.eu === TEST

[PULL 16/16] tests/boot_linux_console: Run BusyBox on 5KEc 64-bit cpu

2019-10-28 Thread Cleber Rosa
From: Philippe Mathieu-Daudé This tests boots a Linux kernel on a Malta machine up to a busybox shell on the serial console. Few commands are executed before halting the machine (via reboot). We use the Fedora 24 kernel extracted from the image at:

[PULL 1/16] MAINTAINERS: update location of Python libraries

2019-10-28 Thread Cleber Rosa
Commit 8f8fd9ed introduced the python directory structure, but forgot to update the path pattern on the MAINTAINERS file. Signed-off-by: Cleber Rosa --- MAINTAINERS | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/MAINTAINERS b/MAINTAINERS index 42e702f346..a0dd1041b2 100644

[PULL 3/16] Python libs: close console sockets before shutting down the VMs

2019-10-28 Thread Cleber Rosa
Currently, the console socket on QEMUMachine is closed after the QMP command to gracefully exit QEMU is executed. Because of a possible deadlock (QEMU waiting for the socket to become writable) let's close the console socket earlier. Reference: <20190607034214.gb22...@habkost.net> Reference:

[PULL 5/16] tests/acceptance: Fix wait_for_console_pattern() hangs

2019-10-28 Thread Cleber Rosa
From: Philippe Mathieu-Daudé Because of a possible deadlock (QEMU waiting for the socket to become writable) let's close the console socket as soon as we stop to use it. Suggested-by: Cleber Rosa Signed-off-by: Philippe Mathieu-Daudé Message-Id: <20191028073441.6448-4-phi...@redhat.com>

safe_syscall design guidance

2019-10-28 Thread Kyle Evans
Hi, We're working on improving bsd-user in a local tree and rebasing forward to get our work suitable for upstreaming. I'm porting the safe_syscall stuff over to bsd-user, and would like to get some design guidance as it may best be implemented with some refactoring of linux-user. Below is an

[PULL 6/16] tests/acceptance: Send on serial lines

2019-10-28 Thread Cleber Rosa
From: Philippe Mathieu-Daudé Some firmwares don't parse the control character and expect a . Signed-off-by: Philippe Mathieu-Daudé Message-Id: <20191028073441.6448-5-phi...@redhat.com> Reviewed-by: Cleber Rosa Tested-by: Cleber Rosa Signed-off-by: Cleber Rosa ---

[PULL 8/16] tests/acceptance: Add test that boots the HelenOS microkernel on Leon3

2019-10-28 Thread Cleber Rosa
From: Philippe Mathieu-Daudé Release notes: http://www.helenos.org/wiki/Download#HelenOS0.6.0 Signed-off-by: Philippe Mathieu-Daudé Message-Id: <20191028073441.6448-11-phi...@redhat.com> Reviewed-by: Cleber Rosa Tested-by: Cleber Rosa [Cleber: added/removed needed/unneeded imports]

[PULL 9/16] .travis.yml: Let the avocado job run the Leon3 test

2019-10-28 Thread Cleber Rosa
From: Philippe Mathieu-Daudé Signed-off-by: Philippe Mathieu-Daudé Message-Id: <20191028073441.6448-13-phi...@redhat.com> Reviewed-by: Cleber Rosa Tested-by: Cleber Rosa Signed-off-by: Cleber Rosa --- .travis.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git

[PULL 0/16] Python (acceptance tests) queue, 2019-10-28

2019-10-28 Thread Cleber Rosa
The following changes since commit aaffb853359829a37daaf883c773e8320b55c723: Merge remote-tracking branch 'remotes/maxreitz/tags/pull-block-2019-10-28' into staging (2019-10-28 14:40:01 +) are available in the Git repository at: git://github.com/clebergnu/qemu.git

[PULL 11/16] tests/acceptance: Test OpenBIOS on the PReP/40p

2019-10-28 Thread Cleber Rosa
From: Philippe Mathieu-Daudé User case from: https://mail.coreboot.org/pipermail/openbios/2018-May/010360.html Acked-by: David Gibson Signed-off-by: Philippe Mathieu-Daudé Message-Id: <20191028073441.6448-16-phi...@redhat.com> Reviewed-by: Cleber Rosa Tested-by: Cleber Rosa [Cleber: added

[PULL 15/16] tests/boot_linux_console: Add initrd test for the Exynos4210

2019-10-28 Thread Cleber Rosa
From: Philippe Mathieu-Daudé This test boots a Linux kernel on a smdkc210 board and verify the serial output is working. The cpio image used comes from the linux-build-test project: https://github.com/groeck/linux-build-test If ARM is a target being built, "make check-acceptance" will

[PULL 7/16] tests/acceptance: Refactor exec_command_and_wait_for_pattern()

2019-10-28 Thread Cleber Rosa
From: Philippe Mathieu-Daudé Refactor the exec_command_and_wait_for_pattern() utility method so we can reuse it in other files. Signed-off-by: Philippe Mathieu-Daudé Message-Id: <20191028073441.6448-6-phi...@redhat.com> Reviewed-by: Cleber Rosa Tested-by: Cleber Rosa Signed-off-by: Cleber

[PULL 2/16] Acceptance tests: work around socket dir

2019-10-28 Thread Cleber Rosa
Change 32558ce7a4 introduced specific directories for the socket dir when using python/qemu/machine.py:QEMUMachine. iotests probably didn't catch the condition that two simultaneous QEMUMachine instances, without manually set temporary or socket dirs would clash. Having two QEMUMachine instances

[PULL 14/16] tests/boot_linux_console: Add a test for the Raspberry Pi 2

2019-10-28 Thread Cleber Rosa
From: Philippe Mathieu-Daudé Similar to the x86_64/pc test, it boots a Linux kernel on a raspi2 board and verify the serial is working. The kernel image and DeviceTree blob are built by the Raspbian project (based on Debian): https://www.raspbian.org/RaspbianImages as recommended by the

[PULL 4/16] Acceptance tests: refactor wait_for_console_pattern

2019-10-28 Thread Cleber Rosa
The same utility method is already present in two different test files, so let's consolidate it into a single utility function. Signed-off-by: Cleber Rosa Message-Id: <20190916164011.7653-1-cr...@redhat.com> Reviewed-by: Philippe Mathieu-Daudé [PMD: failure_message is optional] Reviewed-by:

[PULL 10/16] tests/acceptance: Add test that runs NetBSD 4.0 installer on PRep/40p

2019-10-28 Thread Cleber Rosa
From: Philippe Mathieu-Daudé As of this commit, NetBSD 4.0 is very old. However it is enough to test the PRep/40p machine. User case from: http://mail-index.netbsd.org/port-prep/2017/04/11/msg000112.html Reviewed-by: Hervé Poussineau Acked-by: David Gibson Acked-by: Artyom Tarasenko

[PULL 12/16] .travis.yml: Let the avocado job run the 40p tests

2019-10-28 Thread Cleber Rosa
From: Philippe Mathieu-Daudé Acked-by: Alex Bennée Signed-off-by: Philippe Mathieu-Daudé Message-Id: <20191028073441.6448-18-phi...@redhat.com> Reviewed-by: Cleber Rosa Tested-by: Cleber Rosa Signed-off-by: Cleber Rosa --- .travis.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)

[PULL 13/16] tests/boot_linux_console: Use Avocado archive::gzip_uncompress()

2019-10-28 Thread Cleber Rosa
From: Philippe Mathieu-Daudé Avocado 67.0 [*] introduced the avocado.utils.archive module which provides handling of gzip files. Use the gzip_uncompress() method. [*] https://avocado-framework.readthedocs.io/en/67.0/api/utils/avocado.utils.html#avocado.utils.archive.gzip_uncompress

Re: [PATCH 2/3] Acceptance tests: introduce utility method for tags unique vals

2019-10-28 Thread Cleber Rosa
On Thu, Oct 24, 2019 at 06:12:25PM -0300, Wainer dos Santos Moschetta wrote: > Hi Cleber, > > On 9/24/19 4:45 PM, Cleber Rosa wrote: > > Currently a test can describe the target architecture binary that it > > should primarily be run with, be setting a single tag value. > > > > The same approach

Re: [PULL 00/20] hw/i386/pc: Split PIIX3 southbridge from i440FX northbridge

2019-10-28 Thread no-reply
Patchew URL: https://patchew.org/QEMU/20191028163447.18541-1-phi...@redhat.com/ Hi, This series seems to have some coding style problems. See output below for more information: Subject: [PULL 00/20] hw/i386/pc: Split PIIX3 southbridge from i440FX northbridge Type: series Message-id:

Re: [PATCH for-4.2 0/2] qcow2: Fix QCOW2_COMPRESSED_SECTOR_MASK

2019-10-28 Thread Alberto Garcia
On Mon 28 Oct 2019 05:18:39 PM CET, Max Reitz wrote: > This fixes a bug reported on > https://bugs.launchpad.net/qemu/+bug/185. The problem is that > QCOW2_COMPRESSED_SECTOR_MASK is a 32-bit mask when it really needs to be > a 64-bit mask. Ouch! Reviewed-by: Alberto Garcia Berto

Re: [PATCH 26/26] tests/boot_linux_console: Run BusyBox on 5KEc 64-bit cpu

2019-10-28 Thread Cleber Rosa
On Mon, Oct 28, 2019 at 09:17:24AM +0100, Aleksandar Markovic wrote: > On Monday, October 28, 2019, Philippe Mathieu-Daudé > wrote: > > > From: Philippe Mathieu-Daudé > > > > This tests boots a Linux kernel on a Malta machine up to a > > busybox shell on the serial console. Few commands are

Re: [PATCH 15/26] tests/acceptance: Test OpenBIOS on the PReP/40p

2019-10-28 Thread Cleber Rosa
On Mon, Oct 28, 2019 at 02:41:51PM -0400, Cleber Rosa wrote: > On Mon, Oct 28, 2019 at 08:34:30AM +0100, Philippe Mathieu-Daudé wrote: > > From: Philippe Mathieu-Daudé > > > > User case from: > > https://mail.coreboot.org/pipermail/openbios/2018-May/010360.html > > > > Acked-by: David Gibson >

Re: [PATCH 25/26] tests/boot_linux_console: Add sdcard test for the Exynos4210

2019-10-28 Thread Cleber Rosa
On Mon, Oct 28, 2019 at 08:34:40AM +0100, Philippe Mathieu-Daudé wrote: > From: Philippe Mathieu-Daudé > > This test boots a Linux kernel on a smdkc210 board and verify > the serial output is working. > > The cpio image used comes from the linux-build-test project: >

Re: [PULL 0/4] Net patches

2019-10-28 Thread Peter Maydell
On Mon, 28 Oct 2019 at 06:35, Jason Wang wrote: > > The following changes since commit 187f35512106501fe9a11057f4d8705431e0026d: > > Merge remote-tracking branch > 'remotes/stsquad/tags/pull-testing-next-251019-3' into staging (2019-10-26 > 10:13:48 +0100) > > are available in the git

Re: [PATCH 24/26] tests/boot_linux_console: Add initrd test for the Exynos4210

2019-10-28 Thread Cleber Rosa
On Mon, Oct 28, 2019 at 08:34:39AM +0100, Philippe Mathieu-Daudé wrote: > From: Philippe Mathieu-Daudé > > This test boots a Linux kernel on a smdkc210 board and verify > the serial output is working. > > The cpio image used comes from the linux-build-test project: >

Re: [PULL 00/69] Block patches for softfreeze

2019-10-28 Thread Peter Maydell
On Mon, 28 Oct 2019 at 12:15, Max Reitz wrote: > > The following changes since commit 187f35512106501fe9a11057f4d8705431e0026d: > > Merge remote-tracking branch > 'remotes/stsquad/tags/pull-testing-next-251019-3' into staging (2019-10-26 > 10:13:48 +0100) > > are available in the Git

Re: [PATCH 21/26] tests/boot_linux_console: Test the raspi2 UART1 (16550 based)

2019-10-28 Thread Cleber Rosa
On Mon, Oct 28, 2019 at 08:34:36AM +0100, Philippe Mathieu-Daudé wrote: > From: Philippe Mathieu-Daudé > > The current do_test_arm_raspi2() case tests the PL011 UART0. > Our model also supports the AUX UART (16550 based). > We can very simply test the UART1 with Linux, modifying the > kernel

Re: [PATCH 23/26] tests/boot_linux_console: Test SDHCI and termal sensor on raspi3

2019-10-28 Thread Cleber Rosa
On Mon, Oct 28, 2019 at 08:34:38AM +0100, Philippe Mathieu-Daudé wrote: > From: Philippe Mathieu-Daudé > > Add a test which loads the root filesystem on a SD card. > Use a kernel recent enough to also test the thermal sensor. > > The kernel image comes from: >

Re: [PATCH 22/26] tests/boot_linux_console: Boot Linux and run few commands on raspi3

2019-10-28 Thread Cleber Rosa
On Mon, Oct 28, 2019 at 08:34:37AM +0100, Philippe Mathieu-Daudé wrote: > From: Philippe Mathieu-Daudé > > Add a test which boots Linux and run basic commands using the serial > port console. > > The kernel image is built by the Debian project: > https://wiki.debian.org/RaspberryPi > > The

Re: [PATCH 22/26] tests/boot_linux_console: Boot Linux and run few commands on raspi3

2019-10-28 Thread Cleber Rosa
On Mon, Oct 28, 2019 at 08:34:37AM +0100, Philippe Mathieu-Daudé wrote: > From: Philippe Mathieu-Daudé > > Add a test which boots Linux and run basic commands using the serial > port console. > > The kernel image is built by the Debian project: > https://wiki.debian.org/RaspberryPi > > The

Re: [PATCH 20/26] tests/boot_linux_console: Add a test for the Raspberry Pi 2

2019-10-28 Thread Cleber Rosa
On Mon, Oct 28, 2019 at 08:34:35AM +0100, Philippe Mathieu-Daudé wrote: > From: Philippe Mathieu-Daudé > > Similar to the x86_64/pc test, it boots a Linux kernel on a raspi2 > board and verify the serial is working. > > The kernel image and DeviceTree blob are built by the Raspbian > project

[PULL 1/1] Update OpenBIOS images to 7e5b89e4 built from submodule.

2019-10-28 Thread Mark Cave-Ayland
Signed-off-by: Mark Cave-Ayland --- pc-bios/openbios-ppc | Bin 696908 -> 696912 bytes pc-bios/openbios-sparc32 | Bin 382048 -> 382048 bytes pc-bios/openbios-sparc64 | Bin 1593408 -> 1593408 bytes roms/openbios| 2 +- 4 files changed, 1 insertion(+), 1 deletion(-) diff --git

[PULL 0/1] qemu-openbios queue 20191028

2019-10-28 Thread Mark Cave-Ayland
13:32:40 +) are available in the Git repository at: git://github.com/mcayland/qemu.git tags/qemu-openbios-20191028 for you to fetch changes up to 9505edece7b7a331ae4bf009d7cf9dc206ddb2d3: Update OpenBIOS images to 7e5b89e4 built from submodule. (2019-10-28 17:11:50 +

Re: [PATCH 19/26] tests/boot_linux_console: Use Avocado archive::gzip_uncompress()

2019-10-28 Thread Cleber Rosa
On Mon, Oct 28, 2019 at 08:34:34AM +0100, Philippe Mathieu-Daudé wrote: > From: Philippe Mathieu-Daudé > > Avocado 67.0 [*] introduced the avocado.utils.archive module which > provides handling of gzip files. Use the gzip_uncompress() method. > > [*] >

Re: [PATCH 17/26] .travis.yml: Let the avocado job run the 40p tests

2019-10-28 Thread Cleber Rosa
On Mon, Oct 28, 2019 at 08:34:32AM +0100, Philippe Mathieu-Daudé wrote: > From: Philippe Mathieu-Daudé > > Acked-by: Alex Bennée > Signed-off-by: Philippe Mathieu-Daudé Reviewed-by: Cleber Rosa Tested-by: Cleber Rosa

Re: [PATCH 18/26] tests/boot_console: Test booting HP-UX firmware upgrade

2019-10-28 Thread Cleber Rosa
On Mon, Oct 28, 2019 at 08:34:33AM +0100, Philippe Mathieu-Daudé wrote: > From: Philippe Mathieu-Daudé > > Add a test which boots a HP-UX firmware upgrade CD-ROM. > It exercise the PCI LSI53C895A SCSI controller. > > The ISO image comes from: >

Re: [PATCH 16/26] tests/acceptance: Test Sandalfoot initrd on the PReP/40p

2019-10-28 Thread Cleber Rosa
On Mon, Oct 28, 2019 at 08:34:31AM +0100, Philippe Mathieu-Daudé wrote: > From: Philippe Mathieu-Daudé > > User case from: > https://mail.coreboot.org/pipermail/openbios/2018-May/010360.html > > Sandalfoot info: > http://www.juneau-lug.org/sandalfoot.php > > Acked-by: David Gibson >

Re: [PATCH 14/26] tests/acceptance: Test Open Firmware on the PReP/40p

2019-10-28 Thread Cleber Rosa
On Mon, Oct 28, 2019 at 01:48:01PM -0400, Cleber Rosa wrote: > On Mon, Oct 28, 2019 at 08:34:29AM +0100, Philippe Mathieu-Daudé wrote: > > From: Philippe Mathieu-Daudé > > > > User case from: > > https://tyom.blogspot.com/2019/04/aixprep-under-qemu-how-to.html > > > > Acked-by: David Gibson >

Re: [PATCH v1 0/5] target/arm/kvm: Provide an option to adjust virtual time

2019-10-28 Thread Masayoshi Mizuma
On Fri, Oct 18, 2019 at 02:02:52PM +0200, Andrew Jones wrote: > On Thu, Oct 17, 2019 at 05:17:59PM -0400, Masayoshi Mizuma wrote: > > Hi Drew, > > > > Thank you for posting the patches, they seems to work well > > because the softlockup is gone and the timestamp jump of > > dmesg and ftrace

[PULL 08/11] hw/m68k: add Nubus macfb video card

2019-10-28 Thread Laurent Vivier
This patch adds support for a graphic framebuffer device. This device can be added as a sysbus device or as a NuBus device. It is accessed as a framebuffer but the color palette can be set. Co-developed-by: Mark Cave-Ayland Signed-off-by: Mark Cave-Ayland Signed-off-by: Laurent Vivier

[PULL 07/11] hw/m68k: add Nubus support

2019-10-28 Thread Laurent Vivier
This patch adds basic support for the NuBus bus. This is used by 680x0 Macintosh. Co-developed-by: Mark Cave-Ayland Signed-off-by: Mark Cave-Ayland Signed-off-by: Laurent Vivier Reviewed-by: Thomas Huth Message-Id: <20191026164546.30020-8-laur...@vivier.eu> ---

[PULL 04/11] dp8393x: manage big endian bus

2019-10-28 Thread Laurent Vivier
This is needed by Quadra 800, this card can run on little-endian or big-endian bus. Signed-off-by: Laurent Vivier Tested-by: Hervé Poussineau Reviewed-by: Philippe Mathieu-Daudé Reviewed-by: Hervé Poussineau Message-Id: <20191026164546.30020-5-laur...@vivier.eu> --- hw/net/dp8393x.c | 88

[PULL 03/11] esp: add pseudo-DMA as used by Macintosh

2019-10-28 Thread Laurent Vivier
There is no DMA in Quadra 800, so the CPU reads/writes the data from the PDMA register (offset 0x100, ESP_PDMA in hw/m68k/q800.c) and copies them to/from the memory. There is a nice assembly loop in the kernel to do that, see linux/drivers/scsi/mac_esp.c:MAC_ESP_PDMA_LOOP(). The start of the

[PULL 05/11] hw/m68k: add VIA support

2019-10-28 Thread Laurent Vivier
Inside the 680x0 Macintosh, VIA (Versatile Interface Adapter) is used to interface the keyboard, Mouse, and real-time clock. It also provides control line for the floppy disk driver, video interface, sound circuitry and serial interface. This implementation is based on the MOS6522 object.

[PULL 01/11] esp: move handle_ti_cmd() cleanup code to esp_do_dma().

2019-10-28 Thread Laurent Vivier
To prepare following patches move do_cmd and DMA special case from handle_ti() to esp_do_dma(). This part of the code must be only executed with real DMA, not with pseudo-DMA. And PDMA is detected in esp_do_dma(), so move this part of the code in esp_do_dma(). We keep the code in handle_ti_cmd()

Re: [PATCH 15/26] tests/acceptance: Test OpenBIOS on the PReP/40p

2019-10-28 Thread Cleber Rosa
On Mon, Oct 28, 2019 at 08:34:30AM +0100, Philippe Mathieu-Daudé wrote: > From: Philippe Mathieu-Daudé > > User case from: > https://mail.coreboot.org/pipermail/openbios/2018-May/010360.html > > Acked-by: David Gibson > Signed-off-by: Philippe Mathieu-Daudé > --- > v3: > - use

[PULL 10/11] hw/m68k: define Macintosh Quadra 800

2019-10-28 Thread Laurent Vivier
If you want to test the machine, it doesn't yet boot a MacROM, but you can boot a linux kernel from the command line. You can install your own disk using debian-installer with: ./qemu-system-m68k \ -M q800 \ -serial none -serial mon:stdio \ -m 1000M -drive

[PULL 11/11] BootLinuxConsoleTest: Test the Quadra 800

2019-10-28 Thread Laurent Vivier
From: Philippe Mathieu-Daudé This test boots a Linux kernel on a Quadra 800 board and verify the serial is working. Example: $ avocado --show=app,console run -t machine:q800 tests/acceptance/boot_linux_console.py console: ABCFGHIJK console: Linux version 5.2.0-2-m68k

[PULL 09/11] hw/m68k: add a dummy SWIM floppy controller

2019-10-28 Thread Laurent Vivier
SWIM (Sander-Wozniak Integrated Machine) is the floppy controller of the 680x0 Macintosh. This patch introduces only the basic support: it allows to switch from IWM (Integrated WOZ Machine) mode to the SWIM mode and makes the linux driver happy. It cannot read any floppy image. Co-developed-by:

[PULL 06/11] hw/m68k: implement ADB bus support for via

2019-10-28 Thread Laurent Vivier
VIA needs to be able to poll the ADB interface and to read/write data from/to the bus. This patch adds functions allowing that. Co-developed-by: Mark Cave-Ayland Signed-off-by: Mark Cave-Ayland Signed-off-by: Laurent Vivier Reviewed-by: Hervé Poussineau Reviewed-by: Thomas Huth Message-Id:

[PULL 00/11] Q800 branch patches

2019-10-28 Thread Laurent Vivier
The following changes since commit 7bc8f9734213b76e76631a483be13d6737c2adbc: Merge remote-tracking branch 'remotes/pmaydell/tags/pull-target-arm-20191025' into staging (2019-10-25 13:12:16 +0100) are available in the Git repository at: git://github.com/vivier/qemu-m68k.git

[PULL 02/11] esp: move get_cmd() post-DMA code to get_cmd_cb()

2019-10-28 Thread Laurent Vivier
This will be needed to implement pseudo-DMA Signed-off-by: Laurent Vivier Reviewed-by: Philippe Mathieu-Daudé Acked-by: Paolo Bonzini Message-Id: <20191026164546.30020-3-laur...@vivier.eu> --- hw/scsi/esp.c | 46 +- 1 file changed, 29 insertions(+),

Re: [PATCH 13/26] tests/acceptance: Add test that runs NetBSD 4.0 installer on PRep/40p

2019-10-28 Thread Cleber Rosa
On Mon, Oct 28, 2019 at 08:34:28AM +0100, Philippe Mathieu-Daudé wrote: > From: Philippe Mathieu-Daudé > > As of this commit, NetBSD 4.0 is very old. However it is enough to > test the PRep/40p machine. > > User case from: > http://mail-index.netbsd.org/port-prep/2017/04/11/msg000112.html > >

Re: [PATCH v1 1/1] opensbi: Upgrade from v0.4 to v0.5

2019-10-28 Thread Palmer Dabbelt
On Sat, 26 Oct 2019 01:46:45 PDT (-0700), phi...@redhat.com wrote: On Sat, Oct 26, 2019 at 10:45 AM Philippe Mathieu-Daudé wrote: Hi Alistair, On 10/26/19 1:15 AM, Alistair Francis wrote: > This release has: > Lot of critical fixes > Hypervisor extension support > SBI v0.2

Re: [PATCH 14/26] tests/acceptance: Test Open Firmware on the PReP/40p

2019-10-28 Thread Cleber Rosa
On Mon, Oct 28, 2019 at 08:34:29AM +0100, Philippe Mathieu-Daudé wrote: > From: Philippe Mathieu-Daudé > > User case from: > https://tyom.blogspot.com/2019/04/aixprep-under-qemu-how-to.html > > Acked-by: David Gibson > Acked-by: Artyom Tarasenko > Tested-by: Cleber Rosa > Reviewed-by: Cleber

Re: [PATCH 11/26] tests/acceptance: Add test that boots Linux up to BusyBox on Leon3

2019-10-28 Thread Cleber Rosa
On Mon, Oct 28, 2019 at 08:34:26AM +0100, Philippe Mathieu-Daudé wrote: > From: Philippe Mathieu-Daudé > > Gaisler provides convenient images: > https://www.gaisler.com/index.php/downloads/linux > > HOWTO build: > https://www.gaisler.com/index.php/products/operating-systems/linux > >

Re: [PATCH 12/26] .travis.yml: Let the avocado job run the Leon3 test

2019-10-28 Thread Cleber Rosa
On Mon, Oct 28, 2019 at 08:34:27AM +0100, Philippe Mathieu-Daudé wrote: > From: Philippe Mathieu-Daudé > > Signed-off-by: Philippe Mathieu-Daudé Reviewed-by: Cleber Rosa Tested-by: Cleber Rosa Queuing on my python-next branch (and sending shortly in a PR). Thanks, - Cleber.

[PULL 20/20] hw/pci-host/i440fx: Remove the last PIIX3 traces

2019-10-28 Thread Philippe Mathieu-Daudé
The PIIX3 is not tied to the i440FX and can even be used without it. Move its creation to the machine code (pc_piix.c). We have now removed the last trace of southbridge code in the i440FX northbridge. Reviewed-by: Aleksandar Markovic Signed-off-by: Philippe Mathieu-Daudé --- hw/i386/pc_piix.c

Re: [PATCH 10/26] tests/acceptance: Add test that boots the HelenOS microkernel on Leon3

2019-10-28 Thread Cleber Rosa
On Mon, Oct 28, 2019 at 08:34:25AM +0100, Philippe Mathieu-Daudé wrote: > From: Philippe Mathieu-Daudé > > Release notes: > http://www.helenos.org/wiki/Download#HelenOS0.6.0 > > Signed-off-by: Philippe Mathieu-Daudé > --- > MAINTAINERS | 1 + >

[PULL 17/20] hw/pci-host/piix: Fix code style issues

2019-10-28 Thread Philippe Mathieu-Daudé
We will move this code, fix its style first. Reviewed-by: Aleksandar Markovic Reviewed-by: Esteban Bosse Signed-off-by: Philippe Mathieu-Daudé --- hw/pci-host/piix.c | 7 --- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/hw/pci-host/piix.c b/hw/pci-host/piix.c index

[PULL 16/20] hw/pci-host/piix: Move i440FX declarations to hw/pci-host/i440fx.h

2019-10-28 Thread Philippe Mathieu-Daudé
From: Philippe Mathieu-Daudé The hw/pci-host/piix.c contains a mix of PIIX3 and i440FX chipsets functions. To be able to split it, we need to export some declarations first. Reviewed-by: Aleksandar Markovic Signed-off-by: Philippe Mathieu-Daudé --- MAINTAINERS | 1 +

[PULL 18/20] hw/pci-host/piix: Extract PIIX3 functions to hw/isa/piix3.c

2019-10-28 Thread Philippe Mathieu-Daudé
Move all the PIIX3 functions to a new file: hw/isa/piix3.c. Reviewed-by: Aleksandar Markovic Signed-off-by: Philippe Mathieu-Daudé --- MAINTAINERS | 1 + hw/i386/Kconfig | 1 + hw/isa/Kconfig| 4 + hw/isa/Makefile.objs | 1 +

[PULL 14/20] hw/pci-host/piix: Move RCR_IOPORT register definition

2019-10-28 Thread Philippe Mathieu-Daudé
From: Philippe Mathieu-Daudé The RCR_IOPORT register belongs to the PIIX chipset. Move the definition to "piix.h", and prepend the PIIX prefix. Reviewed-by: Aleksandar Markovic Signed-off-by: Philippe Mathieu-Daudé --- hw/i386/acpi-build.c | 2 +- hw/isa/piix4.c| 2

[PULL 15/20] hw/pci-host/piix: Define and use the PIIX IRQ Route Control Registers

2019-10-28 Thread Philippe Mathieu-Daudé
The IRQ Route Control registers definitions belong to the PIIX chipset. We were only defining the 'A' register. Define the other B, C and D registers, and use them. Acked-by: Paul Durrant Reviewed-by: Aleksandar Markovic Signed-off-by: Philippe Mathieu-Daudé --- hw/i386/xen/xen-hvm.c

[PULL 19/20] hw/pci-host: Rename incorrectly named 'piix' as 'i440fx'

2019-10-28 Thread Philippe Mathieu-Daudé
From: Philippe Mathieu-Daudé We moved all the PIIX3 southbridge code out of hw/pci-host/piix.c, it now only contains i440FX northbridge code. Rename it to match the chipset modelled. Reviewed-by: Aleksandar Markovic Signed-off-by: Philippe Mathieu-Daudé --- MAINTAINERS |

Re: [PULL v2 00/12] tcg patch queue

2019-10-28 Thread no-reply
Patchew URL: https://patchew.org/QEMU/20191028145937.10914-1-richard.hender...@linaro.org/ Hi, This series seems to have some coding style problems. See output below for more information: Subject: [PULL v2 00/12] tcg patch queue Type: series Message-id:

[PULL 13/20] hw/pci-host/piix: Extract piix3_create()

2019-10-28 Thread Philippe Mathieu-Daudé
Extract the PIIX3 creation code from the i440fx_init() function. Reviewed-by: Aleksandar Markovic Reviewed-by: Esteban Bosse Signed-off-by: Philippe Mathieu-Daudé --- hw/pci-host/piix.c | 51 -- 1 file changed, 31 insertions(+), 20 deletions(-)

[PULL 11/20] hw/isa/piix4: Move piix4_create() to hw/isa/piix4.c

2019-10-28 Thread Philippe Mathieu-Daudé
From: Philippe Mathieu-Daudé Now that we properly refactored the piix4_create() function, let's move it to hw/isa/piix4.c where it belongs, so it can be reused on other places. Reviewed-by: Aleksandar Markovic Signed-off-by: Philippe Mathieu-Daudé --- hw/isa/piix4.c| 30

[PULL 10/20] hw/mips/mips_malta: Extract the PIIX4 creation code as piix4_create()

2019-10-28 Thread Philippe Mathieu-Daudé
The Malta board instantiate a PIIX4 chipset doing various calls. Refactor all those related calls into a single function: piix4_create(). Reviewed-by: Aleksandar Markovic Signed-off-by: Philippe Mathieu-Daudé --- hw/mips/mips_malta.c | 47 +++- 1 file

[PULL 04/20] Revert "irq: introduce qemu_irq_proxy()"

2019-10-28 Thread Philippe Mathieu-Daudé
From: Philippe Mathieu-Daudé This function isn't used anymore. This reverts commit 22ec3283efba9ba0792790da786d6776d83f2a92. Reviewed-by: Thomas Huth Reviewed-by: Li Qiang Reviewed-by: Esteban Bosse Signed-off-by: Philippe Mathieu-Daudé --- hw/core/irq.c| 14 --

[PULL 08/20] piix4: Add a MC146818 RTC Controller as specified in datasheet

2019-10-28 Thread Philippe Mathieu-Daudé
From: Philippe Mathieu-Daudé Remove mc146818rtc instanciated in malta board, to not have it twice. Acked-by: Michael S. Tsirkin Acked-by: Paolo Bonzini Signed-off-by: Hervé Poussineau Message-Id: <20171216090228.28505-13-hpous...@reactos.org> [PMD: rebased, set RTC base_year to 2000]

[PULL 07/20] piix4: Add an i8254 PIT Controller as specified in datasheet

2019-10-28 Thread Philippe Mathieu-Daudé
From: Hervé Poussineau Remove i8254 instanciated in malta board, to not have it twice. Acked-by: Michael S. Tsirkin Acked-by: Paolo Bonzini Signed-off-by: Hervé Poussineau Message-Id: <20171216090228.28505-10-hpous...@reactos.org> Reviewed-by: Aleksandar Markovic Signed-off-by: Philippe

[PULL 02/20] piix4: Add the Reset Control Register

2019-10-28 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 Message-Id: <20171216090228.28505-7-hpous...@reactos.org> Reviewed-by: Aleksandar Markovic Reviewed-by: Li

[PULL 09/20] hw/mips/mips_malta: Create IDE hard drive array dynamically

2019-10-28 Thread Philippe Mathieu-Daudé
In the next commit we'll refactor the PIIX4 code out of mips_malta_init(). As a preliminary step, add the 'ide_drives' variable and create the drive array dynamically. Reviewed-by: Aleksandar Markovic Reviewed-by: Li Qiang Signed-off-by: Philippe Mathieu-Daudé --- hw/mips/mips_malta.c | 7

[PULL 05/20] piix4: Rename PIIX4 object to piix4-isa

2019-10-28 Thread Philippe Mathieu-Daudé
From: Hervé Poussineau 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 Message-Id: <20171216090228.28505-15-hpous...@reactos.org> Reviewed-by:

[PATCH for-4.2 0/2] qcow2: Fix QCOW2_COMPRESSED_SECTOR_MASK

2019-10-28 Thread Max Reitz
This fixes a bug reported on https://bugs.launchpad.net/qemu/+bug/185. The problem is that QCOW2_COMPRESSED_SECTOR_MASK is a 32-bit mask when it really needs to be a 64-bit mask. The launchpad report mentions only problems with qemu-img check on large compressed images, but I think it might

[PULL 01/20] MAINTAINERS: Keep PIIX4 South Bridge separate from PC Chipsets

2019-10-28 Thread Philippe Mathieu-Daudé
From: Philippe Mathieu-Daudé The PIIX4 Southbridge is not used by the PC machine, but by the Malta board (MIPS). Add a new section to keep it covered. Suggested-by: Michael S. Tsirkin Reviewed-by: Aleksandar Markovic Reviewed-by: Li Qiang Signed-off-by: Philippe Mathieu-Daudé ---

[PATCH for-4.2 1/2] qcow2: Fix QCOW2_COMPRESSED_SECTOR_MASK

2019-10-28 Thread Max Reitz
Masks for L2 table entries should have 64 bit. Fixes: b6c246942b14d3e0dec46a6c5868ed84e7dbea19 Buglink: https://bugs.launchpad.net/qemu/+bug/185 Cc: qemu-sta...@nongnu.org Signed-off-by: Max Reitz --- block/qcow2.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git

[PULL 00/20] hw/i386/pc: Split PIIX3 southbridge from i440FX northbridge

2019-10-28 Thread Philippe Mathieu-Daudé
Hi Peter, This is a X86/MIPS pull, Paolo and Aleksandar are OK I send it: https://lists.gnu.org/archive/html/qemu-devel/2019-10/msg04959.html Regards, Phil. The following changes since commit 9bb73502321d46f4d320fa17aa38201445783fc4: Merge remote-tracking branch

[PULL 12/20] hw/i386: Remove obsolete LoadStateHandler::load_state_old handlers

2019-10-28 Thread Philippe Mathieu-Daudé
These devices implemented their load_state_old() handler 10 years ago, previous to QEMU v0.12. Since commit cc425b5ddf removed the pc-0.10 and pc-0.11 machines, we can drop this code. Note: the mips_r4k machine started to use the i8254 device just after QEMU v0.5.0, but the MIPS machine types are

[PATCH for-4.2 2/2] iotests: Add test for 4G+ compressed qcow2 write

2019-10-28 Thread Max Reitz
Test what qemu-img check says about an image after one has written compressed data to an offset above 4 GB. Signed-off-by: Max Reitz --- tests/qemu-iotests/272 | 79 ++ tests/qemu-iotests/272.out | 10 + tests/qemu-iotests/group | 1 + 3 files

[PULL 06/20] piix4: Add an i8257 DMA Controller as specified in datasheet

2019-10-28 Thread Philippe Mathieu-Daudé
From: Hervé Poussineau The i8257 is not a chipset on the Malta board, but is part of the PIIX4 chipset. Create the i8257 in the PIIX4 code, remove the one instantiated in malta board, to not have it twice. Acked-by: Michael S. Tsirkin Acked-by: Paolo Bonzini Signed-off-by: Hervé Poussineau

[PULL 03/20] piix4: Add an i8259 Interrupt Controller as specified in datasheet

2019-10-28 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. Acked-by: Michael S. Tsirkin Acked-by: Paolo Bonzini Signed-off-by:

[PATCH v2] virtio: Use auto rcu_read macros

2019-10-28 Thread Dr. David Alan Gilbert (git)
From: "Dr. David Alan Gilbert" Use RCU_READ_LOCK_GUARD and WITH_RCU_READ_LOCK_GUARD to replace the manual rcu_read_(un)lock calls. I think the only change is virtio_load which was missing unlocks in error paths; those end up being fatal errors so it's not that important anyway. Signed-off-by:

  1   2   3   4   >