Re: [Qemu-devel] [RFCv2 for-4.0 4/5] virtio-balloon: Use ram_block_discard_range() instead of raw madvise()

2018-12-05 Thread David Hildenbrand
On 05.12.18 06:06, David Gibson wrote: > Currently, virtio-balloon uses madvise() with MADV_DONTNEED to actually > discard RAM pages inserted into the balloon. This is basically a Linux > only interface (MADV_DONTNEED exists on some other platforms, but doesn't > always have the same semantics).

[Qemu-devel] [PATCH v4] xen/pt: allow passthrough of devices with bogus interrupt pin

2018-12-05 Thread Zhao Yan
For some pci device, even its PCI_INTERRUPT_PIN is not 0, it actually doesn't support INTx mode, so its machine irq read from host sysfs is 0. In that case, report PCI_INTERRUPT_PIN as 0 to guest and let passthrough continue. Cc: Roger Pau Monné Cc: Jan Beulich Reviewed-by: Roger Pau Monné Sign

Re: [Qemu-devel] [PATCH v3 2/6] monitor: accept chardev input from iothread

2018-12-05 Thread Markus Armbruster
Marc-André Lureau writes: > Chardev backends may not handle safely IO events from concurrent > threads (they are not thread-safe in general, only the write path is Suggest "may not handle I/O events from concurrent threads safely". > since commit > 9005b2a7589540a3733b3abdcfbccfe7746cd1a1). Bet

Re: [Qemu-devel] [PATCH] Clean up includes

2018-12-05 Thread Markus Armbruster
Eric Blake writes: > On 12/4/18 11:25 AM, Markus Armbruster wrote: >> Clean up includes so that osdep.h is included first and headers >> which it implies are not included manually. >> >> This commit was created with scripts/clean-includes, with the changes >> to the following files manually rever

Re: [Qemu-devel] [qemu-s390x] [PULL 2/2] iotests: simple mirror test with kvm on 1G image

2018-12-05 Thread Christian Borntraeger
On 04.12.2018 14:49, Christian Borntraeger wrote: > > > On 04.12.2018 14:46, Christian Borntraeger wrote: >> FWIW, this testcase fails with current qemu master on s390: >> >> QEMU -- >> "/home/cborntra/REPOS/qemu/build/tests/qemu-iotests/../../s390x-softmmu/qemu-system-s390x" >> -nodef

Re: [Qemu-devel] [PATCH v1] s390: guest support for diagnose 318 and limit max VCPUs to 247

2018-12-05 Thread David Hildenbrand
On 04.12.18 23:18, Collin Walling wrote: > Add migration and reset support for diagnose 318. This is a new z14 GA2 > hardware feature, but we can provide guest support starting with the > zEC12-full CPU model. > > Because new hardware introduces a new facility-availability byte in > the Read SC

Re: [Qemu-devel] [PATCH v1] s390: guest support for diagnose 318 and limit max VCPUs to 247

2018-12-05 Thread Christian Borntraeger
On 05.12.2018 09:26, David Hildenbrand wrote: > On 04.12.18 23:18, Collin Walling wrote: >> Add migration and reset support for diagnose 318. This is a new z14 GA2 >> hardware feature, but we can provide guest support starting with the >> zEC12-full CPU model. >> >> Because new hardware introdu

Re: [Qemu-devel] [PATCH v1] s390: guest support for diagnose 318 and limit max VCPUs to 247

2018-12-05 Thread Christian Borntraeger
You should clearly review your email list. Adding the "new" Conny, removing Carsten. On 04.12.2018 23:18, Collin Walling wrote: > Add migration and reset support for diagnose 318. This is a new z14 GA2 > hardware feature, but we can provide guest support starting with the > zEC12-full CPU

Re: [Qemu-devel] [for-4.0 PATCH v3.1 8/9] q35/440fx/arm/spapr/ccw: Add QEMU 4.0 machine type

2018-12-05 Thread Cornelia Huck
On Tue, 4 Dec 2018 12:56:21 -0700 Alex Williamson wrote: > On Tue, 4 Dec 2018 19:29:25 + > Peter Maydell wrote: > > > On Tue, 4 Dec 2018 at 19:26, Alex Williamson > > wrote: > > > > > > On Tue, 4 Dec 2018 20:16:44 +0100 > > > Christian Borntraeger wrote: > > > > > > > I think Conny

Re: [Qemu-devel] [PATCH v3 3/6] char: add a QEMU_CHAR_FEATURE_GCONTEXT flag

2018-12-05 Thread Markus Armbruster
Marc-André Lureau writes: > The feature should be set if the chardev is able to switch > GMainContext. Callers that want to put a chardev in a different thread > context can/should check this capability. Otherwise, print an > error (arguably, it may assert instead). Really? I think you do asser

Re: [Qemu-devel] [PATCH v3 2/6] monitor: accept chardev input from iothread

2018-12-05 Thread Marc-André Lureau
On Wed, Dec 5, 2018 at 12:21 PM Markus Armbruster wrote: > > Marc-André Lureau writes: > > > Chardev backends may not handle safely IO events from concurrent > > threads (they are not thread-safe in general, only the write path is > > Suggest "may not handle I/O events from concurrent threads saf

[Qemu-devel] [PATCH 1/1] iotests: make 235 work on s390 (and others)

2018-12-05 Thread Christian Borntraeger
"-machine pc" will not work all architectures. Lets fall back to the default machine by not specifying it. In addition we also need to specify -no-shutdown on s390 as qemu will exit otherwise. Signed-off-by: Christian Borntraeger --- tests/qemu-iotests/235 | 4 +++- 1 file changed, 3 insertions

Re: [Qemu-devel] [PATCH v3 4/6] monitor: check if chardev can switch gcontext for OOB

2018-12-05 Thread Markus Armbruster
Marc-André Lureau writes: > Not all backends are able to switch gcontext. Those backends cannot > drive a OOB monitor (the monitor would then be blocking on main > thread). > > For example, ringbuf, spice, or more esoteric input chardevs like > braille or MUX. > > We currently forbid MUX because

Re: [Qemu-devel] [PATCH v3 5/6] monitor: prevent inserting new monitors after cleanup

2018-12-05 Thread Markus Armbruster
Marc-André Lureau writes: > monitor_cleanup() is one of the last things main() calls before it > returns. In the following patch, monitor_cleanup() will release the > monitor_lock during flushing. There may be pending commands to insert > new monitors, which would modify the mon_list during iter

Re: [Qemu-devel] [qemu-s390x] [PULL 2/2] iotests: simple mirror test with kvm on 1G image

2018-12-05 Thread Kevin Wolf
Am 05.12.2018 um 09:23 hat Christian Borntraeger geschrieben: > >>> +# prepare source image > >>> +qemu_img_create('-f', iotests.imgfmt, '-o', 'preallocation=metadata', > >>> disk, > >>> +str(size)) > >>> + > >>> +vm = QEMUMachine(iotests.qemu_prog) > >>> +vm.add_args('-machine', '

Re: [Qemu-devel] [PATCH v3 6/6] monitor: avoid potential dead-lock when cleaning up

2018-12-05 Thread Markus Armbruster
Marc-André Lureau writes: > When a monitor is connected to a Spice chardev, the monitor cleanup > can dead-lock: > > #0 0x7f43446637fd in __lll_lock_wait () at /lib64/libpthread.so.0 > #1 0x7f434465ccf4 in pthread_mutex_lock () at /lib64/libpthread.so.0 > #2 0x556dd79f22ba in qe

Re: [Qemu-devel] [PATCH v3 4/6] monitor: check if chardev can switch gcontext for OOB

2018-12-05 Thread Marc-André Lureau
Hi On Wed, Dec 5, 2018 at 12:43 PM Markus Armbruster wrote: > > Marc-André Lureau writes: > > > Not all backends are able to switch gcontext. Those backends cannot > > drive a OOB monitor (the monitor would then be blocking on main > > thread). > > > > For example, ringbuf, spice, or more esoter

Re: [Qemu-devel] [qemu-s390x] [PULL 2/2] iotests: simple mirror test with kvm on 1G image

2018-12-05 Thread Christian Borntraeger
On 05.12.2018 09:46, Kevin Wolf wrote: > Am 05.12.2018 um 09:23 hat Christian Borntraeger geschrieben: > +# prepare source image > +qemu_img_create('-f', iotests.imgfmt, '-o', 'preallocation=metadata', > disk, > +str(size)) > + > +vm = QEMUMachine(iotests

Re: [Qemu-devel] [for-4.0 PATCH v3 3/9] qapi: Define PCIe link speed and width properties

2018-12-05 Thread Markus Armbruster
Alex Williamson writes: > Create properties to be able to define speeds and widths for PCIe > links. The only tricky bit here is that our get and set callbacks > translate from the fixed QAPI automagic enums to those we define > in PCI code to represent the actual register segment value. QAPI c

Re: [Qemu-devel] [PATCH v3 4/6] monitor: check if chardev can switch gcontext for OOB

2018-12-05 Thread Markus Armbruster
Marc-André Lureau writes: > Hi > > On Wed, Dec 5, 2018 at 12:43 PM Markus Armbruster wrote: >> >> Marc-André Lureau writes: >> >> > Not all backends are able to switch gcontext. Those backends cannot >> > drive a OOB monitor (the monitor would then be blocking on main >> > thread). >> > >> > Fo

Re: [Qemu-devel] [qemu-s390x] [PATCH] Clean up includes

2018-12-05 Thread Halil Pasic
On Tue, 4 Dec 2018 18:25:35 +0100 Markus Armbruster wrote: > Clean up includes so that osdep.h is included first and headers > which it implies are not included manually. > > This commit was created with scripts/clean-includes, with the changes > to the following files manually reverted: > >

Re: [Qemu-devel] [PATCH v5 2/7] util/mmap-alloc: switch qemu_ram_mmap() to 'flags' parameter

2018-12-05 Thread Stefan Hajnoczi
On Mon, Nov 05, 2018 at 04:08:12PM +0800, Zhang Yi wrote: > diff --git a/util/oslib-posix.c b/util/oslib-posix.c > index fbd0dc8..c28869d 100644 > --- a/util/oslib-posix.c > +++ b/util/oslib-posix.c > @@ -203,7 +203,9 @@ void *qemu_memalign(size_t alignment, size_t size) > void *qemu_anon_ram_allo

Re: [Qemu-devel] [PATCH v5 4/7] util/mmap-alloc: support MAP_SYNC in qemu_ram_mmap()

2018-12-05 Thread Stefan Hajnoczi
On Mon, Nov 05, 2018 at 04:29:20PM +0800, Zhang Yi wrote: > diff --git a/include/standard-headers/linux/mman.h > b/include/standard-headers/linux/mman.h > new file mode 100644 > index 000..ea1fc47 > --- /dev/null > +++ b/include/standard-headers/linux/mman.h include/standard-headers/ contains

[Qemu-devel] [PATCH] hw/pci-bridge: check invalid slot number for root and downstream port

2018-12-05 Thread Huan Xiong
Since root and downstream port have only one slot, device should be connected to them using slot 0. QEMU doesn't have a check for that and starts up when a non-zero slot is specified, though the device is not seen in guest OS. The change fixes that by adding a check in PCI device "attr" property s

Re: [Qemu-devel] [PATCH v5 5/7] util/mmap-alloc: Switch the RAM_SYNC flags to OnOffAuto

2018-12-05 Thread Stefan Hajnoczi
On Mon, Nov 05, 2018 at 04:29:30PM +0800, Zhang Yi wrote: > diff --git a/util/mmap-alloc.c b/util/mmap-alloc.c > index f411df7..fe9303f 100644 > --- a/util/mmap-alloc.c > +++ b/util/mmap-alloc.c > @@ -111,6 +111,10 @@ void *qemu_ram_mmap(int fd, size_t size, size_t align, > uint32_t flags) >

Re: [Qemu-devel] [PATCH v4] hw/arm: Add arm SBSA reference machine

2018-12-05 Thread Hongbo Zhang
On Fri, 16 Nov 2018 at 00:05, Peter Maydell wrote: > > On 19 October 2018 at 09:55, Hongbo Zhang wrote: > > For the Aarch64, there is one machine 'virt', it is primarily meant to > > run on KVM and execute virtualization workloads, but we need an > > environment as faithful as possible to physica

Re: [Qemu-devel] [PATCH] Clean up includes

2018-12-05 Thread Yuval Shaia
On Tue, Dec 04, 2018 at 06:25:35PM +0100, Markus Armbruster wrote: > Clean up includes so that osdep.h is included first and headers > which it implies are not included manually. > > This commit was created with scripts/clean-includes, with the changes > to the following files manually reverted: >

Re: [Qemu-devel] [PATCH v5 0/7] nvdimm: support MAP_SYNC for memory-backend-file

2018-12-05 Thread Stefan Hajnoczi
On Mon, Nov 05, 2018 at 04:07:50PM +0800, Zhang Yi wrote: > Linux 4.15 introduces a new mmap flag MAP_SYNC, which can be used to > guarantee the write persistence to mmap'ed files supporting DAX (e.g., > files on ext4/xfs file system mounted with '-o dax'). > Hi, There are a lot of people on CC s

Re: [Qemu-devel] [Qemu-block] [PATCH 1/1] virtio-blk: fix comment for virtio_blk_rw_complete as nalloc is initially -1

2018-12-05 Thread Stefan Hajnoczi
On Tue, Nov 06, 2018 at 12:52:32PM +0800, Dongli Zhang wrote: > The initial value of nalloc is -1, but not 1. > > Signed-off-by: Dongli Zhang > --- > This is based on git://git.kernel.org/pub/scm/virt/kvm/mst/qemu.git > tags/for_upstream > > hw/block/virtio-blk.c | 2 +- > 1 file changed, 1 in

Re: [Qemu-devel] [PATCH v6 09/13] hardfloat: implement float32/64 multiplication

2018-12-05 Thread Alex Bennée
Emilio G. Cota writes: > Performance results for fp-bench: > > 1. Intel(R) Core(TM) i7-6700K CPU @ 4.00GHz > - before: > mul-single: 126.91 MFlops > mul-double: 118.28 MFlops > - after: > mul-single: 258.02 MFlops > mul-double: 197.96 MFlops > > 2. ARM Aarch64 A57 @ 2.4GHz > - before: > mul-sin

Re: [Qemu-devel] [PATCH v6 10/13] hardfloat: implement float32/64 division

2018-12-05 Thread Alex Bennée
Emilio G. Cota writes: > Performance results for fp-bench: > > 1. Intel(R) Core(TM) i7-6700K CPU @ 4.00GHz > - before: > div-single: 34.84 MFlops > div-double: 34.04 MFlops > - after: > div-single: 275.23 MFlops > div-double: 216.38 MFlops > > 2. ARM Aarch64 A57 @ 2.4GHz > - before: > div-singl

Re: [Qemu-devel] [PATCH for-4.0 v3 3/4] i386: import bootparam.h

2018-12-05 Thread Li Zhijian
Hi Michael I cooked a draft with cp_portable to import bootparam.h, could you have a look. diff --git a/scripts/update-linux-headers.sh b/scripts/update-linux-headers.sh index 0a964fe..1beeceb 100755 --- a/scripts/update-linux-headers.sh +++ b/scripts/update-linux-headers.sh @@ -44,6 +44,12 @@ c

Re: [Qemu-devel] [PATCH v4] hw/arm: Add arm SBSA reference machine

2018-12-05 Thread Leif Lindholm
On Wed, Dec 05, 2018 at 05:50:23PM +0800, Hongbo Zhang wrote: > > > +static > > > +void sbsa_ref_machine_done(Notifier *notifier, void *data) > > > +{ > > > +VirtMachineState *vms = container_of(notifier, VirtMachineState, > > > + machine_done); > > > +

Re: [Qemu-devel] [PATCH] Clean up includes

2018-12-05 Thread Cornelia Huck
On Wed, 05 Dec 2018 09:07:13 +0100 Markus Armbruster wrote: > > On 12/4/18 11:25 AM, Markus Armbruster wrote: > >> Clean up includes so that osdep.h is included first and headers > >> which it implies are not included manually. > >> > >> This commit was created with scripts/clean-includes, with

Re: [Qemu-devel] [PATCH] Clean up includes

2018-12-05 Thread Viktor Prutyanov
On Tue, 4 Dec 2018 18:25:35 +0100 Markus Armbruster wrote: > Clean up includes so that osdep.h is included first and headers > which it implies are not included manually. > > This commit was created with scripts/clean-includes, with the changes > to the following files manually reverted: > >

[Qemu-devel] [PATCH v3 0/3] qapi: return ShutdownCause for events

2018-12-05 Thread Dominik Csapak
This series improves the QMP SHUTDOWN and RESET events by adding the ShutdownCause as additional parameter and splitting the HOST_QMP reason into HOST_QMP_QUIT and HOST_QMP_SYSTEM_RESET to be able to detect the difference between them when using '--no-reboot' this is an alternative to my previous

[Qemu-devel] [PATCH v3 2/3] qapi: Add reason to SHUTDOWN and RESET events

2018-12-05 Thread Dominik Csapak
This makes it possible to determine what the exact reason was for a RESET or a SHUTDOWN. A management layer might need the specific reason of those events to determine which cleanups or other actions it needs to do. This patch also updates the iotests to the new expected output that includes the r

[Qemu-devel] [PATCH v3 1/3] qapi: Turn ShutdownCause into QAPI enum

2018-12-05 Thread Dominik Csapak
Needed so the patch after next can add ShutdownCause to QMP events SHUTDOWN and RESET. Signed-off-by: Dominik Csapak --- include/sysemu/sysemu.h | 20 qapi/run-state.json | 34 ++ 2 files changed, 34 insertions(+), 20 deletions(-) diff --

[Qemu-devel] [PATCH v3 3/3] qapi: Split host-qmp into quit and system-reset

2018-12-05 Thread Dominik Csapak
It is interesting to know whether the shutdown cause was 'quit' or 'reset', especially when using "--no-reboot". In that case, a management layer can now determine if the guest wanted a reboot or shutdown, and can act accordingly. Changes the output of the reason in the iotests from 'host-qmp' to

Re: [Qemu-devel] [PATCH v1] s390: guest support for diagnose 318 and limit max VCPUs to 247

2018-12-05 Thread Cornelia Huck
On Tue, 4 Dec 2018 17:26:36 -0500 Collin Walling wrote: > I screen-scraped the @ibm address again (Conny was the victim this time) > > Reply to this thread to avoid any delivery failures. > > On 12/4/18 5:18 PM, Collin Walling wrote: > > Add migration and reset support for diagnose 318. This is

Re: [Qemu-devel] [PATCH v6 07/13] fpu: introduce hardfloat

2018-12-05 Thread Programmingkid
> On Dec 4, 2018, at 2:10 PM, qemu-devel-requ...@nongnu.org wrote: > > Emilio G. Cota writes: > >> On Tue, Dec 04, 2018 at 13:52:16 +, Alex Benn?e wrote: We could always #ifdef __FAST_MATH__ #error "Silliness like this will get you nowhere" #endif >>> >>> Emilio,

[Qemu-devel] [Bug 1806824] Re: SIE-200 (TrustZone) MPC: BLK_MAX returns an incorrect value

2018-12-05 Thread Alex Bennée
As per https://www.qemu.org/contribute/report-a-bug/ could you please provide: - the command line you are using - details about the guest you are running (or test case) ** Tags added: arm -- You received this bug notification because you are a member of qemu- devel-ml, which is subscribed

[Qemu-devel] [Bug 1801933] Re: default memory parameter too small on x86_64 today

2018-12-05 Thread Alex Bennée
** Tags added: defaults -- You received this bug notification because you are a member of qemu- devel-ml, which is subscribed to QEMU. https://bugs.launchpad.net/bugs/1801933 Title: default memory parameter too small on x86_64 today Status in QEMU: New Bug description: Launching a centos

[Qemu-devel] [Bug 1806196] Re: qed leaked clusters

2018-12-05 Thread Alex Bennée
** Tags added: qemu-img -- You received this bug notification because you are a member of qemu- devel-ml, which is subscribed to QEMU. https://bugs.launchpad.net/bugs/1806196 Title: qed leaked clusters Status in QEMU: New Bug description: There are examples of two QED files which AFAIK d

[Qemu-devel] [Bug 1805913] Re: readdir() returns NULL (errno=EOVERFLOW) for 32-bit user-static qemu on 64-bit host

2018-12-05 Thread Alex Bennée
** Tags removed: linux user-static ** Tags added: linux-user -- You received this bug notification because you are a member of qemu- devel-ml, which is subscribed to QEMU. https://bugs.launchpad.net/bugs/1805913 Title: readdir() returns NULL (errno=EOVERFLOW) for 32-bit user-static qemu on 6

[Qemu-devel] [Bug 1364501] Re: Gdb hangs when trying to single-step after an invalid instruction

2018-12-05 Thread Alex Bennée
** Tags added: gdbstub -- You received this bug notification because you are a member of qemu- devel-ml, which is subscribed to QEMU. https://bugs.launchpad.net/bugs/1364501 Title: Gdb hangs when trying to single-step after an invalid instruction Status in QEMU: Triaged Bug description:

[Qemu-devel] [Bug 1805256] Re: qemu-img hangs on high core count ARM system

2018-12-05 Thread Alex Bennée
** Tags added: qemu-img -- You received this bug notification because you are a member of qemu- devel-ml, which is subscribed to QEMU. https://bugs.launchpad.net/bugs/1805256 Title: qemu-img hangs on high core count ARM system Status in QEMU: New Bug description: On the HiSilicon D06 sys

[Qemu-devel] [Bug 1801933] Re: default memory parameter too small on x86_64 today

2018-12-05 Thread Daniel Berrange
IMHO, if achieving ease of use comparable to VirtualBox is your benchmark target, then launching QEMU directly is really the wrong way to approach things. QEMU is a very low level piece of infrastructure not a complete end user desktop solution. For that it is better to look at using an application

Re: [Qemu-devel] [PATCH v4] xen/pt: allow passthrough of devices with bogus interrupt pin

2018-12-05 Thread Anthony PERARD
On Wed, Dec 05, 2018 at 02:58:30AM -0500, Zhao Yan wrote: > For some pci device, even its PCI_INTERRUPT_PIN is not 0, it actually > doesn't support INTx mode, so its machine irq read from host sysfs is 0. > In that case, report PCI_INTERRUPT_PIN as 0 to guest and let passthrough > continue. > > Cc

[Qemu-devel] [Bug 1804678] Re: qemu-3.1.0-rc0: mips emulation hangs when executing invalid instructions

2018-12-05 Thread Alex Bennée
** Tags added: mips -- You received this bug notification because you are a member of qemu- devel-ml, which is subscribed to QEMU. https://bugs.launchpad.net/bugs/1804678 Title: qemu-3.1.0-rc0: mips emulation hangs when executing invalid instructions Status in QEMU: New Bug description:

[Qemu-devel] [Bug 1803160] Re: qemu-3.1.0-rc0: tcg.c crash in temp_load

2018-12-05 Thread Alex Bennée
** Tags added: tcg -- You received this bug notification because you are a member of qemu- devel-ml, which is subscribed to QEMU. https://bugs.launchpad.net/bugs/1803160 Title: qemu-3.1.0-rc0: tcg.c crash in temp_load Status in QEMU: New Bug description: QEMU version: -

[Qemu-devel] [Bug 1804961] Re: qemu-system-aarch64: Windows 10 ARM64 BSoD on boot while using virt-3.0

2018-12-05 Thread Alex Bennée
Could it be related to: commit 17ec075a651a3f9613429c2d97018fce459ed943 Author: Eric Auger Date: Fri Jun 22 13:28:37 2018 +0100 hw/arm/virt: Use 256MB ECAM region by default With this patch, virt-3.0 machine uses a new 256MB ECAM region by default instead of the legacy 16MB one, i

[Qemu-devel] [Bug 1801073] Re: util/zbin.c:390:37: error: absolute value function 'abs' given an argument of type 'long int' but has parameter of type 'int' which may cause truncation of value [-Werro

2018-12-05 Thread Alex Bennée
** Tags added: ipxe -- You received this bug notification because you are a member of qemu- devel-ml, which is subscribed to QEMU. https://bugs.launchpad.net/bugs/1801073 Title: util/zbin.c:390:37: error: absolute value function 'abs' given an argument of type 'long int' but has parameter of

Re: [Qemu-devel] [qemu-s390x] [PATCH v1] s390: guest support for diagnose 318 and limit max VCPUs to 247

2018-12-05 Thread Cornelia Huck
On Wed, 5 Dec 2018 09:27:44 +0100 Christian Borntraeger wrote: > On 05.12.2018 09:26, David Hildenbrand wrote: > > On 04.12.18 23:18, Collin Walling wrote: > >> Add migration and reset support for diagnose 318. This is a new z14 GA2 > >> hardware feature, but we can provide guest support start

Re: [Qemu-devel] [qemu-s390x] [PATCH v1] s390: guest support for diagnose 318 and limit max VCPUs to 247

2018-12-05 Thread David Hildenbrand
On 05.12.18 12:54, Cornelia Huck wrote: > On Wed, 5 Dec 2018 09:27:44 +0100 > Christian Borntraeger wrote: > >> On 05.12.2018 09:26, David Hildenbrand wrote: >>> On 04.12.18 23:18, Collin Walling wrote: Add migration and reset support for diagnose 318. This is a new z14 GA2 hardware

Re: [Qemu-devel] [qemu-s390x] [PULL 2/2] iotests: simple mirror test with kvm on 1G image

2018-12-05 Thread Vladimir Sementsov-Ogievskiy
05.12.2018 12:01, Christian Borntraeger wrote: > > > On 05.12.2018 09:46, Kevin Wolf wrote: >> Am 05.12.2018 um 09:23 hat Christian Borntraeger geschrieben: >> +# prepare source image >> +qemu_img_create('-f', iotests.imgfmt, '-o', 'preallocation=metadata', >> disk, >> +

Re: [Qemu-devel] [PATCH 04/18] xen: create xenstore areas for XenDevice-s

2018-12-05 Thread Paul Durrant
> -Original Message- > From: Anthony PERARD [mailto:anthony.per...@citrix.com] > Sent: 29 November 2018 18:49 > To: Paul Durrant > Cc: qemu-bl...@nongnu.org; qemu-devel@nongnu.org; xen- > de...@lists.xenproject.org; Stefano Stabellini ; > Kevin Wolf ; Max Reitz > Subject: Re: [PATCH 04/18

Re: [Qemu-devel] QEMU/NEMU boot time with several x86 firmwares

2018-12-05 Thread Stefano Garzarella
On Tue, Dec 4, 2018 at 11:45 PM Maran Wilson wrote: > > On 12/3/2018 8:35 AM, Stefano Garzarella wrote: > > On Mon, Dec 3, 2018 at 4:44 PM Rob Bradford > > wrote: > >> Hi Stefano, thanks for capturing all these numbers, > >> > >> On Mon, 2018-12-03 at 15:27 +0100, Stefano Garzarella wrote: > >>>

Re: [Qemu-devel] [PATCH v6 11/13] hardfloat: implement float32/64 fused multiply-add

2018-12-05 Thread Alex Bennée
Emilio G. Cota writes: > Performance results for fp-bench: > > 1. Intel(R) Core(TM) i7-6700K CPU @ 4.00GHz > - before: > fma-single: 74.73 MFlops > fma-double: 74.54 MFlops > - after: > fma-single: 203.37 MFlops > fma-double: 169.37 MFlops > > 2. ARM Aarch64 A57 @ 2.4GHz > - before: > fma-singl

Re: [Qemu-devel] [PATCH v3 0/3] qapi: return ShutdownCause for events

2018-12-05 Thread Markus Armbruster
Dominik Csapak writes: > This series improves the QMP SHUTDOWN and RESET events by adding > the ShutdownCause as additional parameter and splitting > the HOST_QMP reason into HOST_QMP_QUIT and HOST_QMP_SYSTEM_RESET > to be able to detect the difference between them when using '--no-reboot' > > th

Re: [Qemu-devel] QEMU/NEMU boot time with several x86 firmwares

2018-12-05 Thread Philippe Mathieu-Daudé
Hi Stefano, On 3/12/18 17:35, Stefano Garzarella wrote: > On Mon, Dec 3, 2018 at 4:44 PM Rob Bradford wrote: >> >> Hi Stefano, thanks for capturing all these numbers, >> >> On Mon, 2018-12-03 at 15:27 +0100, Stefano Garzarella wrote: >>> Hi Rob, >>> I continued to investigate the boot time, and a

Re: [Qemu-devel] QMP accepts double dict keys

2018-12-05 Thread Dr. David Alan Gilbert
* Eric Blake (ebl...@redhat.com) wrote: > On 12/3/18 1:48 PM, Markus Armbruster wrote: > > Eric Blake writes: > > > > > On 12/3/18 10:30 AM, Max Reitz wrote: > > > > Hi, > > > > > > > > QMP accepts double keys in dicts without complaining. The value it is > > > > using is apparently the last on

[Qemu-devel] [PATCH] blk: postpone request execution on a context protected with "drained section"

2018-12-05 Thread Denis Plotnikov
At the time, the "drained section" doesn't protect Block Driver State from the requests appearing in the vCPU threads. This could lead to the data loss because of request coming to an unexpected BDS. For example, when a request comes to ide controller from the guest, the controller creates a reque

Re: [Qemu-devel] [PATCH v6 12/13] hardfloat: implement float32/64 square root

2018-12-05 Thread Alex Bennée
Emilio G. Cota writes: > Performance results for fp-bench: > > Host: Intel(R) Core(TM) i7-6700K CPU @ 4.00GHz > - before: > sqrt-single: 42.30 MFlops > sqrt-double: 22.97 MFlops > - after: > sqrt-single: 311.42 MFlops > sqrt-double: 311.08 MFlops > > Here USE_FP makes a huge difference for f64'

Re: [Qemu-devel] i386: don't require elf64 for multiboot kernel

2018-12-05 Thread Paolo Bonzini
On 05/12/18 06:35, Thomas Huth wrote: > On 2018-12-04 17:55, Gonzo FWS wrote: >> Right now IncludeOS on x86_64 must use a chainloader for multiboot >> support. The chainloader is an ELF32 kernel that loads the real >> ELF64 kernel and jumps to it. As long as the ELF has the .multiboot >> section an

Re: [Qemu-devel] [PATCH] qapi: Add vim magic modelines for qapi definitions

2018-12-05 Thread Peter Krempa
On Thu, Oct 04, 2018 at 13:34:12 +0200, Peter Krempa wrote: > On Tue, Sep 04, 2018 at 09:03:10 +0200, Peter Krempa wrote: > > The files have a json suffix but look terrible with json syntax > > hilighting enabled. Add a magic modeline for vim to switch to python > > file format for hilighting simil

Re: [Qemu-devel] [Bug 1804961] Re: qemu-system-aarch64: Windows 10 ARM64 BSoD on boot while using virt-3.0

2018-12-05 Thread GH Cao
Yeah it seems to be. Windows boots fine after I disable hi ECAM region. ---Original--- From: "Alex Bennée" Date: 2018/12/5 19:41:40 To: "driver1998"; Subject: [Bug 1804961] Re: qemu-system-aarch64: Windows 10 ARM64 BSoD on boot while using virt-3.0 Could it be related to: commit 17ec075a651

[Qemu-devel] [Bug 1803160] Re: qemu-3.1.0-rc0: tcg.c crash in temp_load

2018-12-05 Thread Alex Bennée
Can you please re-test on the current master, I think this was fixed by: commit e84fcd7f662a0d8198703f6f89416d7ac2c32767 Author: Richard Henderson Date: Tue Nov 13 20:35:10 2018 +0100 target/i386: Generate #UD when applying LOCK to a register destination Testing on my box: 12:14:20 [alex

Re: [Qemu-devel] [PATCH v6 13/13] hardfloat: implement float32/64 comparison

2018-12-05 Thread Alex Bennée
Emilio G. Cota writes: > Performance results for fp-bench: > > Host: Intel(R) Core(TM) i7-6700K CPU @ 4.00GHz > - before: > cmp-single: 110.98 MFlops > cmp-double: 107.12 MFlops > - after: > cmp-single: 506.28 MFlops > cmp-double: 524.77 MFlops > > Note that flattening both eq and eq_signaling

Re: [Qemu-devel] [qemu-s390x] [PULL 2/2] iotests: simple mirror test with kvm on 1G image

2018-12-05 Thread Christian Borntraeger
On 05.12.2018 13:00, Vladimir Sementsov-Ogievskiy wrote: > 05.12.2018 12:01, Christian Borntraeger wrote: >> >> >> On 05.12.2018 09:46, Kevin Wolf wrote: >>> Am 05.12.2018 um 09:23 hat Christian Borntraeger geschrieben: >>> +# prepare source image >>> +qemu_img_create('-f', iotests.imgfm

Re: [Qemu-devel] [PATCH v3 0/6] monitor: misc fixes

2018-12-05 Thread Markus Armbruster
Looks ready except for a few commit message tweaks and the proposed assertion tweak in 3/6.

Re: [Qemu-devel] [PATCH v6 00/13] hardfloat

2018-12-05 Thread Alex Bennée
Emilio G. Cota writes: > v5: https://lists.gnu.org/archive/html/qemu-devel/2018-10/msg02793.html > > Changes since v5: > > - Rebase on rth/tcg-next-for-4.0 Awesome work - the series is looking really good now and I think we are ready for a merge once the tree re-opens. I think there were a fe

Re: [Qemu-devel] [for-4.0 PATCH v3 3/9] qapi: Define PCIe link speed and width properties

2018-12-05 Thread Auger Eric
Hi Alex, On 12/4/18 5:26 PM, Alex Williamson wrote: > Create properties to be able to define speeds and widths for PCIe > links. The only tricky bit here is that our get and set callbacks > translate from the fixed QAPI automagic enums to those we define > in PCI code to represent the actual regi

Re: [Qemu-devel] [PATCH 04/18] xen: create xenstore areas for XenDevice-s

2018-12-05 Thread Paul Durrant
> -Original Message- > From: Qemu-devel [mailto:qemu-devel- > bounces+paul.durrant=citrix@nongnu.org] On Behalf Of Paul Durrant > Sent: 05 December 2018 12:05 > To: Anthony Perard > Cc: Kevin Wolf ; Stefano Stabellini > ; qemu-bl...@nongnu.org; qemu-devel@nongnu.org; > Max Reitz ; xen-

Re: [Qemu-devel] [PATCH v10 1/9] mirror: inherit supported write/zero flags

2018-12-05 Thread Vladimir Sementsov-Ogievskiy
Could you please write, what is the behavior change and why here? Is it a bug, that FUA was not inherited before? 03.12.2018 13:14, Anton Nefedov wrote: > Signed-off-by: Anton Nefedov > --- > block/mirror.c | 8 ++-- > 1 file changed, 6 insertions(+), 2 deletions(-) > > diff --git a/bloc

[Qemu-devel] [PATCH] MAINTAINERS: update status of FPU emulation

2018-12-05 Thread Alex Bennée
Given I've spent a fair amount of time around this code now I'm putting myself forward as a maintainer. Also given that the code has been extensively re-written and has testing and new incoming features it's probably more than just Odd Fixes. Signed-off-by: Alex Bennée --- MAINTAINERS | 4 +++-

[Qemu-devel] [PATCH 2 01/39] windbg: add empty windbgstub files

2018-12-05 Thread Mikhail Abakumov
Signed-off-by: Mikhail Abakumov Signed-off-by: Pavel Dovgalyuk --- Makefile.target |3 +++ default-configs/i386-softmmu.mak |1 + include/exec/windbgstub-utils.h | 18 ++ include/exec/windbgstub.h| 17 + stubs/Makefile.objs

[Qemu-devel] [PATCH 2 05/39] windbg: add WindbgState

2018-12-05 Thread Mikhail Abakumov
Add definition of the WindbgState struct and its initialization. Signed-off-by: Mikhail Abakumov Signed-off-by: Pavel Dovgalyuk --- windbgstub.c | 31 +++ 1 file changed, 31 insertions(+) diff --git a/windbgstub.c b/windbgstub.c index 4673703b66..b073cc6a3f 100644

[Qemu-devel] [PATCH 2 08/39] windbg: implement windbg_on_load

2018-12-05 Thread Mikhail Abakumov
Define addresses that must be found on loading stage. Signed-off-by: Mikhail Abakumov Signed-off-by: Pavel Dovgalyuk --- target/i386/windbgstub.c | 48 +- 1 file changed, 47 insertions(+), 1 deletion(-) diff --git a/target/i386/windbgstub.c b/targe

[Qemu-devel] [PATCH 2 00/39] Windbg supporting

2018-12-05 Thread Mikhail Abakumov
An update of: v1: https://lists.gnu.org/archive/html/qemu-devel/2018-11/msg06222.html We made the debugger module WinDbg (like GDB) for QEMU. This is the replacement of the remote server in Windows kernel. Used for remote Windows kernel debugging without debugging mode. WinDbg is a multi

[Qemu-devel] [PATCH 2 02/39] windbg: add windbg's KD header file

2018-12-05 Thread Mikhail Abakumov
Header file from windbg's source code describing the main structures. Signed-off-by: Mikhail Abakumov Signed-off-by: Pavel Dovgalyuk --- include/exec/windbgkd.h | 928 +++ include/exec/windbgstub-utils.h |1 2 files changed, 929 insertions(+) c

[Qemu-devel] [PATCH 2 18/39] windbg: implement windbg_process_control_packet

2018-12-05 Thread Mikhail Abakumov
Signed-off-by: Mikhail Abakumov Signed-off-by: Pavel Dovgalyuk --- windbgstub.c | 35 ++- 1 file changed, 34 insertions(+), 1 deletion(-) diff --git a/windbgstub.c b/windbgstub.c index fe0b007a06..f13c9a6c1e 100644 --- a/windbgstub.c +++ b/windbgstub.c @@ -91,7

[Qemu-devel] [PATCH 2 13/39] windbg: parsing data stream

2018-12-05 Thread Mikhail Abakumov
Add parsing data stream to packets from windbg client. Signed-off-by: Mikhail Abakumov Signed-off-by: Pavel Dovgalyuk --- include/exec/windbgstub-utils.h | 11 +++ windbgstub.c| 139 +++ 2 files changed, 150 insertions(+) diff --git a/

[Qemu-devel] [PATCH 2 04/39] windbg: add helper features

2018-12-05 Thread Mikhail Abakumov
Add some helper features for windbgstub. Signed-off-by: Mikhail Abakumov Signed-off-by: Pavel Dovgalyuk --- include/exec/windbgstub-utils.h | 40 +++ include/exec/windbgstub.h |6 +++ windbgstub-utils.c | 83 +++ 3 f

[Qemu-devel] [PATCH 2 03/39] windbg: add -windbg option

2018-12-05 Thread Mikhail Abakumov
This option starts windbg server. Signed-off-by: Mikhail Abakumov Acked-by: Alistair Francis Signed-off-by: Pavel Dovgalyuk --- qemu-options.hx |8 vl.c|8 2 files changed, 16 insertions(+) diff --git a/qemu-options.hx b/qemu-options.hx index f7df472f43..

[Qemu-devel] [PATCH 2 19/39] windbg: implement windbg_process_data_packet

2018-12-05 Thread Mikhail Abakumov
Signed-off-by: Mikhail Abakumov Signed-off-by: Pavel Dovgalyuk --- windbgstub.c | 27 +++ 1 file changed, 27 insertions(+) diff --git a/windbgstub.c b/windbgstub.c index f13c9a6c1e..8cbece40da 100644 --- a/windbgstub.c +++ b/windbgstub.c @@ -134,8 +134,35 @@ static voi

[Qemu-devel] [PATCH 2 14/39] windbg: send data and control packets

2018-12-05 Thread Mikhail Abakumov
Signed-off-by: Mikhail Abakumov Signed-off-by: Pavel Dovgalyuk --- windbgstub.c | 59 ++ 1 file changed, 59 insertions(+) diff --git a/windbgstub.c b/windbgstub.c index 2869d94389..c45faec43f 100644 --- a/windbgstub.c +++ b/windbgstub.c

[Qemu-devel] [PATCH 2 07/39] windbg: hook to wrmsr operation

2018-12-05 Thread Mikhail Abakumov
Insert hook to wrmsr operation. Windows kernel put address on KPCR struct to fs/gs (x32/x64) register. Needs catch this moment and allow windbgstub handle packets from client. Signed-off-by: Mikhail Abakumov Signed-off-by: Pavel Dovgalyuk --- include/exec/windbgstub-utils.h |3 +++ include/

[Qemu-devel] [PATCH 2 06/39] windbg: add chardev

2018-12-05 Thread Mikhail Abakumov
Add chardev for listening to windbg client. Target device is a parameter in the '-windbg' option. Signed-off-by: Mikhail Abakumov Signed-off-by: Pavel Dovgalyuk --- windbgstub.c | 31 +++ 1 file changed, 31 insertions(+) diff --git a/windbgstub.c b/windbgstub.c in

[Qemu-devel] [PATCH 2 20/39] windbg: implement windbg_process_manipulate_packet

2018-12-05 Thread Mikhail Abakumov
Signed-off-by: Mikhail Abakumov Signed-off-by: Pavel Dovgalyuk --- include/exec/windbgstub-utils.h |2 ++ windbgstub-utils.c |7 +++ windbgstub.c| 27 +++ 3 files changed, 36 insertions(+) diff --git a/include/exec/windbgstu

[Qemu-devel] [PATCH 2 15/39] windbg: handler of parsing context

2018-12-05 Thread Mikhail Abakumov
Signed-off-by: Mikhail Abakumov Signed-off-by: Pavel Dovgalyuk --- windbgstub.c | 54 +- 1 file changed, 53 insertions(+), 1 deletion(-) diff --git a/windbgstub.c b/windbgstub.c index c45faec43f..fe0b007a06 100644 --- a/windbgstub.c +++ b/wi

[Qemu-devel] [PATCH 2 12/39] windbg: implement find_kdDebuggerDataBlock

2018-12-05 Thread Mikhail Abakumov
It is necessary to find address on the structure kdDebuggerDataBlock, which is located somewhere at kernel .data section. We can find it in structure defined in kernel: typedef struct _DBGKD_DEBUG_DATA_HEADER { LIST_ENTRY64 List; ULONG OwnerTag; ULONG Size; } DBGKD_DEBUG_DATA_HEADER, *

[Qemu-devel] [PATCH 2 09/39] windbg: implement find_KPCR

2018-12-05 Thread Mikhail Abakumov
Signed-off-by: Mikhail Abakumov Signed-off-by: Pavel Dovgalyuk --- target/i386/windbgstub.c | 32 1 file changed, 32 insertions(+) diff --git a/target/i386/windbgstub.c b/target/i386/windbgstub.c index 1c1631d7c1..15a90e521c 100644 --- a/target/i386/windbgstub

[Qemu-devel] [PATCH 2 22/39] windbg: some kernel structures

2018-12-05 Thread Mikhail Abakumov
Signed-off-by: Mikhail Abakumov Signed-off-by: Pavel Dovgalyuk --- target/i386/windbgstub.c | 243 ++ 1 file changed, 243 insertions(+) diff --git a/target/i386/windbgstub.c b/target/i386/windbgstub.c index 37c5805818..5d47d5c9e9 100644 --- a/target/

[Qemu-devel] [PATCH 2 16/39] windbg: init DBGKD_ANY_WAIT_STATE_CHANGE

2018-12-05 Thread Mikhail Abakumov
Add function for init DBGKD_ANY_WAIT_STATE_CHANGE. It is a header of 'state change' packets. Signed-off-by: Mikhail Abakumov Signed-off-by: Pavel Dovgalyuk --- target/i386/windbgstub.c | 45 + 1 file changed, 45 insertions(+) diff --git a/target/i3

[Qemu-devel] [PATCH 2 27/39] windbg: implement kd_api_get_context_ex and kd_api_set_context_ex

2018-12-05 Thread Mikhail Abakumov
Signed-off-by: Mikhail Abakumov Signed-off-by: Pavel Dovgalyuk --- include/exec/windbgstub-utils.h |2 + target/i386/windbgstub.c| 90 --- windbgstub.c|8 +++ 3 files changed, 93 insertions(+), 7 deletions(-) diff --git a

[Qemu-devel] [PATCH 2 10/39] windbg: implement find_kdVersion

2018-12-05 Thread Mikhail Abakumov
Signed-off-by: Mikhail Abakumov Signed-off-by: Pavel Dovgalyuk --- target/i386/windbgstub.c | 11 +++ 1 file changed, 11 insertions(+) diff --git a/target/i386/windbgstub.c b/target/i386/windbgstub.c index 15a90e521c..dc58f5a8cc 100644 --- a/target/i386/windbgstub.c +++ b/target/i386/

[Qemu-devel] [PATCH 2 24/39] windbg: [de]serialization cpu context

2018-12-05 Thread Mikhail Abakumov
Signed-off-by: Mikhail Abakumov Signed-off-by: Pavel Dovgalyuk --- target/i386/windbgstub.c | 374 ++ 1 file changed, 372 insertions(+), 2 deletions(-) diff --git a/target/i386/windbgstub.c b/target/i386/windbgstub.c index e2ed2b3105..7a091e1dee 1006

[Qemu-devel] [PATCH 2 21/39] windbg: implement kd_api_read_virtual_memory and kd_api_write_virtual_memory

2018-12-05 Thread Mikhail Abakumov
Signed-off-by: Mikhail Abakumov Signed-off-by: Pavel Dovgalyuk --- include/exec/windbgstub-utils.h |2 ++ windbgstub-utils.c | 47 +++ windbgstub.c|8 +++ 3 files changed, 57 insertions(+) diff --git a/include/ex

[Qemu-devel] [PATCH 2 29/39] windbg: implement kd_api_write_breakpoint and kd_api_restore_breakpoint

2018-12-05 Thread Mikhail Abakumov
Signed-off-by: Mikhail Abakumov Signed-off-by: Pavel Dovgalyuk --- include/exec/windbgstub-utils.h |3 ++ windbgstub-utils.c | 68 +++ windbgstub.c| 12 +++ 3 files changed, 83 insertions(+) diff --git a/include/ex

  1   2   3   4   >