Re: [PATCH V4] target/i386/kvm: Add Hyper-V direct tlb flush support

2019-11-13 Thread Roman Kagan
On Wed, Nov 13, 2019 at 10:29:00AM +0100, Vitaly Kuznetsov wrote: > Roman Kagan writes: > > On Tue, Nov 12, 2019 at 11:34:27AM +0800, lantianyu1...@gmail.com wrote: > >> From: Tianyu Lan > >> > >> Hyper-V direct tlb flush targets KVM on Hyper-V guest. > >> Enable direct TLB flush for its guests

Re: virtio,iommu_platform=on

2019-11-13 Thread Michael S. Tsirkin
On Wed, Nov 13, 2019 at 03:44:28PM +1100, Alexey Kardashevskiy wrote: > > > On 12/11/2019 18:08, Michael S. Tsirkin wrote: > > On Tue, Nov 12, 2019 at 02:53:49PM +1100, Alexey Kardashevskiy wrote: > >> Hi! > >> > >> I am enabling IOMMU for virtio in the pseries firmware (SLOF) and seeing > >>

[Bug 1734792] Re: linux-user mode does not support memfd_create syscall

2019-11-13 Thread Laurent Vivier
9bdfa4d23f43 linux-user: add memfd_create ** Changed in: qemu Status: Confirmed => Fix Committed -- You received this bug notification because you are a member of qemu- devel-ml, which is subscribed to QEMU. https://bugs.launchpad.net/bugs/1734792 Title: linux-user mode does not

[Bug 1852115] Re: qemu --static user build fails with fedora rawhide glibc-2.30.9000

2019-11-13 Thread Laurent Vivier
Fixed by 0f1f2d4596ae ("linux-user: remove host stime() syscall") ** Changed in: qemu Status: Confirmed => Fix Committed -- You received this bug notification because you are a member of qemu- devel-ml, which is subscribed to QEMU. https://bugs.launchpad.net/bugs/1852115 Title: qemu

Re: QEMU for Qualcomm Hexagon - KVM Forum talk and code available

2019-11-13 Thread Alex Bennée
Taylor Simpson writes: > I had discussions with several people at the KVM Forum, and I’ve been > thinking about how to divide up the code for community review. Here is my > proposal for the steps. > > 1. linux-user changes + linux-user/hexagon + skeleton of target/hexagon > This is the

[PATCH v1 4/5] docs/devel: convert multi-thread-tcg to a .rst document

2019-11-13 Thread Alex Bennée
Signed-off-by: Alex Bennée --- docs/devel/index.rst | 1 + ...ti-thread-tcg.txt => multi-thread-tcg.rst} | 28 --- 2 files changed, 19 insertions(+), 10 deletions(-) rename docs/devel/{multi-thread-tcg.txt => multi-thread-tcg.rst} (96%) diff --git

Re: [PATCH] virtio: fix IO request length in virtio SCSI/block #PSBM-78839

2019-11-13 Thread Denis Plotnikov
On 06.11.2019 15:03, Michael S. Tsirkin wrote: > On Thu, Oct 24, 2019 at 11:34:34AM +, Denis Lunev wrote: >> On 10/24/19 12:28 AM, Michael S. Tsirkin wrote: >>> On Fri, Oct 18, 2019 at 02:55:47PM +0300, Denis Plotnikov wrote: From: "Denis V. Lunev" Linux guests submit IO

[PATCH] ahci: zero-initialize port struct

2019-11-13 Thread Gerd Hoffmann
Specifically port->driver.lchs needs clearing, otherwise seabios will try interpret whatever random crap happens to be there as disk geometry, which may or may not break boot depending on how lucky you are. Signed-off-by: Gerd Hoffmann --- src/hw/ahci.c | 1 + 1 file changed, 1 insertion(+)

Re: [PATCH V4] target/i386/kvm: Add Hyper-V direct tlb flush support

2019-11-13 Thread Vitaly Kuznetsov
Roman Kagan writes: > On Wed, Nov 13, 2019 at 10:29:00AM +0100, Vitaly Kuznetsov wrote: >> Roman Kagan writes: >> > On Tue, Nov 12, 2019 at 11:34:27AM +0800, lantianyu1...@gmail.com wrote: >> >> From: Tianyu Lan >> >> >> >> Hyper-V direct tlb flush targets KVM on Hyper-V guest. >> >> Enable

Re: [RFC PATCH 18/18] qemu-storage-daemon: Add --monitor option

2019-11-13 Thread Kevin Wolf
Am 12.11.2019 um 15:25 hat Markus Armbruster geschrieben: > Kevin Wolf writes: > > > This adds and parses the --monitor option, so that a QMP monitor can be > > used in the storage daemon. The monitor offers commands defined in the > > QAPI schema at storage-daemon/qapi/qapi-schema.json. > > I

[PATCH v1 2/5] docs/devel: rename plugins.rst to tcg-plugins.rst

2019-11-13 Thread Alex Bennée
This makes it a bit clearer what this is about. Signed-off-by: Alex Bennée --- docs/devel/index.rst| 2 +- docs/devel/{plugins.rst => tcg-plugins.rst} | 0 MAINTAINERS | 1 + 3 files changed, 2 insertions(+), 1 deletion(-) rename

Re: [PATCH v2 3/4] watchdog/aspeed: Improve watchdog timeout message

2019-11-13 Thread Alex Bennée
Joel Stanley writes: > Users benefit from knowing which watchdog timer has expired. The address > of the watchdog's registers unambiguously indicates which has expired, > so log that. > > Reviewed-by: Cédric Le Goater > Signed-off-by: Joel Stanley > --- > v2: Use HWADDR_PRIx > --- >

Re: [PATCH] qmp: Reset mon->commands on CHR_EVENT_CLOSED

2019-11-13 Thread Markus Armbruster
Jason Andryuk writes: > Currently, mon->commands is uninitialized until CHR_EVENT_OPENED where > it is set to _cap_negotiation_commands. After capability > negotiation, it is set to _commands. If the chardev is closed, > CHR_EVENT_CLOSED, mon->commands remains as _commands. Only once the >

Re: [PATCH] ahci: zero-initialize port struct

2019-11-13 Thread Laszlo Ersek
On 11/13/19 10:18, Gerd Hoffmann wrote: > Specifically port->driver.lchs needs clearing, otherwise seabios will s/driver/drive/ > try interpret whatever random crap happens to be there as disk geometry, > which may or may not break boot depending on how lucky you are. > > Signed-off-by: Gerd

Re: [PATCH v2 05/15] stubs: add stubs for io_uring interface

2019-11-13 Thread Stefan Hajnoczi
On Mon, Nov 11, 2019 at 12:13:47PM +0100, Kevin Wolf wrote: > Am 25.10.2019 um 18:04 hat Stefan Hajnoczi geschrieben: > > From: Aarushi Mehta > > > > Signed-off-by: Aarushi Mehta > > Signed-off-by: Stefan Hajnoczi > > This commit message needs to answer at least where these stubs are >

Re: [PATCH v2 03/15] block/block: add BDRV flag for io_uring

2019-11-13 Thread Stefan Hajnoczi
On Mon, Nov 11, 2019 at 05:25:04PM +0100, Max Reitz wrote: > On 11.11.19 11:57, Kevin Wolf wrote: > > Am 25.10.2019 um 18:04 hat Stefan Hajnoczi geschrieben: > >> From: Aarushi Mehta > >> > >> Signed-off-by: Aarushi Mehta > >> Reviewed-by: Maxim Levitsky > >> Signed-off-by: Stefan Hajnoczi >

Re: [PATCH v2 1/4] aspeed/sdmc: Make ast2600 default 1G

2019-11-13 Thread Alex Bennée
Joel Stanley writes: > Most boards have this much. > > Reviewed-by: Cédric Le Goater > Signed-off-by: Joel Stanley > --- > hw/misc/aspeed_sdmc.c | 6 +++--- > 1 file changed, 3 insertions(+), 3 deletions(-) > > diff --git a/hw/misc/aspeed_sdmc.c b/hw/misc/aspeed_sdmc.c > index

About MONITOR/MWAIT in i386 CPU model

2019-11-13 Thread Tao Xu
Hi Eduardo, After kvm use "-overcommit cpu-pm=on" to expose MONITOR/MWAIT (commit id 6f131f13e68d648a8e4f083c667ab1acd88ce4cd), the MONITOR/MWAIT feature in CPU model (phenom core2duo coreduo n270 Opteron_G3 EPYC Snowridge Denverton) may be unused. For example, when we boot a guest with

[Bug 1811758] Re: virtio-rng backend should use getentropy() syscall when available

2019-11-13 Thread Laurent Vivier
rng-builtin is the new RNG default backend for virtio-rng and is based on getrandom(). 0198c2621a1e virtio-rng: change default backend to rng-builtin 5f7655f6ef15 virtio-rng: Keep the default backend out of VirtIORNGConf 6c4e9d487fea rng-builtin: add an RNG backend that uses

[PATCH v1 5/5] .travis.yml: drop 32 bit systems from MAIN_SOFTMMU_TARGETS

2019-11-13 Thread Alex Bennée
The older clangs are still struggling to build and run everything withing the 50 minute timeout so lets lighten the load a bit more. We still have coverage for GCC and hopefully no obscure 32 bit guest only breakages slip through the cracks. Signed-off-by: Alex Bennée --- .travis.yml | 2 +- 1

[PATCH v1 1/5] tests/vm: make --interactive (and therefore DEBUG=1) unconditional

2019-11-13 Thread Alex Bennée
While the concept of only dropping to ssh if a test fails is nice it is more useful for this to be unconditional. You usually just want to get the build up and running and then noodle around debugging or attempting to replicate. Cc: Peter Maydell Signed-off-by: Alex Bennée --- v2 - fix

[PATCH for 4.2-rc2 v1 0/5] misc doc and testing fixes

2019-11-13 Thread Alex Bennée
Hi, As we approach release I'm just bundling up my random fixes for 4.2 into one tree for each release candidate. This has a minor fix for debugging vm builds and a number of minor documentation fixes including moving the MTTCG docs across to rst format. The final patch is a tweak to Travis to

Re: [PATCH v3 0/8] blockdev: avoid acquiring AioContext lock twice at do_drive_backup and do_blockdev_backup

2019-11-13 Thread Sergio Lopez
no-re...@patchew.org writes: > Patchew URL: https://patchew.org/QEMU/20191112113012.71136-1-...@redhat.com/ > > > > Hi, > > This series failed the docker-quick@centos7 build test. Please find the > testing commands and > their output below. If you have Docker installed, you can probably

Re: [PATCH 2/2] iotests: Test multiple blockdev-snapshot calls

2019-11-13 Thread Kevin Wolf
Am 08.11.2019 um 15:32 hat Alberto Garcia geschrieben: > On Fri 08 Nov 2019 09:53:12 AM CET, Kevin Wolf wrote: > > +# Test large write to a qcow2 image > > This doesn't belong here I guess :) Yes, fixed. > I wonder if this test could go in 245 instead. The headline for 245 is "Test cases for

Re: [PATCH 2/2] iotests: Test multiple blockdev-snapshot calls

2019-11-13 Thread Kevin Wolf
Am 12.11.2019 um 17:07 hat Peter Krempa geschrieben: > On Fri, Nov 08, 2019 at 09:53:12 +0100, Kevin Wolf wrote: > > Test that doing a second blockdev-snapshot doesn't make the first > > overlay's backing file go away. > > > > Signed-off-by: Kevin Wolf > > --- > > tests/qemu-iotests/273 |

How to extend QEMU's vhost-user tests after implementing vhost-user-blk device backend

2019-11-13 Thread Coiby Xu
Hi, I've implemented vhost-user-blk device backend by following https://wiki.qemu.org/Google_Summer_of_Code_2019#vhost-user-blk_device_backend. But I'm not sure what kind of tests I should write or to extend to take advantage of implemented vhost-user-blk device backend. The existing two tests

Re: [PATCH RFC] virtio-pci: disable vring processing when bus-mastering is disabled

2019-11-13 Thread Michael S. Tsirkin
On Tue, Nov 12, 2019 at 11:43:01PM -0600, Michael Roth wrote: > Currently the SLOF firmware for pseries guests will disable/re-enable > a PCI device multiple times via IO/MEM/MASTER bits of PCI_COMMAND > register after the initial probe/feature negotiation, as it tends to > work with a single

Re: [PATCH v9 Kernel 1/5] vfio: KABI for migration interface for device state

2019-11-13 Thread Cornelia Huck
On Tue, 12 Nov 2019 15:30:05 -0700 Alex Williamson wrote: > On Tue, 12 Nov 2019 22:33:36 +0530 > Kirti Wankhede wrote: > > > - Defined MIGRATION region type and sub-type. > > - Used 3 bits to define VFIO device states. > > Bit 0 => _RUNNING > > Bit 1 => _SAVING > > Bit 2 =>

Re: [PATCH v9 Qemu 00/15] Add migration support for VFIO devices

2019-11-13 Thread Cornelia Huck
On Tue, 12 Nov 2019 22:35:09 +0530 Kirti Wankhede wrote: > Hi, > > This Patch set adds migration support for VFIO devices in QEMU. > > This Patch set include patches as below: > Patch 1-3: > - Define KABI for VFIO device for migration support for device state and newly > added ioctl

Re: [PATCH] enable translating statx syscalls on more arches

2019-11-13 Thread Laurent Vivier
Le 13/11/2019 à 10:55, Aleksandar Markovic a écrit : > > > On Tuesday, November 12, 2019, Andrew Kelley > wrote: > > ping > > > > Hello, Andrew. > > I just want to advise you to send, if possible, a new version of the > patch, addressing whatt said in his

Re: [PATCH v2 00/15] io_uring: add Linux io_uring AIO engine

2019-11-13 Thread Stefan Hajnoczi
On Mon, Nov 04, 2019 at 11:32:33AM +0100, Stefan Hajnoczi wrote: > On Fri, Oct 25, 2019 at 06:04:29PM +0200, Stefan Hajnoczi wrote: > > v11: > > * Drop fd registration because it breaks QEMU's file locking and will need > > to > >be resolved in a separate patch series > > * Drop

[PATCH v1 3/5] docs/devel: update tcg-plugins.rst with API versioning details

2019-11-13 Thread Alex Bennée
While we are at it fix up the quoted code sections with the inline :: approach. Signed-off-by: Alex Bennée --- v2 - fix grammar - mention we also will fail to load outside the range - clean-up code sections --- docs/devel/tcg-plugins.rst | 27 +-- 1 file changed,

Re: [PATCH v2 2/4] aspeed/scu: Fix W1C behavior

2019-11-13 Thread Alex Bennée
Joel Stanley writes: > This models the clock write one to clear registers, and fixes up some > incorrect behavior in all of the write to clear registers. > > There was also a typo in one of the register definitions. > > Reviewed-by: Cédric Le Goater > Signed-off-by: Joel Stanley > --- >

Re: [PATCH v2 4/4] watchdog/aspeed: Fix AST2600 frequency behaviour

2019-11-13 Thread Alex Bennée
Joel Stanley writes: > The AST2600 control register sneakily changed the meaning of bit 4 > without anyone noticing. It no longer controls the 1MHz vs APB clock > select, and instead always runs at 1MHz. > > The AST2500 was always 1MHz too, but it retained bit 4, making it read > only. We can

Re: [RFC v4 PATCH 02/49] multi-process: util: Add qemu_thread_cancel() to cancel running thread

2019-11-13 Thread Daniel P . Berrangé
On Wed, Nov 13, 2019 at 11:04:58AM -0500, Jag Raman wrote: > > > On 11/13/2019 10:51 AM, Daniel P. Berrangé wrote: > > On Wed, Nov 13, 2019 at 10:38:06AM -0500, Jag Raman wrote: > > > > > > > > > On 11/13/2019 10:30 AM, Stefan Hajnoczi wrote: > > > > On Thu, Oct 24, 2019 at 05:08:43AM -0400,

Re: [RFC v4 PATCH 41/49] multi-process/mig: Enable VMSD save in the Proxy object

2019-11-13 Thread Jag Raman
On 11/13/2019 10:50 AM, Daniel P. Berrangé wrote: On Thu, Oct 24, 2019 at 05:09:22AM -0400, Jagannathan Raman wrote: Collect the VMSD from remote process on the source and save it to the channel leading to the destination Signed-off-by: Elena Ufimtseva Signed-off-by: John G Johnson

[PATCH for 5.0 1/6] linux-user: Add support for enabling/disabling rtc features using ioctls

2019-11-13 Thread Filip Bozuta
Signed-off-by: Filip Bozuta --- linux-user/ioctls.h | 9 + linux-user/syscall.c | 1 + linux-user/syscall_defs.h | 10 ++ 3 files changed, 20 insertions(+) diff --git a/linux-user/ioctls.h b/linux-user/ioctls.h index c6b9d6a..97741c7 100644 --- a/linux-user/ioctls.h

Re: [PATCH v9 Kernel 1/5] vfio: KABI for migration interface for device state

2019-11-13 Thread Alex Williamson
On Wed, 13 Nov 2019 11:24:17 +0100 Cornelia Huck wrote: > On Tue, 12 Nov 2019 15:30:05 -0700 > Alex Williamson wrote: > > > On Tue, 12 Nov 2019 22:33:36 +0530 > > Kirti Wankhede wrote: > > > > > - Defined MIGRATION region type and sub-type. > > > - Used 3 bits to define VFIO device states.

Re: [PATCH v2 1/5] MAINTAINERS: Add a section on UI translation

2019-11-13 Thread Philippe Mathieu-Daudé
Hi Aleksandar, On 11/13/19 2:47 PM, Aleksandar Markovic wrote: From: Aleksandar Markovic There should be a person who will quickly evaluate new UI translation, and find a way to update existing ones should something changes in UI. I appreciate your trust, but I'm afraid I know next to

Re: [EXTERNAL]Re: [PATCH v1 5/5] .travis.yml: drop 32 bit systems from MAIN_SOFTMMU_TARGETS

2019-11-13 Thread Alex Bennée
Aleksandar Markovic writes: >> From: Philippe Mathieu-Daudé >> > -- >> > MAIN_SOFTMMU_TARGETS="aarch64-softmmu,arm-softmmu,i386-softmmu,mips-softmmu,mips64-softmmu,ppc64-softmmu,riscv64-softmmu,s390x-softmmu,x86_64-softmmu" >> > +- >> >

Re: [PATCH V4] target/i386/kvm: Add Hyper-V direct tlb flush support

2019-11-13 Thread Vitaly Kuznetsov
Roman Kagan writes: > On Tue, Nov 12, 2019 at 11:34:27AM +0800, lantianyu1...@gmail.com wrote: >> From: Tianyu Lan >> >> Hyper-V direct tlb flush targets KVM on Hyper-V guest. >> Enable direct TLB flush for its guests meaning that TLB >> flush hypercalls are handled by Level 0 hypervisor

[PATCH] enable translating statx syscalls on more arches

2019-11-13 Thread Aleksandar Markovic
On Tuesday, November 12, 2019, Andrew Kelley wrote: > ping > > Hello, Andrew. I just want to advise you to send, if possible, a new version of the patch, addressing whatt said in his review. It is better if you send it sooner rather than later, given the stage of our dev cycle. For MIPS

Re: [PATCH v1 5/5] .travis.yml: drop 32 bit systems from MAIN_SOFTMMU_TARGETS

2019-11-13 Thread Philippe Mathieu-Daudé
On 11/13/19 12:59 PM, Alex Bennée wrote: The older clangs are still struggling to build and run everything withing the 50 minute timeout so lets lighten the load a bit more. We still have coverage for GCC and hopefully no obscure 32 bit guest only breakages slip through the cracks.

Call for agenda for 2019-11-19 KVM call

2019-11-13 Thread Juan Quintela
Hi Please, send any topic that you are interested in covering. At the end of Monday I will send an email with the agenda or the cancellation of the call, so hurry up. After discussions on the QEMU Summit, we are going to have always open a KVM call where you can add topics. Call details:

Re: [PATCH] WHPX: refactor load library

2019-11-13 Thread Philippe Mathieu-Daudé
On 11/12/19 8:47 PM, Eduardo Habkost wrote: On Tue, Nov 12, 2019 at 06:42:00PM +, Sunil Muthuswamy wrote: -Original Message- From: Sunil Muthuswamy Sent: Friday, November 8, 2019 12:32 PM To: 'Paolo Bonzini' ; 'Richard Henderson' ; 'Eduardo Habkost' ; 'Stefan Weil' Cc:

Re: [RFC v4 PATCH 11/49] multi-process: setup memory manager for remote device

2019-11-13 Thread Jag Raman
On 11/13/2019 11:33 AM, Stefan Hajnoczi wrote: On Thu, Oct 24, 2019 at 05:08:52AM -0400, Jagannathan Raman wrote: +static void remote_ram_destructor(MemoryRegion *mr) +{ +qemu_ram_free(mr->ram_block); +} + +static void remote_ram_init_from_fd(MemoryRegion *mr, int fd, uint64_t size, +

[PATCH for 5.0 0/6] linux-user: Add support for real time clock ioctls

2019-11-13 Thread Filip Bozuta
Add ioctls for all rtc features that are currently supported in linux kernell. Filip Bozuta (6): linux-user: Add support for enabling/disabling rtc features using ioctls linux-user: Add set and read for rtc time and alarm using ioctls linux-user: Add read and set for rtc periodic

[PATCH for 5.0 5/6] linux-user: Add get and set for rtc pll correction using ioctls

2019-11-13 Thread Filip Bozuta
Signed-off-by: Filip Bozuta --- linux-user/ioctls.h| 2 ++ linux-user/syscall_defs.h | 14 ++ linux-user/syscall_types.h | 9 + 3 files changed, 25 insertions(+) diff --git a/linux-user/ioctls.h b/linux-user/ioctls.h index 5830315..eea65e1 100644 ---

Re: [PATCH] WHPX: refactor load library

2019-11-13 Thread Eduardo Habkost
On Wed, Nov 13, 2019 at 05:35:59PM +0100, Philippe Mathieu-Daudé wrote: > On 11/12/19 8:47 PM, Eduardo Habkost wrote: > > On Tue, Nov 12, 2019 at 06:42:00PM +, Sunil Muthuswamy wrote: > > > > > > > > > > -Original Message- > > > > From: Sunil Muthuswamy > > > > Sent: Friday, November

Re: [EXTERNAL]Re: [PATCH v1 5/5] .travis.yml: drop 32 bit systems from MAIN_SOFTMMU_TARGETS

2019-11-13 Thread Aleksandar Markovic
> From: Philippe Mathieu-Daudé > > -- > > MAIN_SOFTMMU_TARGETS="aarch64-softmmu,arm-softmmu,i386-softmmu,mips-softmmu,mips64-softmmu,ppc64-softmmu,riscv64-softmmu,s390x-softmmu,x86_64-softmmu" > > +- > >

Re: [RFC v4 PATCH 45/49] multi-process/mig: Synchronize runstate of remote process

2019-11-13 Thread Jag Raman
On 11/11/2019 11:17 AM, Stefan Hajnoczi wrote: On Thu, Oct 24, 2019 at 05:09:26AM -0400, Jagannathan Raman wrote: @@ -656,6 +657,19 @@ static void init_proxy(PCIDevice *dev, char *command, bool need_spawn, Error **e } } +static void proxy_vm_state_change(void *opaque, int

[PATCH for 5.0 2/6] linux-user: Add set and read for rtc time and alarm using ioctls

2019-11-13 Thread Filip Bozuta
Signed-off-by: Filip Bozuta --- linux-user/ioctls.h| 4 linux-user/syscall_defs.h | 4 linux-user/syscall_types.h | 11 +++ 3 files changed, 19 insertions(+) diff --git a/linux-user/ioctls.h b/linux-user/ioctls.h index 97741c7..ff1cdd2 100644 ---

Re: [PATCH v2] monitor/qmp: resume monitor when clearing its queue

2019-11-13 Thread Markus Armbruster
Wolfgang Bumiller writes: > When a monitor's queue is filled up in handle_qmp_command() > it gets suspended. It's the dispatcher bh's job currently to > resume the monitor, which it does after processing an event > from the queue. However, it is possible for a > CHR_EVENT_CLOSED event to be

Re: [PATCH v1 2/5] docs/devel: rename plugins.rst to tcg-plugins.rst

2019-11-13 Thread Paolo Bonzini
> What about (other patch): > >   plugins/ -> tcg/plugins/ > >>   F: tests/plugin > > tests/plugin/ -> tests/tcg/plugins/ tests/tcg is for code that runs on the target in general, but perhaps tests/tcg-plugins would make sense. Paolo

Re: [SeaBIOS] Re: [PATCH] ahci: zero-initialize port struct

2019-11-13 Thread Sam Eiderman
Links to latest commits from archive. You can see all changes in the cover letter. [SeaBIOS] [PATCH v4 0/5] Add Qemu to SeaBIOS LCHS interface https://mail.coreboot.org/hyperkitty/list/seab...@seabios.org/message/VLNFBEERTWLEUO6LM5BYLBNVIFCTP46M/ [SeaBIOS] [PATCH v4 1/5] geometry: Read LCHS from

[PATCH v1] s390x: kvm-unit-tests: a PONG device for Sub Channels tests

2019-11-13 Thread Pierre Morel
The PONG device accept two commands: PONG_READ and PONG_WRITE which allow to read from and write to an internal buffer of 1024 bytes. The QEMU device is named ccw-pong. Signed-off-by: Pierre Morel --- hw/s390x/Makefile.objs | 1 + hw/s390x/ccw-pong.c | 186

Re: [PATCH v7 0/4] colo: Add support for continuous replication

2019-11-13 Thread Lukas Straub
On Fri, 25 Oct 2019 19:06:31 +0200 Lukas Straub wrote: > Hello Everyone, > These Patches add support for continuous replication to colo. This means > that after the Primary fails and the Secondary did a failover, the Secondary > can then become Primary and resume replication to a new Secondary.

Re: [RFC v4 PATCH 12/49] multi-process: remote process initialization

2019-11-13 Thread Stefan Hajnoczi
On Thu, Oct 24, 2019 at 05:08:53AM -0400, Jagannathan Raman wrote: > int main(int argc, char *argv[]) > { > +Error *err = NULL; > + > module_call_init(MODULE_INIT_QOM); > > +bdrv_init_with_whitelist(); > + > +if (qemu_init_main_loop()) { > +error_report_err(err); > +

[PATCH for 5.0 3/6] linux-user: Add read and set for rtc periodic interrupt and epoch using ioctls

2019-11-13 Thread Filip Bozuta
Signed-off-by: Filip Bozuta --- linux-user/ioctls.h | 4 linux-user/syscall_defs.h | 4 2 files changed, 8 insertions(+) diff --git a/linux-user/ioctls.h b/linux-user/ioctls.h index ff1cdd2..7d76a9f 100644 --- a/linux-user/ioctls.h +++ b/linux-user/ioctls.h @@ -81,6 +81,10 @@

RE: [PATCH] WHPX: refactor load library

2019-11-13 Thread Sunil Muthuswamy
> Making it easier for other people to test WHPX would be nice. Yes, we understand the concerns and I generally agree here. I am trying to connect the different teams involved here (legal, SDK here) and connect the dots for them, to see what can be done here. > But in case this is not sorted

Re: [RFC v4 PATCH 11/49] multi-process: setup memory manager for remote device

2019-11-13 Thread Stefan Hajnoczi
On Thu, Oct 24, 2019 at 05:08:52AM -0400, Jagannathan Raman wrote: > +static void remote_ram_destructor(MemoryRegion *mr) > +{ > +qemu_ram_free(mr->ram_block); > +} > + > +static void remote_ram_init_from_fd(MemoryRegion *mr, int fd, uint64_t size, > +

[PATCH for 5.0 4/6] linux-user: Add get and set for rtc wakeup alarm using ioctls

2019-11-13 Thread Filip Bozuta
Signed-off-by: Filip Bozuta --- linux-user/ioctls.h| 2 ++ linux-user/syscall_defs.h | 2 ++ linux-user/syscall_types.h | 5 + 3 files changed, 9 insertions(+) diff --git a/linux-user/ioctls.h b/linux-user/ioctls.h index 7d76a9f..5830315 100644 --- a/linux-user/ioctls.h +++

RE: [PATCH] WHPX: refactor load library

2019-11-13 Thread Sunil Muthuswamy
> -Original Message- > From: Paolo Bonzini > Sent: Wednesday, November 13, 2019 7:00 AM > To: Sunil Muthuswamy ; Richard Henderson > ; Eduardo Habkost ; > Stefan Weil > Cc: qemu-devel@nongnu.org; Justin Terry (VM) > Subject: Re: [PATCH] WHPX: refactor load library > > On 08/11/19

Re: [PATCH for 5.0 0/6] linux-user: Add support for real time clock ioctls

2019-11-13 Thread Laurent Vivier
Hi Filip, Le 13/11/2019 à 17:41, Filip Bozuta a écrit : > Add ioctls for all rtc features that are currently supported in linux kernell. > > Filip Bozuta (6): > linux-user: Add support for enabling/disabling rtc features using > ioctls > linux-user: Add set and read for rtc time and

RE: [PATCH] WHPX: refactor load library

2019-11-13 Thread Sunil Muthuswamy
> Can we wait for approval from the Microsoft legal department first? > So we can start testing WHPX builds, and reduce the possibilities to > introduce regressions. > > Testing is ready, we are waiting for Microsoft to merge, see: >

[PATCH] migration: Fix the re-run check of the migrate-incoming command

2019-11-13 Thread Yury Kotov
The current check sets an error but doesn't fail the command. This may cause a problem if new connection attempt by the same URI affects the first connection. Signed-off-by: Yury Kotov --- migration/migration.c | 1 + 1 file changed, 1 insertion(+) diff --git a/migration/migration.c

[PATCH v7 2/3] qcow2: Allow writing compressed data of multiple clusters

2019-11-13 Thread Andrey Shinkevich
QEMU currently supports writing compressed data of the size equal to one cluster. This patch allows writing QCOW2 compressed data that exceed one cluster. Now, we split buffered data into separate clusters and write them compressed using the existing functionality. Suggested-by: Pavel Butsykin

[PATCH v7 1/3] block: introduce compress filter driver

2019-11-13 Thread Andrey Shinkevich
Allow writing all the data compressed through the filter driver. The written data will be aligned by the cluster size. Based on the QEMU current implementation, that data can be written to unallocated clusters only. May be used for a backup job. Suggested-by: Max Reitz Signed-off-by: Andrey

Re: [EXTERNAL]Re: [PATCH v1 5/5] .travis.yml: drop 32 bit systems from MAIN_SOFTMMU_TARGETS

2019-11-13 Thread Philippe Mathieu-Daudé
On 11/13/19 6:38 PM, Aleksandar Markovic wrote: From: Philippe Mathieu-Daudé -- MAIN_SOFTMMU_TARGETS="aarch64-softmmu,arm-softmmu,i386-softmmu,mips-softmmu,mips64-softmmu,ppc64-softmmu,riscv64-softmmu,s390x-softmmu,x86_64-softmmu" +-

Re: [PATCH v9 Kernel 1/5] vfio: KABI for migration interface for device state

2019-11-13 Thread Kirti Wankhede
On 11/13/2019 8:53 AM, Yan Zhao wrote: On Wed, Nov 13, 2019 at 06:30:05AM +0800, Alex Williamson wrote: On Tue, 12 Nov 2019 22:33:36 +0530 Kirti Wankhede wrote: - Defined MIGRATION region type and sub-type. - Used 3 bits to define VFIO device states. Bit 0 => _RUNNING Bit 1 =>

Re: [PATCH v1 2/5] docs/devel: rename plugins.rst to tcg-plugins.rst

2019-11-13 Thread Philippe Mathieu-Daudé
On 11/13/19 12:59 PM, Alex Bennée wrote: This makes it a bit clearer what this is about. Signed-off-by: Alex Bennée --- docs/devel/index.rst| 2 +- docs/devel/{plugins.rst => tcg-plugins.rst} | 0 MAINTAINERS | 1 + 3 files changed,

Re: [SeaBIOS] Re: [PATCH] ahci: zero-initialize port struct

2019-11-13 Thread Sam Eiderman
Sure, There are two issues here. The first issue is that my commits which applied to seabios master: * 9caa19b - geometry: Apply LCHS values for boot devices * cb56f61 - config: Add toggle for bootdevice information * ad29109 - geometry: Add boot_lchs_find_*() utility functions * b3d2120 -

[PATCH for 5.0 6/6] linux-user: Add rtc voltage low detector read and clear using ioctls

2019-11-13 Thread Filip Bozuta
Signed-off-by: Filip Bozuta --- linux-user/ioctls.h | 2 ++ linux-user/syscall_defs.h | 2 ++ 2 files changed, 4 insertions(+) diff --git a/linux-user/ioctls.h b/linux-user/ioctls.h index eea65e1..330e502 100644 --- a/linux-user/ioctls.h +++ b/linux-user/ioctls.h @@ -89,6 +89,8 @@

Re: [RFC v4 PATCH 41/49] multi-process/mig: Enable VMSD save in the Proxy object

2019-11-13 Thread Daniel P . Berrangé
On Wed, Nov 13, 2019 at 11:32:09AM -0500, Jag Raman wrote: > > > On 11/13/2019 10:50 AM, Daniel P. Berrangé wrote: > > On Thu, Oct 24, 2019 at 05:09:22AM -0400, Jagannathan Raman wrote: > > > Collect the VMSD from remote process on the source and save > > > it to the channel leading to the

[PATCH v7 0/3] qcow2: advanced compression options

2019-11-13 Thread Andrey Shinkevich
The compression filter driver is introduced as suggested by Max. A sample usage of the filter can be found in the test #214. Now, multiple clusters can be written compressed. It is useful for the backup job. v7: 01: The 'zip_' prefix for the compression filter functions replaced with

[PATCH v7 3/3] tests/qemu-iotests: add case to write compressed data of multiple clusters

2019-11-13 Thread Andrey Shinkevich
Add the case to the iotest #214 that checks possibility of writing compressed data of more than one cluster size. The test case involves the compress filter driver showing a sample usage of that. Signed-off-by: Andrey Shinkevich --- tests/qemu-iotests/214 | 43

[PATCH V2] WHPX: refactor load library

2019-11-13 Thread Sunil Muthuswamy
This refactors the load library of WHV libraries to make it more modular. It makes a helper routine that can be called on demand. This allows future expansion of load library/functions to support functionality that is dependent on some feature being available. Signed-off-by: Sunil Muthuswamy ---

Re: [PATCH] qmp: Reset mon->commands on CHR_EVENT_CLOSED

2019-11-13 Thread Jason Andryuk
On Wed, Nov 13, 2019 at 8:18 AM Marc-André Lureau wrote: > > Hi > > On Wed, Nov 13, 2019 at 4:41 PM Markus Armbruster wrote: > > > > Jason Andryuk writes: > > > > > Currently, mon->commands is uninitialized until CHR_EVENT_OPENED where > > > it is set to _cap_negotiation_commands. After

[PATCH v2 5/5] MAINTAINERS: Add two files to Malta section

2019-11-13 Thread Aleksandar Markovic
From: Aleksandar Markovic Add two files that were recently introduced in a refactoring, that Malta emulation relies on. They are added by this patch to Malta section, but they are not added to the general MIPS section, since they are really not MIPS-specific, and there may be some non-MIPS

[PATCH v2 3/5] MAINTAINERS: Adjust maintainership for Malta board

2019-11-13 Thread Aleksandar Markovic
From: Aleksandar Markovic Change the maintainership for Malta board to improve its quality. Acked-by: Aurelien Jarno Signed-off-by: Aleksandar Markovic --- MAINTAINERS | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/MAINTAINERS b/MAINTAINERS index 3bf2144..6afec32

Re: [RFC PATCH 01/18] qemu-storage-daemon: Add barebone tool

2019-11-13 Thread Kevin Wolf
Am 24.10.2019 um 15:50 hat Eric Blake geschrieben: > On 10/17/19 8:01 AM, Kevin Wolf wrote: > > This adds a new binary qemu-storage-daemon that doesn't yet do more than > > some typical initialisation for tools and parsing the basic command > > options --version, --help and --trace. > > > >

Re: [RFC PATCH v2 03/26] qcow2: Process QCOW2_CLUSTER_ZERO_ALLOC clusters in handle_copied()

2019-11-13 Thread Alberto Garcia
On Wed 30 Oct 2019 03:24:08 PM CET, Max Reitz wrote: >> static void calculate_l2_meta(BlockDriverState *bs, uint64_t host_offset, >>uint64_t guest_offset, uint64_t bytes, >> - QCowL2Meta **m, bool keep_old) >> +

[PATCH 13/16] xen: convert "-machine igd-passthru" to an accelerator property

2019-11-13 Thread Paolo Bonzini
The first machine property to fall is Xen's Intel integrated graphics passthrough. The "-machine igd-passthru" option does not set anymore a property on the machine object, but desugars to a GlobalProperty on accelerator objects. The setter is very simple, since the value ends up in a global

Re: [PATCH] spapr/kvm: Set default cpu model for all machine classes

2019-11-13 Thread Greg Kurz
On Wed, 13 Nov 2019 15:43:44 +0100 Jiri Denemark wrote: > Hi David. > > On Wed, Oct 30, 2019 at 17:32:43 +0100, David Gibson wrote: > > We have to set the default model of all machine classes, not just for the > > active one. Otherwise, "query-machines" will indicate the wrong CPU model > >

Re: [PATCH v1 3/5] Add use of RCU for qemu_logfile.

2019-11-13 Thread Alex Bennée
Robert Foley writes: > On Tue, 12 Nov 2019 at 12:36, Alex Bennée wrote: >> >> >> > } >> > +atomic_rcu_set(_logfile, logfile); >> > } >> > -qemu_mutex_unlock(_logfile_mutex); >> > +logfile = qemu_logfile; >> >> Isn't this read outside of the protection of both

Re: [SeaBIOS] Re: [PATCH] ahci: zero-initialize port struct

2019-11-13 Thread Sam Eiderman
Sorry the correct list (which includes ahci) is: git grep "drive_s * drive" src/hw/ahci.h:struct drive_s drive; src/hw/ata.h:struct drive_s drive; src/hw/esp-scsi.c:struct drive_s drive; src/hw/lsi-scsi.c:struct drive_s drive; src/hw/megasas.c:struct drive_s drive;

Re: [RFC v4 PATCH 02/49] multi-process: util: Add qemu_thread_cancel() to cancel running thread

2019-11-13 Thread Daniel P . Berrangé
On Wed, Nov 13, 2019 at 10:38:06AM -0500, Jag Raman wrote: > > > On 11/13/2019 10:30 AM, Stefan Hajnoczi wrote: > > On Thu, Oct 24, 2019 at 05:08:43AM -0400, Jagannathan Raman wrote: > > > qemu_thread_cancel() added to destroy a given running thread. > > > This will be needed in the following

Re: [RFC v4 PATCH 41/49] multi-process/mig: Enable VMSD save in the Proxy object

2019-11-13 Thread Daniel P . Berrangé
On Thu, Oct 24, 2019 at 05:09:22AM -0400, Jagannathan Raman wrote: > Collect the VMSD from remote process on the source and save > it to the channel leading to the destination > > Signed-off-by: Elena Ufimtseva > Signed-off-by: John G Johnson > Signed-off-by: Jagannathan Raman > --- > New

Re: [PATCH v2 1/2] nbd: Don't send oversize strings

2019-11-13 Thread Eric Blake
On 10/15/19 11:16 AM, Vladimir Sementsov-Ogievskiy wrote: @@ -1561,6 +1569,8 @@ NBDExport *nbd_export_new(BlockDriverState *bs, uint64_t dev_offset,    exp->export_bitmap = bm;    exp->export_bitmap_context = g_strdup_printf("qemu:dirty-bitmap:%s",    

Re: [RFC v4 PATCH 07/49] multi-process: define mpqemu-link object

2019-11-13 Thread Stefan Hajnoczi
On Thu, Oct 24, 2019 at 05:08:48AM -0400, Jagannathan Raman wrote: > +#ifndef MPQEMU_LINK_H > +#define MPQEMU_LINK_H > + > +#include "qemu/osdep.h" > +#include "qemu-common.h" > + > +#include > +#include These are already included by "qemu/osdep.h". > +#include Is needed? > + > +#include

Re: [RFC v4 PATCH 33/49] multi-process: perform device reset in the remote process

2019-11-13 Thread Jag Raman
On 11/11/2019 11:19 AM, Stefan Hajnoczi wrote: On Thu, Oct 24, 2019 at 05:09:14AM -0400, Jagannathan Raman wrote: +void proxy_device_reset(DeviceState *dev) +{ +PCIProxyDev *pdev = PCI_PROXY_DEV(dev); +MPQemuMsg msg; + +memset(, 0, sizeof(MPQemuMsg)); + +msg.bytestream = 0; +

Re: [PATCH v1 1/5] tests/vm: make --interactive (and therefore DEBUG=1) unconditional

2019-11-13 Thread Thomas Huth
On 13/11/2019 12.59, Alex Bennée wrote: > While the concept of only dropping to ssh if a test fails is nice it > is more useful for this to be unconditional. You usually just want to > get the build up and running and then noodle around debugging or > attempting to replicate. > > Cc: Peter

[PATCH 14/16] kvm: convert "-machine kvm_shadow_mem" to an accelerator property

2019-11-13 Thread Paolo Bonzini
Signed-off-by: Paolo Bonzini --- accel/kvm/kvm-all.c | 43 +++ hw/core/machine.c | 39 --- include/hw/boards.h | 2 -- qemu-options.hx | 6 +++--- target/i386/kvm.c | 2 +- vl.c| 4 6

[PATCH] target/i386: add PSCHANGE_NO bit for the ARCH_CAPABILITIES MSR

2019-11-13 Thread Paolo Bonzini
This is required to disable ITLB multihit mitigations in nested hypervisors. Signed-off-by: Paolo Bonzini --- target/i386/cpu.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/target/i386/cpu.c b/target/i386/cpu.c index a624163ac2..2f60df37c4 100644 --- a/target/i386/cpu.c

[PATCH] target/i386: add PSCHANGE_NO bit for the ARCH_CAPABILITIES MSR

2019-11-13 Thread Paolo Bonzini
From: speck for Paolo Bonzini This is required to disable ITLB multihit mitigations in nested hypervisors. Signed-off-by: Paolo Bonzini --- target/i386/cpu.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/target/i386/cpu.c b/target/i386/cpu.c index a624163ac2..2f60df37c4

Re: FW: [PATCH v1 3/5] docs/devel: update tcg-plugins.rst with API versioning details

2019-11-13 Thread Robert Foley
On Wed, 13 Nov 2019 at 07:00, Alex Bennée wrote: > > While we are at it fix up the quoted code sections with the inline :: > approach. > > Signed-off-by: Alex Bennée > > --- > v2 > - fix grammar > - mention we also will fail to load outside the range > - clean-up code sections > --- >

Re: [PATCH] spapr/kvm: Set default cpu model for all machine classes

2019-11-13 Thread Peter Maydell
On Wed, 13 Nov 2019 at 15:10, Greg Kurz wrote: > David is away until the 19th of November, which is the release date > of rc2 according to the planning [*]. Then we have rc3 the 26th, and > final release (or rc4) the 3rd of December, so it should be ok. Please don't actively plan to delay

Re: [RFC v4 PATCH 07/49] multi-process: define mpqemu-link object

2019-11-13 Thread Jag Raman
On 11/11/2019 11:41 AM, Stefan Hajnoczi wrote: On Thu, Oct 24, 2019 at 05:08:48AM -0400, Jagannathan Raman wrote: +int mpqemu_msg_recv(MPQemuLinkState *s, MPQemuMsg *msg, MPQemuChannel *chan) +{ +int rc; +uint8_t *data; +union { +char control[CMSG_SPACE(REMOTE_MAX_FDS *

Re: [SeaBIOS] Re: [PATCH] ahci: zero-initialize port struct

2019-11-13 Thread Philippe Mathieu-Daudé
Hi Sam, On 11/13/19 4:03 PM, Sam Eiderman wrote: Hi, Does this fix a bug that actually happened? I just noticed that in my lchs patches I assumed that lchs struct is zeroed out in all devices (not only ahci): 9caa19be0e53 (geometry: Apply LCHS values for boot devices) Seems like this is not

Re: [RFC v4 PATCH 10/49] multi-process: setup a machine object for remote device process

2019-11-13 Thread Stefan Hajnoczi
On Thu, Oct 24, 2019 at 05:08:51AM -0400, Jagannathan Raman wrote: > +static NotifierList machine_init_done_notifiers = > +NOTIFIER_LIST_INITIALIZER(machine_init_done_notifiers); > + > +bool machine_init_done; > + > +void qemu_add_machine_init_done_notifier(Notifier *notify) > +{ > +

  1   2   3   >