[Qemu-devel] [PATCH v3] slirp: check for ioctlsocket error and 0-length udp payload.

2019-03-01 Thread Vic Lee
Sometimes sorecvfrom() is called from slirp.c because revents == G_IO_IN, but there is 0 bytes available and recvfrom could be blocking indefinitely. This is likely due to 0-length udp payload. This also adds an error checking for ioctlsocket. Signed-off-by: Vic Lee --- slirp/socket.c | 10 +

Re: [Qemu-devel] [RFC PATCH 3/4] hw/arm/virt: Enable pc-dimm hotplug support

2019-03-01 Thread Igor Mammedov
On Mon, 28 Jan 2019 11:05:45 + Shameer Kolothum wrote: > pc-dimm memory hotplug is enabled using GPIO(Pin 2) based ACPI > event. Hot removal functionality is not yet supported. > > Signed-off-by: Shameer Kolothum > --- > hw/arm/virt.c | 57 ++

Re: [Qemu-devel] [PATCH v2 05/16] tests/tcg/mips: fix hello-mips compilation

2019-03-01 Thread Alex Bennée
Philippe Mathieu-Daudé writes: > Hi Alex, > > On 2/28/19 9:25 PM, Alex Bennée wrote: >> The compilation flags for proper building are in the source tree. We >> also fix exit to 0 so the result is counted as a success. >> >> Signed-off-by: Alex Bennée >> --- >> tests/tcg/mips/Makefile.target |

Re: [Qemu-devel] [RFC PATCH 3/4] hw/arm/virt: Enable pc-dimm hotplug support

2019-03-01 Thread Shameerali Kolothum Thodi
> -Original Message- > From: Igor Mammedov [mailto:imamm...@redhat.com] > Sent: 01 March 2019 09:12 > To: Shameerali Kolothum Thodi > Cc: eric.au...@redhat.com; shannon.zha...@gmail.com; > peter.mayd...@linaro.org; qemu-devel@nongnu.org; qemu-...@nongnu.org; > Linuxarm ; xuwei (O) > Su

Re: [Qemu-devel] [PATCH] qom: remove type_initialize() in object_new_with_type()

2019-03-01 Thread Igor Mammedov
On Fri, 1 Mar 2019 15:44:48 +0800 Wei Yang wrote: > Here is the abstraction of current call flow of object_new_with_type() > > object_initialize_with_type > type_initialize > object_initialize_with_type > type_initialize > > This is not necessary to spread type_init

[Qemu-devel] [PATCH v4 0/6] vfio-ccw: support hsch/csch (kernel part)

2019-03-01 Thread Cornelia Huck
[This is the Linux kernel part, git tree is available at https://git.kernel.org/pub/scm/linux/kernel/git/kvms390/vfio-ccw.git vfio-ccw-eagain-caps-v3 The companion QEMU patches are available at https://github.com/cohuck/qemu vfio-ccw-caps] Currently, vfio-ccw only relays START SUBCHANNEL request

[Qemu-devel] [PATCH v4 3/6] vfio-ccw: protect the I/O region

2019-03-01 Thread Cornelia Huck
Introduce a mutex to disallow concurrent reads or writes to the I/O region. This makes sure that the data the kernel or user space see is always consistent. The same mutex will be used to protect the async region as well. Reviewed-by: Eric Farman Signed-off-by: Cornelia Huck --- drivers/s390/c

[Qemu-devel] [PATCH v4 1/6] vfio-ccw: make it safe to access channel programs

2019-03-01 Thread Cornelia Huck
When we get a solicited interrupt, the start function may have been cleared by a csch, but we still have a channel program structure allocated. Make it safe to call the cp accessors in any case, so we can call them unconditionally. While at it, also make sure that functions called from other parts

[Qemu-devel] [PATCH v4 5/6] s390/cio: export hsch to modules

2019-03-01 Thread Cornelia Huck
The vfio-ccw code will need this, and it matches treatment of ssch and csch. Reviewed-by: Pierre Morel Reviewed-by: Halil Pasic Signed-off-by: Cornelia Huck --- drivers/s390/cio/ioasm.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/s390/cio/ioasm.c b/drivers/s390/cio/ioasm.c inde

[Qemu-devel] [PATCH v4 6/6] vfio-ccw: add handling for async channel instructions

2019-03-01 Thread Cornelia Huck
Add a region to the vfio-ccw device that can be used to submit asynchronous I/O instructions. ssch continues to be handled by the existing I/O region; the new region handles hsch and csch. Interrupt status continues to be reported through the same channels as for ssch. Signed-off-by: Cornelia Huc

[Qemu-devel] [PATCH v4 2/6] vfio-ccw: rework ssch state handling

2019-03-01 Thread Cornelia Huck
The flow for processing ssch requests can be improved by splitting the BUSY state: - CP_PROCESSING: We reject any user space requests while we are in the process of translating a channel program and submitting it to the hardware. Use -EAGAIN to signal user space that it should retry the requ

[Qemu-devel] [PATCH v2] slirp: Fix build with gcc 9

2019-03-01 Thread Greg Kurz
Build fails with gcc 9: CC slirp/ndp_table.o slirp/ndp_table.c: In function ‘ndp_table_add’: slirp/ndp_table.c:31:23: error: taking address of packed member of ‘struct ndpentry’ may result in an unaligned pointer value [-Werror=address-of-packed-member] 31 | if (in6_equal(&ndp_

[Qemu-devel] [PATCH v3 0/2] vfio-ccw: support hsch/csch (QEMU part)

2019-03-01 Thread Cornelia Huck
[This is the QEMU part, git tree is available at https://github.com/cohuck/qemu vfio-ccw-caps The companion Linux kernel patches are available at https://git.kernel.org/pub/scm/linux/kernel/git/kvms390/vfio-ccw.git vfio-ccw-eagain-caps-v4] Currently, vfio-ccw only relays START SUBCHANNEL request

[Qemu-devel] [PATCH v3 1/2] vfio-ccw: new capability chain support

2019-03-01 Thread Cornelia Huck
To be replaced with a real linux-headers update. Signed-off-by: Cornelia Huck --- linux-headers/linux/vfio.h | 4 linux-headers/linux/vfio_ccw.h | 12 2 files changed, 16 insertions(+) diff --git a/linux-headers/linux/vfio.h b/linux-headers/linux/vfio.h index 12a7b1dc53c8

[Qemu-devel] [PATCH v4 4/6] vfio-ccw: add capabilities chain

2019-03-01 Thread Cornelia Huck
Allow to extend the regions used by vfio-ccw. The first user will be handling of halt and clear subchannel. Signed-off-by: Cornelia Huck --- drivers/s390/cio/vfio_ccw_ops.c | 186 drivers/s390/cio/vfio_ccw_private.h | 38 ++ include/uapi/linux/vfio.h

Re: [Qemu-devel] [PATCH v10 08/10] hw/arm/virt: Implement kvm_type function for 4.0 machine

2019-03-01 Thread Auger Eric
Hi Igor, On 2/28/19 5:19 PM, Igor Mammedov wrote: > On Thu, 28 Feb 2019 16:03:22 +0100 > Eric Auger wrote: > >> This patch implements the machine class kvm_type() callback. >> It returns the number of bits requested to implement the whole GPA >> range including the RAM and IO regions located bey

[Qemu-devel] [PATCH v3 2/2] vfio-ccw: support async command subregion

2019-03-01 Thread Cornelia Huck
A vfio-ccw device may provide an async command subregion for issuing halt/clear subchannel requests. If it is present, use it for sending halt/clear request to the device; if not, fall back to emulation (as done today). Signed-off-by: Cornelia Huck --- hw/s390x/css.c | 27 +++--

Re: [Qemu-devel] [PATCH v3 1/7] ui/cocoa: Ensure we have the iothread lock when calling into QEMU

2019-03-01 Thread Peter Maydell
On Thu, 28 Feb 2019 at 21:53, G 3 wrote: > On Mon, Feb 25, 2019 at 5:24 AM Peter Maydell > wrote: >> +// Utility function to run specified code block with iothread lock held >> +typedef void (^CodeBlock)(void); > > > Please don't use blocks. It would lock Mac OS X users into having to use > CLa

Re: [Qemu-devel] [PATCH v2] slirp: Fix build with gcc 9

2019-03-01 Thread Peter Maydell
On Fri, 1 Mar 2019 at 09:39, Greg Kurz wrote: > > Build fails with gcc 9: > > CC slirp/ndp_table.o > slirp/ndp_table.c: In function ‘ndp_table_add’: > slirp/ndp_table.c:31:23: error: taking address of packed member of ‘struct > ndpentry’ may result in an unaligned pointer value > [-Werror

Re: [Qemu-devel] [PULL v2 00/40] target/xtensa queue

2019-03-01 Thread Peter Maydell
On Thu, 28 Feb 2019 at 22:10, Max Filippov wrote: > > Hi Peter, > > please pull the following batch of target/xtensa updates. > Changes v1->v2: > - fix build with clang. > > The following changes since commit 1c3d45df5e94042d5fb2bb31416072563ab30e49: > > Merge remote-tracking branch 'remotes/eri

Re: [Qemu-devel] [PATCH v5 1/2] CODING_STYLE: specify the indent rule for multiline code

2019-03-01 Thread Stefano Garzarella
On Fri, Mar 01, 2019 at 10:01:46AM +0800, Wei Yang wrote: > We didn't specify the indent rule for multiline code here, which may > mislead users. And in current code, the code use various styles. > > Add this rule in CODING_STYLE to make sure this is clear to every one. > > Signed-off-by: Wei Yan

[Qemu-devel] [PATCH v2 1/5] contrib: gitdm: Update domain-map

2019-03-01 Thread Alex Bennée
From: Aleksandar Markovic Add Citrix, Huawei, Intel, and Microsoft to domain-map. Signed-off-by: Aleksandar Markovic [AJB: sorted, added Fujitsu] Signed-off-by: Alex Bennée --- contrib/gitdm/domain-map | 5 + 1 file changed, 5 insertions(+) diff --git a/contrib/gitdm/domain-map b/contrib

[Qemu-devel] [PATCH v2 0/5] gitdm/next updates

2019-03-01 Thread Alex Bennée
Hi, I misidentified a bunch of individual contributors as academics in the last series so I've fixed that now. I've also added Janus Technologies for Marcus. If everyone is happy with these changes I'll send in the PR. The following patches need review patch 0003/contrib gitdm add more individua

[Qemu-devel] [PATCH v2 5/5] contrib: gitdm: add a mapping for Janus Technologies

2019-03-01 Thread Alex Bennée
Currently this just includes Marcel who is a fairly prolific contributor. Cc: Marcel Apfelbaum Signed-off-by: Alex Bennée --- contrib/gitdm/group-map-janustech | 5 + gitdm.config | 1 + 2 files changed, 6 insertions(+) create mode 100644 contrib/gitdm/group-map-janust

[Qemu-devel] [PATCH v2 4/5] contrib: gitdm: another IBM email

2019-03-01 Thread Alex Bennée
Based on Tom's LinkedIn profile his QEMU work was while in IBM's virtualisation group. Reviewed-by: Tom Musta Signed-off-by: Alex Bennée --- contrib/gitdm/group-map-ibm | 1 + 1 file changed, 1 insertion(+) diff --git a/contrib/gitdm/group-map-ibm b/contrib/gitdm/group-map-ibm index 22727319b3

[Qemu-devel] [PATCH v2 2/5] contrib: gitdm: Update Wave Computing group

2019-03-01 Thread Alex Bennée
From: Aleksandar Markovic Add all missing MIPS/Imgtec/Wave contributors (from the inception of QEMU). Signed-off-by: Aleksandar Markovic Signed-off-by: Alex Bennée --- contrib/gitdm/group-map-wavecomp | 12 1 file changed, 12 insertions(+) diff --git a/contrib/gitdm/group-map-wa

[Qemu-devel] [PATCH v2 3/5] contrib: gitdm: add more individual contributors

2019-03-01 Thread Alex Bennée
I know Richard's is right because I asked him in the pub. I'm guessing Fredrik's based on the fact I vaguely remember an Atari demo. The others I attributed to academic institutions last time I posted so have moved them to individuals as requested. Cc: Richard Henderson Cc: Fredrik Noring Cc: Sa

Re: [Qemu-devel] [PATCH v10 10/10] hw/arm/virt: Bump the 255GB initial RAM limit

2019-03-01 Thread Auger Eric
Hi Igor, On 2/28/19 5:29 PM, Igor Mammedov wrote: > On Thu, 28 Feb 2019 16:03:24 +0100 > Eric Auger wrote: > >> Now we have the extended memory map (high IO regions beyond the >> scalable RAM) and dynamic IPA range support at KVM/ARM level >> we can bump the legacy 255GB initial RAM limit. The a

Re: [Qemu-devel] [PATCH] migration: Cleanup during exit

2019-03-01 Thread Dr. David Alan Gilbert
* Peter Xu (pet...@redhat.com) wrote: > On Thu, Feb 28, 2019 at 12:28:22PM +, Dr. David Alan Gilbert wrote: > > * Daniel P. Berrangé (berra...@redhat.com) wrote: > > > On Thu, Feb 28, 2019 at 11:40:19AM +, Dr. David Alan Gilbert wrote: > > > > * Peter Xu (pet...@redhat.com) wrote: > > > > >

Re: [Qemu-devel] [PATCH v3 01/20] scripts/qemu.py: log QEMU launch command line

2019-03-01 Thread Cornelia Huck
On Wed, 20 Feb 2019 19:57:34 -0500 Cleber Rosa wrote: > Even when the launch of QEMU succeeds, it's useful to have the command > line recorded. > > Signed-off-by: Cleber Rosa > Reviewed-by: Caio Carrara > Reviewed-by: Philippe Mathieu-Daudé > Reviewed-by: Alex Bennée > --- > scripts/qemu.py

Re: [Qemu-devel] [PATCH v3 02/20] Acceptance tests: show avocado test execution by default

2019-03-01 Thread Cornelia Huck
On Wed, 20 Feb 2019 19:57:35 -0500 Cleber Rosa wrote: > The current version of the "check-acceptance" target will only show > one line for execution of all tests. That's probably OK if the tests > to be run are quick enough and they're always the same. > > But, there's already one test alone th

Re: [Qemu-devel] [PATCH v3 03/20] Acceptance tests: improve docstring on pick_default_qemu_bin()

2019-03-01 Thread Cornelia Huck
On Wed, 20 Feb 2019 19:57:36 -0500 Cleber Rosa wrote: > Making it clear what is returned by this utility function. > > Signed-off-by: Cleber Rosa > Reviewed-by: Caio Carrara > Reviewed-by: Philippe Mathieu-Daudé > --- > tests/acceptance/avocado_qemu/__init__.py | 4 > 1 file changed, 4

Re: [Qemu-devel] [PATCH v3 04/20] Acceptance tests: fix doc reference to avocado_qemu directory

2019-03-01 Thread Cornelia Huck
On Wed, 20 Feb 2019 19:57:37 -0500 Cleber Rosa wrote: > The "this directory" reference is misleading and confusing, it's a > leftover from when this text was proposed in a README file inside > the "tests/acceptance/avocado_qemu" directory. > > When that text was moved to the top level docs direc

[Qemu-devel] [Bug 1818207] [NEW] [aarch64] VM status remains "running" after it's suspended

2019-03-01 Thread Huan Xiong
Public bug reported: The issue is observed on aarch64 (I didn't check x86) with latest upstream QEMU bits. Steps to reproduce: 1) start guest 2) suspend guest with this command: # echo mem > /sys/power/state Check console messages, which should indicate that guest has been suspended. 3) ch

Re: [Qemu-devel] [RFC PATCH 3/4] hw/arm/virt: Enable pc-dimm hotplug support

2019-03-01 Thread Igor Mammedov
On Fri, 1 Mar 2019 09:23:11 + Shameerali Kolothum Thodi wrote: > > -Original Message- > > From: Igor Mammedov [mailto:imamm...@redhat.com] > > Sent: 01 March 2019 09:12 > > To: Shameerali Kolothum Thodi > > Cc: eric.au...@redhat.com; shannon.zha...@gmail.com; > > peter.mayd...@linaro

Re: [Qemu-devel] [PATCH v3 05/20] Acceptance tests: introduce arch parameter and attribute

2019-03-01 Thread Cornelia Huck
On Wed, 20 Feb 2019 19:57:38 -0500 Cleber Rosa wrote: > It's useful to define the architecture that should be used in > situations such as: > * the intended target of the QEMU binary to be used on tests > * the architecture of code to be run within the QEMU binary, such >as a kernel image o

Re: [Qemu-devel] [PATCH v10 10/10] hw/arm/virt: Bump the 255GB initial RAM limit

2019-03-01 Thread Igor Mammedov
On Fri, 1 Mar 2019 11:08:17 +0100 Auger Eric wrote: > Hi Igor, > > On 2/28/19 5:29 PM, Igor Mammedov wrote: > > On Thu, 28 Feb 2019 16:03:24 +0100 > > Eric Auger wrote: > > > >> Now we have the extended memory map (high IO regions beyond the > >> scalable RAM) and dynamic IPA range support a

Re: [Qemu-devel] [PULL 40/50] spapr_events: add support for phb hotplug events

2019-03-01 Thread David Hildenbrand
On 01.03.19 02:31, Michael Roth wrote: > Quoting Thomas Huth (2019-02-28 12:40:52) >> On 26/02/2019 05.52, David Gibson wrote: >>> From: Michael Roth >>> >>> Extend the existing EPOW event format we use for PCI >>> devices to emit PHB plug/unplug events. >>> >>> Signed-off-by: Michael Roth >>> Re

Re: [Qemu-devel] [PATCH v3 06/20] Acceptance tests: use "arch:" tag to filter target specific tests

2019-03-01 Thread Cornelia Huck
On Wed, 20 Feb 2019 19:57:39 -0500 Cleber Rosa wrote: > Currently, the only test that contains some target architecture > information is "boot_linux_console.py" which test contains a "x86_64" But there are two others changed by you here, aren't there? > tag. But that tag is not respected in th

Re: [Qemu-devel] [RFC PATCH 3/4] hw/arm/virt: Enable pc-dimm hotplug support

2019-03-01 Thread Igor Mammedov
On Fri, 1 Mar 2019 11:26:35 +0100 Igor Mammedov wrote: > On Fri, 1 Mar 2019 09:23:11 + > Shameerali Kolothum Thodi wrote: > > > > -Original Message- > > > From: Igor Mammedov [mailto:imamm...@redhat.com] > > > Sent: 01 March 2019 09:12 > > > To: Shameerali Kolothum Thodi > > > Cc:

Re: [Qemu-devel] [PATCH v3 07/20] Acceptance tests: look for target architecture in test tags first

2019-03-01 Thread Cornelia Huck
On Wed, 20 Feb 2019 19:57:40 -0500 Cleber Rosa wrote: > A test can, optionally, be tagged for one or many architectures. If a > test has been tagged for a single architecture, there's a high chance > that the test won't run on other architectures. This changes the > default order of choosing a

Re: [Qemu-devel] [PULL 00/13] MAINTAINERS, test and m68k

2019-03-01 Thread Peter Maydell
On Thu, 28 Feb 2019 at 12:28, Thomas Huth wrote: > > Hi Peter, > > the following changes since commit adf2e451f357e993f173ba9b4176dbf3e65fee7e: > > Merge remote-tracking branch 'remotes/kevin/tags/for-upstream' into staging > (2019-02-26 19:04:47 +) > > are available in the git repository

Re: [Qemu-devel] [PATCH v3 08/20] Boot Linux Console Test: rename the x86_64 after the arch and machine

2019-03-01 Thread Cornelia Huck
On Wed, 20 Feb 2019 19:57:41 -0500 Cleber Rosa wrote: > Given that the test is specific to x86_64 and pc, and new tests are > going to be added to the same class, let's rename it accordingly. > Also, let's make the class documentation not architecture specific. > > Signed-off-by: Cleber Rosa >

Re: [Qemu-devel] [PATCH v3 1/2] hostmem: simplify ifdef-s in file_backend_memory_alloc()

2019-03-01 Thread Igor Mammedov
On Thu, 14 Feb 2019 16:16:19 +0800 Stefan Hajnoczi wrote: > On Thu, Feb 14, 2019 at 03:26:29PM +0800, Wei Yang wrote: > > Maybe change the title > > > >s/hotmem/hostmem-file/ > > > > would be more proper. > > > > I missed this in previous review. > > You're right. This can be fixed wh

Re: [Qemu-devel] [PATCH v3 09/20] Boot Linux Console Test: update the x86_64 kernel

2019-03-01 Thread Cornelia Huck
On Wed, 20 Feb 2019 19:57:42 -0500 Cleber Rosa wrote: > To the stock Fedora 29 kernel, from the Fedora 28. New tests will be > added using the 29 kernel, so for consistency, let's also update it > here. > > Signed-off-by: Cleber Rosa > Reviewed-by: Caio Carrara > --- > tests/acceptance/boot_

Re: [Qemu-devel] [PATCH v3 10/20] Boot Linux Console Test: add common kernel command line options

2019-03-01 Thread Cornelia Huck
On Wed, 20 Feb 2019 19:57:43 -0500 Cleber Rosa wrote: > The 'printk.time=0' option makes it easier to parse the console > output. Let's set it as a default, and reusable, kernel command line > options for this and future similar tests. > > Signed-off-by: Cleber Rosa > Reviewed-by: Philippe Mat

Re: [Qemu-devel] [PATCH] hw/arm/acpi: enable SHPC native hot plug

2019-03-01 Thread Igor Mammedov
On Fri, 1 Mar 2019 10:28:30 +0800 Heyi Guo wrote: > After the introduction of generic PCIe root port and PCIe-PCI bridge, > we will also have SHPC controller on ARM, so just enalbe SHPC native > hot plug. Just out of curiosity, An understand the need for SHPC on plain PCI but in case of PCIe why

Re: [Qemu-devel] [PATCH v3 11/20] Boot Linux Console Test: increase timeout

2019-03-01 Thread Cornelia Huck
On Wed, 20 Feb 2019 19:57:44 -0500 Cleber Rosa wrote: > When running on very low powered environments, some tests may time out > causing false negatives. As a conservative change, and for > considering that human time (investigating false negatives) is worth > more than some extra machine cycles

Re: [Qemu-devel] [PATCH v3 12/20] Boot Linux Console Test: refactor the console watcher into utility method

2019-03-01 Thread Cornelia Huck
On Wed, 20 Feb 2019 19:57:45 -0500 Cleber Rosa wrote: > This introduces a utility method that monitors the console device and > looks for either a message that signals the test success or failure. > > Signed-off-by: Cleber Rosa > Reviewed-by: Caio Carrara > Reviewed-by: Philippe Mathieu-Daudé

Re: [Qemu-devel] [PULL 40/50] spapr_events: add support for phb hotplug events

2019-03-01 Thread Greg Kurz
On Fri, 1 Mar 2019 11:30:18 +0100 David Hildenbrand wrote: > On 01.03.19 02:31, Michael Roth wrote: > > Quoting Thomas Huth (2019-02-28 12:40:52) > >> On 26/02/2019 05.52, David Gibson wrote: > >>> From: Michael Roth > >>> > >>> Extend the existing EPOW event format we use for PCI > >>> devi

Re: [Qemu-devel] [PULL 40/50] spapr_events: add support for phb hotplug events

2019-03-01 Thread Thomas Huth
On 01/03/2019 11.48, Greg Kurz wrote: > On Fri, 1 Mar 2019 11:30:18 +0100 > David Hildenbrand wrote: > >> On 01.03.19 02:31, Michael Roth wrote: >>> Quoting Thomas Huth (2019-02-28 12:40:52) On 26/02/2019 05.52, David Gibson wrote: > From: Michael Roth > > Extend the existin

Re: [Qemu-devel] [RFC PATCH 3/4] hw/arm/virt: Enable pc-dimm hotplug support

2019-03-01 Thread Shameerali Kolothum Thodi
> -Original Message- > From: Qemu-devel > [mailto:qemu-devel-bounces+shameerali.kolothum.thodi=huawei.com@nongn > u.org] On Behalf Of Igor Mammedov > Sent: 01 March 2019 10:34 > To: Shameerali Kolothum Thodi > Cc: peter.mayd...@linaro.org; shannon.zha...@gmail.com; > qemu-devel@nongnu.o

Re: [Qemu-devel] [PATCH v3 13/20] scripts/qemu.py: support adding a console with the default serial device

2019-03-01 Thread Cornelia Huck
On Wed, 20 Feb 2019 19:57:46 -0500 Cleber Rosa wrote: > The set_console() utility function traditionally adds a device either > based on the explicitly given device type, or based on the machine type, > a known good type of device. Hm, I find this sentence hard to parse... maybe it should be "ei

Re: [Qemu-devel] [PULL 0/4] xen queue 2019-02-28

2019-03-01 Thread Peter Maydell
On Thu, 28 Feb 2019 at 17:34, Anthony PERARD wrote: > > The following changes since commit 711d13d5e2e160c1c3bcbd302af6df3980a99469: > > Merge remote-tracking branch > 'remotes/amarkovic/tags/mips-queue-feb-27-2019' into staging (2019-02-28 > 12:59:49 +) > > are available in the Git reposi

Re: [Qemu-devel] [PATCH] hw/nvram/fw_cfg: Move boot_splash_filedata variables into fw_cfg.c

2019-03-01 Thread Thomas Huth
On 25/02/2019 19.31, Laszlo Ersek wrote: > Hi Thomas, > > On 02/25/19 17:14, Thomas Huth wrote: >> The global boot_splash_filedata and boot_splash_filedata_size variables >> are only used in fw_cfg.c. So there is really no need that these need >> to be global and reside in vl.c. Move them to fw_cf

Re: [Qemu-devel] [PATCH] hw/arm/acpi: enable SHPC native hot plug

2019-03-01 Thread Heyi Guo
On 2019/3/1 18:44, Igor Mammedov wrote: On Fri, 1 Mar 2019 10:28:30 +0800 Heyi Guo wrote: After the introduction of generic PCIe root port and PCIe-PCI bridge, we will also have SHPC controller on ARM, so just enalbe SHPC native hot plug. Just out of curiosity, An understand the need for S

Re: [Qemu-devel] [RFC] multi phase reset

2019-03-01 Thread Peter Maydell
On Mon, 25 Feb 2019 at 10:49, Damien Hedde wrote: > I had more thought about the reset problem and what we want to achieve > (add power gating and clock support). > Feel free to comment. I'll start to implement this and send a first > version with a reroll of everything when it's ready. I general

Re: [Qemu-devel] [PATCH] virtio-blk: dataplane: release AioContext before blk_set_aio_context

2019-03-01 Thread Kevin Wolf
Am 28.02.2019 um 19:36 hat Sergio Lopez geschrieben: > On Thu, Feb 28, 2019 at 06:22:02PM +0100, Kevin Wolf wrote: > > Am 28.02.2019 um 18:04 hat Sergio Lopez geschrieben: > > > On Thu, Feb 28, 2019 at 04:50:53PM +0100, Kevin Wolf wrote: > > > > Am 28.02.2019 um 16:01 hat Sergio Lopez geschrieben:

[Qemu-devel] [PATCH v2 00/32] s390x/tcg: Vector Instruction Support Part 1

2019-03-01 Thread David Hildenbrand
This is the first part of vector instruction support for s390x. Parts will be sent and reviewed piece by piece. Part 1: Vector Support Instructions Part 2: Vector Integer Instructions Part 3: Vector String Instructions Part 4: Vector Floating-Point Instructions The current state can be found at (

[Qemu-devel] [PATCH v2 01/32] s390x/tcg: Define vector instruction formats

2019-03-01 Thread David Hildenbrand
These are the new instruction formats related to vector instructions as up to the z14 (a.k.a. latest PoP). As v2 appeares (like x2 in VRX) with d2/b2 in VRV, we have to assign it a higher field number to avoid collisions. Properly take care of the MSB (to be able to address 32 registers) for each

[Qemu-devel] [PATCH v2 02/32] s390x/tcg: Check vector register instructions at central point

2019-03-01 Thread David Hildenbrand
Check them at a central point. We'll use a new instruction flag to flag all vector instructions (IF_VEC) and handle it very similar to AFP, whereby we use another unused position in the PSW mask to store the state of vector register enablement per translation block. Reviewed-by: Richard Henderson

[Qemu-devel] [PATCH v2 05/32] s390x/tcg: Implement VECTOR GENERATE BYTE MASK

2019-03-01 Thread David Hildenbrand
Let's optimize it for the common cases (setting a vector to zero or all ones) - courtesy of Richard. Signed-off-by: David Hildenbrand --- target/s390x/insn-data.def | 2 ++ target/s390x/translate.c| 1 + target/s390x/translate_vx.inc.c | 39 + 3 fil

[Qemu-devel] [PATCH v2 07/32] s390x/tcg: Implement VECTOR LOAD

2019-03-01 Thread David Hildenbrand
When loading from memory, load both elements into temps first before modifying the target vector Loading with strange alingment from the end of the address space will not properly wrap, we can ignore that for now. Signed-off-by: David Hildenbrand --- target/s390x/insn-data.def | 3 +++ ta

[Qemu-devel] [PATCH v2 09/32] s390x/tcg: Implement VECTOR LOAD ELEMENT

2019-03-01 Thread David Hildenbrand
Fairly easy, load with desired size and store it into the right element. Reviewed-by: Richard Henderson Signed-off-by: David Hildenbrand --- target/s390x/insn-data.def | 5 + target/s390x/translate_vx.inc.c | 18 ++ 2 files changed, 23 insertions(+) diff --git a/targe

[Qemu-devel] [PATCH v2 04/32] s390x/tcg: Implement VECTOR GATHER ELEMENT

2019-03-01 Thread David Hildenbrand
Let's start with a more involved one, but it is the first in the list of vector support instructions (introduced with the vector facility). Good thing is, we need a lot of basic infrastructure for this. Reading and writing vector elements as well as checking element validity. All vector instructi

[Qemu-devel] [PATCH v2 06/32] s390x/tcg: Implement VECTOR GENERATE MASK

2019-03-01 Thread David Hildenbrand
Add gen_gvec_dupi() for handling duplication of immediates, so it can be reused later. Reviewed-by: Richard Henderson --- target/s390x/insn-data.def | 2 ++ target/s390x/translate_vx.inc.c | 47 + 2 files changed, 49 insertions(+) diff --git a/target/s390x/

[Qemu-devel] [PATCH v2 03/32] s390x/tcg: Utilities for vector instruction helpers

2019-03-01 Thread David Hildenbrand
We'll have to read/write vector elements quite frequently from helpers. The tricky bit is properly taking care of endianess. Handle it similar to aarch64. target/s390x/vec_helper.c will later also contain vector support instruction helpers. Signed-off-by: David Hildenbrand --- target/s390x/Make

[Qemu-devel] [PATCH v2 10/32] s390x/tcg: Implement VECTOR LOAD ELEMENT IMMEDIATE

2019-03-01 Thread David Hildenbrand
Take care of properly sign-extending the immediate. Reviewed-by: Richard Henderson Signed-off-by: David Hildenbrand --- target/s390x/insn-data.def | 5 + target/s390x/translate_vx.inc.c | 17 + 2 files changed, 22 insertions(+) diff --git a/target/s390x/insn-data.def

[Qemu-devel] [PATCH v2 16/32] s390x/tcg: Implement VECTOR LOAD VR FROM GRS DISJOINT

2019-03-01 Thread David Hildenbrand
Fairly easy, just load from to gprs into a single vector. Reviewed-by: Richard Henderson Signed-off-by: David Hildenbrand --- target/s390x/insn-data.def | 2 ++ target/s390x/translate_vx.inc.c | 7 +++ 2 files changed, 9 insertions(+) diff --git a/target/s390x/insn-data.def b/target/s

[Qemu-devel] [PATCH v2 12/32] s390x/tcg: Implement VECTOR LOAD LOGICAL ELEMENT AND ZERO

2019-03-01 Thread David Hildenbrand
Fairly easy, zero out the vector before we load the desired element. Load the element before touching the vector. Signed-off-by: David Hildenbrand --- target/s390x/insn-data.def | 2 ++ target/s390x/translate_vx.inc.c | 46 + 2 files changed, 48 insertions(+

[Qemu-devel] [PATCH v2 11/32] s390x/tcg: Implement VECTOR LOAD GR FROM VR ELEMENT

2019-03-01 Thread David Hildenbrand
To avoid an helper, we have to do the actual calculation of the element address (offset in cpu_env + cpu_env) manually. Factor that out into get_vec_element_ptr_i64(). The same logic will be reused for "VECTOR LOAD VR ELEMENT FROM GR". Signed-off-by: David Hildenbrand --- target/s390x/insn-data.

[Qemu-devel] [PATCH v2 18/32] s390x/tcg: Implement VECTOR MERGE (HIGH|LOW)

2019-03-01 Thread David Hildenbrand
We cannot use gvec expansion as source and destination elements are have different element numbers. So we'll expand using a fancy loop. Also, we have to take care of overlapping source and destination registers, therefore use a safe evaluation irder depending on the operation. Signed-off-by: David

[Qemu-devel] [PATCH v2 13/32] s390x/tcg: Implement VECTOR LOAD MULTIPLE

2019-03-01 Thread David Hildenbrand
Try to load the last element first. Access to the first element will be checked afterwards. This way, we can guarantee that the vector is not modified before we checked for all possible exceptions. (16 vectors cannot cross more than two pages) Reviewed-by: Richard Henderson Signed-off-by: David H

[Qemu-devel] [PATCH v2 08/32] s390x/tcg: Implement VECTOR LOAD AND REPLICATE

2019-03-01 Thread David Hildenbrand
We can use tcg_gen_gvec_dup_i64() to carry out the duplication. Reviewed-by: Richard Henderson Signed-off-by: David Hildenbrand --- target/s390x/insn-data.def | 2 ++ target/s390x/translate_vx.inc.c | 19 +++ 2 files changed, 21 insertions(+) diff --git a/target/s390x/ins

[Qemu-devel] [PATCH v2 20/32] s390x/tcg: Implement VECTOR PERMUTE

2019-03-01 Thread David Hildenbrand
Take care of overlying inputs and outputs by using a temporary vector. Reviewed-by: Richard Henderson Signed-off-by: David Hildenbrand --- target/s390x/helper.h | 1 + target/s390x/insn-data.def | 1 + target/s390x/translate_vx.inc.c | 12 target/s390x/vec_helper.c

[Qemu-devel] [PATCH v2 15/32] s390x/tcg: Implement VECTOR LOAD VR ELEMENT FROM GR

2019-03-01 Thread David Hildenbrand
Very similar to VECTOR LOAD GR FROM VR ELEMENT, just the opposite direction. Also provide a fast path in case we don't care about the register content. Reviewed-by: Richard Henderson Signed-off-by: David Hildenbrand --- target/s390x/insn-data.def | 2 ++ target/s390x/translate_vx.inc.c |

[Qemu-devel] [PATCH v2 14/32] s390x/tcg: Implement VECTOR LOAD TO BLOCK BOUNDARY

2019-03-01 Thread David Hildenbrand
Very similar to LOAD COUNT TO BLOCK BOUNDARY, but instead of only calculating, the actual vector is loaded. Use a temporary vector to not modify the real vector on exceptions. Initialize that one to zero, to not leak any data. Provide a fast path if we're loading a full vector. As we don't have gv

[Qemu-devel] [PATCH v2 17/32] s390x/tcg: Implement VECTOR LOAD WITH LENGTH

2019-03-01 Thread David Hildenbrand
We can reuse the helper introduced along with VECTOR LOAD TO BLOCK BOUNDARY. We just have to take care of converting the highest index into a length. Reviewed-by: Richard Henderson Signed-off-by: David Hildenbrand --- target/s390x/insn-data.def | 2 ++ target/s390x/translate.c| 7

[Qemu-devel] [PATCH v2 21/32] s390x/tcg: Implement VECTOR PERMUTE DOUBLEWORD IMMEDIATE

2019-03-01 Thread David Hildenbrand
Read the whole input before modifying the destination vector. Reviewed-by: Richard Henderson Signed-off-by: David Hildenbrand --- target/s390x/insn-data.def | 2 ++ target/s390x/translate_vx.inc.c | 16 2 files changed, 18 insertions(+) diff --git a/target/s390x/insn-dat

[Qemu-devel] [PATCH v2 25/32] s390x/tcg: Implement VECTOR SELECT

2019-03-01 Thread David Hildenbrand
Provide an implementation based on i64 and on real host vectors. Signed-off-by: David Hildenbrand --- target/s390x/insn-data.def | 2 ++ target/s390x/translate_vx.inc.c | 41 + 2 files changed, 43 insertions(+) diff --git a/target/s390x/insn-data.def b/targ

[Qemu-devel] [PATCH v2 30/32] s390x/tcg: Implement VECTOR STORE MULTIPLE

2019-03-01 Thread David Hildenbrand
Similar to VECTOR LOAD MULTIPLE, just the opposite direction. Probe write access first. Reviewed-by: Richard Henderson Signed-off-by: David Hildenbrand --- target/s390x/insn-data.def | 2 ++ target/s390x/translate_vx.inc.c | 30 ++ 2 files changed, 32 insertion

[Qemu-devel] [PATCH v2 19/32] s390x/tcg: Implement VECTOR PACK *

2019-03-01 Thread David Hildenbrand
This is a big one. Luckily we only have a limited set of such nasty instructions. We'll implement all variants with helpers, except when sorces and destinations don't overlap for VECTOR PACK. Provide different helpers when the cc is to be modified. We'll return the cc then via env->cc_op. Signed-

[Qemu-devel] [PATCH v2 22/32] s390x/tcg: Implement VECTOR REPLICATE

2019-03-01 Thread David Hildenbrand
Load the element and replicate it using gvec_dup. Reviewed-by: Richard Henderson Signed-off-by: David Hildenbrand --- target/s390x/insn-data.def | 2 ++ target/s390x/translate_vx.inc.c | 18 ++ 2 files changed, 20 insertions(+) diff --git a/target/s390x/insn-data.def b/ta

[Qemu-devel] [PATCH v2 27/32] s390x/tcg: Provide probe_write helper

2019-03-01 Thread David Hildenbrand
Instead of checking e.g. the first access on every touched page, we should check the actual access, otherwise we might get false positives when Low Address Protection (LAP) is active. As probe_write() can only deal with accesses to one page, we have to loop. Use i64 for the length, although not ne

[Qemu-devel] [PATCH v2 23/32] s390x/tcg: Implement VECTOR REPLICATE IMMEDIATE

2019-03-01 Thread David Hildenbrand
Like VECTOR REPLICATE, but the element to be replicated comes from an immediate. Signed-off-by: David Hildenbrand --- target/s390x/insn-data.def | 2 ++ target/s390x/translate_vx.inc.c | 14 ++ 2 files changed, 16 insertions(+) diff --git a/target/s390x/insn-data.def b/target/

[Qemu-devel] [PATCH v2 28/32] s390x/tcg: Implement VECTOR STORE

2019-03-01 Thread David Hildenbrand
Properly probe the whole access first. Reviewed-by: Richard Henderson Signed-off-by: David Hildenbrand --- target/s390x/insn-data.def | 2 ++ target/s390x/translate_vx.inc.c | 17 + 2 files changed, 19 insertions(+) diff --git a/target/s390x/insn-data.def b/target/s390x/i

[Qemu-devel] [PATCH v2 29/32] s390x/tcg: Implement VECTOR STORE ELEMENT

2019-03-01 Thread David Hildenbrand
As we only store one element, there is nothing to consider regarding exceptions. Reviewed-by: Richard Henderson Signed-off-by: David Hildenbrand --- target/s390x/insn-data.def | 5 + target/s390x/translate_vx.inc.c | 18 ++ 2 files changed, 23 insertions(+) diff --git

[Qemu-devel] [PATCH v2 24/32] s390x/tcg: Implement VECTOR SCATTER ELEMENT

2019-03-01 Thread David Hildenbrand
Similar to VECTOR GATHER ELEMENT, but the other direction. Reviewed-by: Richard Henderson Signed-off-by: David Hildenbrand --- target/s390x/insn-data.def | 3 +++ target/s390x/translate_vx.inc.c | 22 ++ 2 files changed, 25 insertions(+) diff --git a/target/s390x/insn

[Qemu-devel] [PATCH v2 31/32] s390x/tcg: Implement VECTOR STORE WITH LENGTH

2019-03-01 Thread David Hildenbrand
Very similar to VECTOR LOAD WITH LENGTH, just the opposite direction. Properly probe write access before modifying memory. Reviewed-by: Richard Henderson Signed-off-by: David Hildenbrand --- target/s390x/helper.h | 1 + target/s390x/insn-data.def | 2 ++ target/s390x/translate_

[Qemu-devel] [PATCH v2 26/32] s390x/tcg: Implement VECTOR SIGN EXTEND TO DOUBLEWORD

2019-03-01 Thread David Hildenbrand
Load both elements signed and store them into the two 64 bit elements. Reviewed-by: Richard Henderson Signed-off-by: David Hildenbrand --- target/s390x/insn-data.def | 2 ++ target/s390x/translate_vx.inc.c | 33 + 2 files changed, 35 insertions(+) diff --g

[Qemu-devel] [PATCH v2 32/32] s390x/tcg: Implement VECTOR UNPACK *

2019-03-01 Thread David Hildenbrand
Combine all variant in a single handler. As source and destination have different element sizes, we can't use gvec expansion. Expand manually. Also watch out for overlapping source and destination registers. Use a safe evaluation order depending on the operation. Reviewed-by: Richard Henderson Si

Re: [Qemu-devel] [PULL 40/50] spapr_events: add support for phb hotplug events

2019-03-01 Thread Greg Kurz
On Fri, 1 Mar 2019 11:49:30 +0100 Thomas Huth wrote: > On 01/03/2019 11.48, Greg Kurz wrote: > > On Fri, 1 Mar 2019 11:30:18 +0100 > > David Hildenbrand wrote: > > > >> On 01.03.19 02:31, Michael Roth wrote: > >>> Quoting Thomas Huth (2019-02-28 12:40:52) > On 26/02/2019 05.52, Dav

Re: [Qemu-devel] [PATCH 09/13] block: Add 'runtime_opts' and 'mutable_opts' fields to BlockDriver

2019-03-01 Thread Alberto Garcia
On Tue 12 Feb 2019 07:02:31 PM CET, Kevin Wolf wrote: >> diff --git a/include/block/block_int.h b/include/block/block_int.h >> index fd0e88d17a..e680dda86b 100644 >> --- a/include/block/block_int.h >> +++ b/include/block/block_int.h >> @@ -345,6 +345,13 @@ struct BlockDriver { >> >> /* List

[Qemu-devel] [PATCH] tests/qemu-iotests/235: Allow fallback to tcg and remove it from quick group

2019-03-01 Thread Thomas Huth
iotest 235 currently only works with KVM - this is bad for systems where it is not available, e.g. CI pipelines. The test also works when using "tcg" as accelerator, so we can simply add that to the list of accelerators, too. But still, there might be the case that someone compiled their QEMU with

Re: [Qemu-devel] [PATCH 09/13] block: Add 'runtime_opts' and 'mutable_opts' fields to BlockDriver

2019-03-01 Thread Kevin Wolf
Am 01.03.2019 um 13:12 hat Alberto Garcia geschrieben: > On Tue 12 Feb 2019 07:02:31 PM CET, Kevin Wolf wrote: > >> diff --git a/include/block/block_int.h b/include/block/block_int.h > >> index fd0e88d17a..e680dda86b 100644 > >> --- a/include/block/block_int.h > >> +++ b/include/block/block_int.h >

Re: [Qemu-devel] [PATCH v2 00/32] s390x/tcg: Vector Instruction Support Part 1

2019-03-01 Thread no-reply
Patchew URL: https://patchew.org/QEMU/20190301115413.27153-1-da...@redhat.com/ Hi, This series seems to have some coding style problems. See output below for more information: Message-id: 20190301115413.27153-1-da...@redhat.com Subject: [Qemu-devel] [PATCH v2 00/32] s390x/tcg: Vector Instructi

Re: [Qemu-devel] [PATCH 09/13] block: Add 'runtime_opts' and 'mutable_opts' fields to BlockDriver

2019-03-01 Thread Alberto Garcia
On Fri 01 Mar 2019 01:36:08 PM CET, Kevin Wolf wrote: > Am 01.03.2019 um 13:12 hat Alberto Garcia geschrieben: >> On Tue 12 Feb 2019 07:02:31 PM CET, Kevin Wolf wrote: >> >> diff --git a/include/block/block_int.h b/include/block/block_int.h >> >> index fd0e88d17a..e680dda86b 100644 >> >> --- a/incl

Re: [Qemu-devel] [PATCH] hw/nvram/fw_cfg: Move boot_splash_filedata variables into fw_cfg.c

2019-03-01 Thread Philippe Mathieu-Daudé
Hi Thomas, On 3/1/19 12:28 PM, Thomas Huth wrote: > On 25/02/2019 19.31, Laszlo Ersek wrote: >> Hi Thomas, >> >> On 02/25/19 17:14, Thomas Huth wrote: >>> The global boot_splash_filedata and boot_splash_filedata_size variables >>> are only used in fw_cfg.c. So there is really no need that these ne

Re: [Qemu-devel] [PATCH] hw/nvram/fw_cfg: Move boot_splash_filedata variables into fw_cfg.c

2019-03-01 Thread Thomas Huth
On 01/03/2019 13.32, Philippe Mathieu-Daudé wrote: > Hi Thomas, > > On 3/1/19 12:28 PM, Thomas Huth wrote: >> On 25/02/2019 19.31, Laszlo Ersek wrote: >>> Hi Thomas, >>> >>> On 02/25/19 17:14, Thomas Huth wrote: The global boot_splash_filedata and boot_splash_filedata_size variables are

Re: [Qemu-devel] [PATCH v3 4/9] {monitor, hw/pvrdma}: Expose device internals via monitor interface

2019-03-01 Thread Yuval Shaia
On Fri, Mar 01, 2019 at 08:17:02AM +0100, Markus Armbruster wrote: > Marcel Apfelbaum writes: > > > Hi Yuval, > > > > On 2/27/19 4:06 PM, Yuval Shaia wrote: > >> Allow interrogating device internals through HMP interface. > >> The exposed indicators can be used for troubleshooting by developers o

  1   2   3   4   >