Re: [Qemu-devel] [PATCH v1 14/42] tests/docker: move our HPPA cross compile to Buster

2019-09-07 Thread Philippe Mathieu-Daudé
On 9/4/19 10:29 PM, Alex Bennée wrote: > Now Buster is released we can stop relying on the movable feast that > is Sid for our cross-compiler for building tests. > > Signed-off-by: Alex Bennée Reviewed-by: Philippe Mathieu-Daudé Tested-by: Philippe Mathieu-Daudé > --- >

Re: [Qemu-devel] [PATCH v1 17/42] tests/docker: move our sh4 cross compile to Buster

2019-09-07 Thread Philippe Mathieu-Daudé
On 9/4/19 10:29 PM, Alex Bennée wrote: > Now Buster is released we can stop relying on the movable feast that > is Sid for our cross-compiler for building tests. > > Signed-off-by: Alex Bennée Reviewed-by: Philippe Mathieu-Daudé Tested-by: Philippe Mathieu-Daudé > --- >

Re: [Qemu-devel] [PATCH v1 21/42] tests/docker: drop debian-sid image

2019-09-07 Thread Philippe Mathieu-Daudé
On 9/4/19 10:29 PM, Alex Bennée wrote: > Debian Sid was only ever a stop gap and thanks to the much better > cross compiler in the Buster release we don't need it any more. Send > it on its merry way. I'm not sure about this one... Why not update and keep it? -- >8 -- -FROM

Re: [Qemu-devel] [PATCH v1 22/42] tests/docker: drop powerpc-user image for QEMU cross builds

2019-09-07 Thread Philippe Mathieu-Daudé
On 9/4/19 10:29 PM, Alex Bennée wrote: > Now Jessie has entered LTS the powerpc architecture has been dropped > so we can no longer build the image from scratch. We will still > support a minimal powerpc-cross image for building testcases. This one still works using:

[Qemu-devel] [PATCH v7 3/4] block/ide/scsi: Set BLK_PERM_SUPPORT_HM_ZONED

2019-09-07 Thread Dmitry Fomichev
Added a new boolean argument to blkconf_apply_backend_options() to let the common block code know whether the chosen block backend can handle host managed zoned block devices. blkconf_apply_backend_options() then sets BLK_PERM_SUPPORT_HM_ZONED permission accordingly. The raw code can then use

[Qemu-devel] [PATCH v7 4/4] raw: Don't open ZBDs if backend can't handle them

2019-09-07 Thread Dmitry Fomichev
Abort opening a zoned device as a raw file in case the chosen block backend driver lacks proper support for this type of storage. Signed-off-by: Dmitry Fomichev Reviewed-by: Stefan Hajnoczi --- block/file-posix.c | 14 ++ 1 file changed, 14 insertions(+) diff --git

[Qemu-devel] [PATCH v7 0/4] virtio/block: handle zoned backing devices

2019-09-07 Thread Dmitry Fomichev
Currently, attaching zoned block devices (i.e., storage devices compliant to ZAC/ZBC standards) using several virtio methods doesn't work properly as zoned devices appear as regular block devices at the guest. This may cause unexpected i/o errors and, potentially, some data corruption. To be more

[Qemu-devel] [PATCH v7 1/4] block: Add zoned device model property

2019-09-07 Thread Dmitry Fomichev
This commit adds Zoned Device Model (as defined in T10 ZBC and T13 ZAC standards) as a block driver property, along with some useful access functions. A new backend driver permission, BLK_PERM_SUPPORT_HM_ZONED, is also introduced. Only the drivers having this permission will be allowed to open

[Qemu-devel] [PATCH v7 2/4] raw: Recognize zoned backing devices

2019-09-07 Thread Dmitry Fomichev
The purpose of this patch is to recognize a zoned block device (ZBD) when it is opened as a raw file. The new code initializes the zoned model propery introduced by the previous commit. This commit is Linux-specific as it gets the Zoned Block Device Model value (none/host-managed/host-aware) from

Re: [Qemu-devel] slirp, incoming packets get truncated

2019-09-07 Thread Samuel Thibault
Hello, As usual, several things here. Chris Heinze, le mar. 03 sept. 2019 17:02:15 +0200, a ecrit: > root@guest:~# tcpdump -ni eth0 port 19003 > tcpdump: verbose output suppressed, use -v or -vv for full protocol decode > listening on eth0, link-type EN10MB (Ethernet), capture size 262144 bytes

Re: [Qemu-devel] [PATCH v1 27/42] tests/docker: use --arch-only for installing deps

2019-09-07 Thread Philippe Mathieu-Daudé
On 9/4/19 10:29 PM, Alex Bennée wrote: > The Debian QEMU packages require a bunch of cross compilers for > building firmware which aren't available on all host architectures. > Using --arch-only skips this particular requirement and allows us to > install just the dependencies we need. Nice

Re: [Qemu-devel] [PATCH v1 15/42] tests/docker: move our m68k cross compile to Buster

2019-09-07 Thread Philippe Mathieu-Daudé
On 9/4/19 10:29 PM, Alex Bennée wrote: > Now Buster is released we can stop relying on the movable feast that > is Sid for our cross-compiler for building tests. > > Signed-off-by: Alex Bennée Reviewed-by: Philippe Mathieu-Daudé Tested-by: Philippe Mathieu-Daudé > --- >

Re: [Qemu-devel] [PATCH v1 12/42] tests/docker: move our powerpc cross compile to Buster

2019-09-07 Thread Philippe Mathieu-Daudé
On 9/4/19 10:29 PM, Alex Bennée wrote: > Now Buster is released we can stop relying on the movable feast that > is Sid for our cross-compiler for building tests. > > Signed-off-by: Alex Bennée Reviewed-by: Philippe Mathieu-Daudé Tested-by: Philippe Mathieu-Daudé > --- >

Re: [Qemu-devel] [PATCH v1 23/42] tests/docker: add debian-xtensa-cross to DEBIAN_PARTIAL_IMAGES

2019-09-07 Thread Philippe Mathieu-Daudé
On 9/4/19 10:29 PM, Alex Bennée wrote: > This should have been marked when the docker recipe was added to Oops ... was added (in c72d9df1818) to ...? > prevent it being used for cross compiling QEMU. Sort the > DEBIAN_PARTIAL_IMAGE list while we are at it. > > Signed-off-by: Alex Bennée > ---

Re: [Qemu-devel] [PATCH v1 11/42] tests/docker: move our arm64 cross compile to Buster

2019-09-07 Thread Philippe Mathieu-Daudé
On 9/5/19 12:35 PM, Philippe Mathieu-Daudé wrote: > On 9/4/19 10:29 PM, Alex Bennée wrote: >> Now Buster is released we can unify our cross build images for both >> QEMU and tests. >> >> Signed-off-by: Alex Bennée >> --- >> tests/docker/Makefile.include| 5 ++--- >>

Re: [Qemu-devel] [PATCH v1 13/42] tests/docker: move our Alpha cross compile to Buster

2019-09-07 Thread Philippe Mathieu-Daudé
On 9/4/19 10:29 PM, Alex Bennée wrote: > Now Buster is released we can stop relying on the movable feast that > is Sid for our cross-compiler for building tests. > > Signed-off-by: Alex Bennée Reviewed-by: Philippe Mathieu-Daudé Tested-by: Philippe Mathieu-Daudé > --- >

Re: [Qemu-devel] [PATCH v1 16/42] tests/docker: move our sparc64 cross compile to Buster

2019-09-07 Thread Philippe Mathieu-Daudé
On 9/4/19 10:29 PM, Alex Bennée wrote: > Now Buster is released we can stop relying on the movable feast that > is Sid for our cross-compiler for building tests. > > Signed-off-by: Alex Bennée Reviewed-by: Philippe Mathieu-Daudé Tested-by: Philippe Mathieu-Daudé > --- >

Re: [Qemu-devel] [PATCH v1 19/42] tests/docker: move our riscv64 cross compile to Buster

2019-09-07 Thread Philippe Mathieu-Daudé
On 9/4/19 10:29 PM, Alex Bennée wrote: > Now Buster is released we can stop relying on the movable feast that > is Sid for our cross-compiler for building tests. > > Signed-off-by: Alex Bennée Reviewed-by: Philippe Mathieu-Daudé Tested-by: Philippe Mathieu-Daudé > --- >

Re: [Qemu-devel] [PATCH v1 20/42] tests/docker: move our ppc64 cross compile to Buster

2019-09-07 Thread Philippe Mathieu-Daudé
On 9/4/19 10:29 PM, Alex Bennée wrote: > Now Buster is released we can stop relying on the movable feast that > is Sid for our cross-compiler for building tests. > > Signed-off-by: Alex Bennée Reviewed-by: Philippe Mathieu-Daudé Tested-by: Philippe Mathieu-Daudé > --- >

Re: [Qemu-devel] [PATCH v1 18/42] tests/docker: move our mips64 cross compile to Buster

2019-09-07 Thread Philippe Mathieu-Daudé
On 9/4/19 10:29 PM, Alex Bennée wrote: > Now Buster is released we can stop relying on the movable feast that > is Sid for our cross-compiler for building tests. > > Signed-off-by: Alex Bennée Reviewed-by: Philippe Mathieu-Daudé Tested-by: Philippe Mathieu-Daudé > --- >

Re: [Qemu-devel] [PATCH 1/2] linux-user: add missing UDP and IPv6 setsockopt options

2019-09-07 Thread Laurent Vivier
Le 23/08/2019 à 01:14, Shu-Chun Weng via Qemu-devel a écrit : > UDP: SOL_UDP manipulate options at UDP level. All six options currently > defined in linux source include/uapi/linux/udp.h take integer values. > > IPv6: IPV6_ADDR_PREFERENCES (RFC5014: Source address selection) was not > supported.

Re: [Qemu-devel] [PATCH v9 7/9] scsi: account unmap operations

2019-09-07 Thread Vladimir Sementsov-Ogievskiy
06.09.2019 19:01, Anton Nefedov wrote: > Signed-off-by: Anton Nefedov Reviewed-by: Vladimir Sementsov-Ogievskiy > --- > hw/scsi/scsi-disk.c | 12 +++- > 1 file changed, 11 insertions(+), 1 deletion(-) > > diff --git a/hw/scsi/scsi-disk.c b/hw/scsi/scsi-disk.c > index

[Qemu-devel] [PULL 6/8] m68k: Add an entry for the NeXTcube machine to the MAINTAINERS file

2019-09-07 Thread Thomas Huth
I don't have much clue about the NeXT hardware, but at least I know now the source files a little bit, so I volunteer to pick up patches and send PULL requests for them until someone else with more knowledge steps up to do this job instead. Reviewed-by: Philippe Mathieu-Daudé Message-Id:

[Qemu-devel] [PULL 5/8] m68k: Add serial controller to the NeXTcube machine

2019-09-07 Thread Thomas Huth
The NeXTcube uses a normal 8530 serial controller, so we can simply use our normal "escc" device here. While we're at it, also add a boot-serial-test for the next-cube machine, now that the serial output works. Tested-by: Philippe Mathieu-Daudé Message-Id:

[Qemu-devel] [PULL 0/8] Add the m68k next-cube machine

2019-09-07 Thread Thomas Huth
Hi Peter, the following changes since commit 90b1e3afd33226b6078fec6d77a18373712a975c: Merge remote-tracking branch 'remotes/huth-gitlab/tags/pull-request-2019-09-05-v2' into staging (2019-09-05 17:09:13 +0100) are available in the Git repository at: https://gitlab.com/huth/qemu.git

[Qemu-devel] [PULL 3/8] m68k: Add NeXTcube machine

2019-09-07 Thread Thomas Huth
It is still quite incomplete (no SCSI, no floppy emulation, no network, etc.), but the firmware already shows up the debug monitor prompt in the framebuffer display, so at least the very basics are already working. This code has been taken from Bryce Lanham's GSoC 2011 NeXT branch at

[Qemu-devel] [PULL 4/8] escc: introduce a selector for the register bit

2019-09-07 Thread Thomas Huth
From: Laurent Vivier On Sparc and PowerMac, the bit 0 of the address selects the register type (control or data) and bit 1 selects the channel (B or A). On m68k Macintosh and NeXTcube, the bit 0 selects the channel and bit 1 the register type. This patch introduces a new parameter (bit_swap)

[Qemu-devel] [Bug 1843133] [NEW] Possibly incorrect branch in qemu-system-hppa

2019-09-07 Thread Paulo César Pereira de Andrade
Public bug reported: I plan to release a new GNU Lightning soon. I no longer have access to any physical HPPA, but code that was tested some years ago did work on HPPA/HP-UX, and now it appears qemu-system-hppa incorrectly branches in code generated by GNU Lightning. Currently only 32 bit hppa

[Qemu-devel] [PULL 8/8] .travis.yml: Let the avocado job run the NeXTcube tests

2019-09-07 Thread Thomas Huth
From: Philippe Mathieu-Daudé Signed-off-by: Philippe Mathieu-Daudé Message-Id: <20190813134921.30602-3-phi...@redhat.com> [huth: Rebased patch to master branch] Signed-off-by: Thomas Huth --- .travis.yml | 7 ++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/.travis.yml

[Qemu-devel] Greetings qemu folks

2019-09-07 Thread Toe Dev
I am new in QEMU developing and I have general questions about QEMU source code as I could not find any guidelines about it. 1) I have no success running qemu in nographic mode. The internet says using chardev driver to redirect kernel output to host OS... what is the right way to do that?

[Qemu-devel] [PULL 7/8] tests/acceptance: Add test of NeXTcube framebuffer using OCR

2019-09-07 Thread Thomas Huth
From: Philippe Mathieu-Daudé Add a test of the NeXTcube framebuffer using the Tesseract OCR engine on a screenshot of the framebuffer device. The test is very quick: $ avocado --show=app,console run tests/acceptance/machine_m68k_nextcube.py JOB ID :

[Qemu-devel] [Bug 1843133] Re: Possibly incorrect branch in qemu-system-hppa

2019-09-07 Thread Paulo César Pereira de Andrade
As a side note, the branch is correct if testing 0xffe + 2 or other combinations to cause a signed overflow. The only special pattern that fails is '0x7ff + 1'. -- You received this bug notification because you are a member of qemu- devel-ml, which is subscribed to QEMU.

Re: [Qemu-devel] [PATCH 2/2] linux-user: time stamping options for setsockopt()

2019-09-07 Thread Laurent Vivier
Le 23/08/2019 à 01:14, Shu-Chun Weng via Qemu-devel a écrit : > This change supports SO_TIMESTAMPNS and SO_TIMESTAMPING for > setsocketopt() with SOL_SOCKET. > > The TARGET_SO_TIMESTAMP{NS,ING} constants are already defined for > alpha, hppa, and sparc. In include/uapi/asm-generic/socket.h: > >

[Qemu-devel] [PULL 2/8] m68k: Add NeXTcube keyboard device

2019-09-07 Thread Thomas Huth
It is likely still quite incomplete (e.g. mouse and interrupts are not implemented yet), but it is good enough for keyboard input at the firmware monitor. This code has been taken from Bryce Lanham's GSoC 2011 NeXT branch at https://github.com/blanham/qemu-NeXT/blob/next-cube/hw/next-kbd.c and

[Qemu-devel] [PULL 1/8] m68k: Add NeXTcube framebuffer device emulation

2019-09-07 Thread Thomas Huth
The NeXTcube uses a linear framebuffer with 4 greyscale colors and a fixed resolution of 1120 * 832. This code has been taken from Bryce Lanham's GSoC 2011 NeXT branch at https://github.com/blanham/qemu-NeXT/blob/next-cube/hw/next-fb.c and altered to fit the latest interface of the current QEMU

[Qemu-devel] [Bug 1843151] [NEW] Regression: QEMU 4.1.0 qxl and KMS resoluiton only 4x10

2019-09-07 Thread James Harvey
Public bug reported: Host is Arch Linux. linux 5.2.13, qemu 4.1.0. Guest is Arch Linux Sept 2019 ISO. linux 5.2.11. Have replicated this both on a system using amdgpu and one using integrated ASPEED graphics. Downgrading from 4.1.0 to 4.0.0 works as usual, see:

[Qemu-devel] [Bug 1843151] Re: Regression: QEMU 4.1.0 qxl and KMS resoluiton only 4x10

2019-09-07 Thread James Harvey
** Description changed: - Host is Arch Linux. linux 5.2.13, qemu 4.1.0. + Host is Arch Linux. linux 5.2.13, qemu 4.1.0. virt-viewer 8.0. Guest is Arch Linux Sept 2019 ISO. linux 5.2.11. Have replicated this both on a system using amdgpu and one using integrated ASPEED graphics.

[Qemu-devel] [PATCH] nbd/client: Add hint when TLS is missing

2019-09-07 Thread Eric Blake
I received an off-list report of failure to connect to an NBD server expecting an x509 certificate, when the client was attempting something similar to this command line: $ ./x86_64-softmmu/qemu-system-x86_64 -name 'blah' -machine q35 -nodefaults \ -object

Re: [Qemu-devel] [PATCH v2 2/3] block/qcow2: fix the corruption when rebasing luks encrypted files

2019-09-07 Thread Vladimir Sementsov-Ogievskiy
06.09.2019 22:57, Maxim Levitsky wrote: > This fixes subtle corruption introduced by luks threaded encryption > in commit 8ac0f15f335 My fault, I'm sorry :( And great thanks for investigating this! > > Bugzilla: https://bugzilla.redhat.com/show_bug.cgi?id=1745922 > > The corruption happens

Re: [Qemu-devel] [PATCH v2 1/3] block/qcow2: refactoring of threaded encryption code

2019-09-07 Thread Vladimir Sementsov-Ogievskiy
06.09.2019 22:57, Maxim Levitsky wrote: > This commit tries to clarify few function arguments, > and add comments describing the encrypt/decrypt interface > > Signed-off-by: Maxim Levitsky > --- > block/qcow2-cluster.c | 10 +++ > block/qcow2-threads.c | 61