Re: [PATCH 2/2] hyperv/synic: Allocate as ram_device

2020-01-09 Thread Vitaly Kuznetsov
"Dr. David Alan Gilbert" writes: > And I think vhost-user will fail if you have too many sections - and > the 16 sections from synic I think will blow the slots available. > SynIC is percpu, it will allocate two 4k pages for every vCPU the guest has so we're potentially looking at hundreds of su

[PATCH 02/12] linux-user: Add support for getting/setting RTC time and alarm using ioctls

2020-01-09 Thread Filip Bozuta
This patch implements functionalities of following ioctls: RTC_RD_TIME - Getting RTC time Returns this RTC's time in the following structure: struct rtc_time { int tm_sec; int tm_min; int tm_hour; int tm_mday; int tm_mon;

[PATCH 04/12] linux-user: Add support for getting/setting RTC wakeup alarm using ioctls

2020-01-09 Thread Filip Bozuta
This patch implements functionalities of following ioctls: RTC_WKALM_SET, RTC_WKALM_GET - Getting/Setting wakeup alarm Some RTCs support a more powerful alarm interface, using these ioctls to read or write the RTC's alarm time (respectively) with this structure: struct rtc_wk

[PATCH 00/12] linux-user: Add support for real time clock and

2020-01-09 Thread Filip Bozuta
MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This series covers following RTC and sound timer ioctls: RTC ioctls(22): * RTC_AIE_ON * RTC_ALM_SET * RTC_WKALM_SET * RTC_AIE_OFF * RTC_ALM_READ* RTC_WKALM_RD

[PATCH 07/12] linux-user: Add support for getting alsa timer version and id

2020-01-09 Thread Filip Bozuta
This patch implements functionalities of following ioctls: SNDRV_TIMER_IOCTL_PVERSION - Getting the sound timer version Read the sound timer version. The third ioctl's argument is a pointer to an int in which the specified timers version is returned. SNDRV_TIMER_IOCTL_NEXT_DEVICE - G

[PATCH 03/12] linux-user: Add support for getting/setting RTC periodic interrupt and epoch using ioctls

2020-01-09 Thread Filip Bozuta
This patch implements functionalities of following ioctls: RTC_IRQP_READ, RTC_IRQP_SET - Getting/Setting IRQ rate Read and set the frequency for periodic interrupts, for RTCs that support periodic interrupts. The periodic interrupt must be separately enabled or disabled using the RTC_

[PATCH 12/12] linux-user: Add support for selected alsa timer instructions using ioctls

2020-01-09 Thread Filip Bozuta
This patch implements functionalities of following ioctls: SNDRV_TIMER_IOCTL_START - Start selected alsa timer Starts the timer device that is selected. The third ioctl's argument is ignored. Before calling this ioctl, the ioctl "SNDRV_TIMER_IOCTL_SELECT" should be called first to sel

[PATCH 01/12] linux-user: Add support for enabling/disabling RTC features using ioctls

2020-01-09 Thread Filip Bozuta
This patch implements functionalities of following ioctls: RTC_AIE_ON, RTC_AIE_OFF - Alarm interrupt enabling on/off Enable or disable the alarm interrupt, for RTCs that support alarms. The third ioctl's argument is ignored. RTC_UIE_ON, RTC_UIE_OFF - Update interrupt enabling on/off

[PATCH 09/12] linux-user: Add support for getting/setting specified alsa timer parameters using ioctls

2020-01-09 Thread Filip Bozuta
This patch implements functionalities of following ioctls: SNDRV_TIMER_IOCTL_GINFO - Getting information about specified timer Read information about the specified timer. The information about the timer is returned in the following structure: struct snd_timer_ginfo {

[PATCH 06/12] linux-user: Add support for read/clear RTC voltage low detector using ioctls

2020-01-09 Thread Filip Bozuta
RTC_VL_READ - Read voltage low detection information Read the voltage low for RTCs that support voltage low. The third ioctl's' argument points to an int in which the voltage low is returned. RTC_VL_CLR - Clear voltage low information Clear the information about voltage low for R

[PATCH 05/12] linux-user: Add support for getting/setting RTC PLL correction using ioctls

2020-01-09 Thread Filip Bozuta
This patch implements functionalities of following ioctls: RTC_PLL_GET - Getting PLL correction Read the PLL correction for RTCs that support PLL. The PLL correction is returned in the following structure: struct rtc_pll_info { int pll_ctrl;/* placeholder for

[PATCH 08/12] linux-user: Add support for setting alsa timer enhanced read using ioctl

2020-01-09 Thread Filip Bozuta
This patch implements functionalities of following ioctl: SNDRV_TIMER_IOCTL_TREAD - Setting enhanced time read Sets enhanced time read which is used for reading time with timestamps and events. The third ioctl's argument is a pointer to an 'int'. Enhanced reading is set if the third a

[PATCH 10/12] linux-user: Add support for selecting alsa timer using ioctl

2020-01-09 Thread Filip Bozuta
This patch implements functionality of following ioctl: SNDRV_TIMER_IOCTL_SELECT - Selecting timer Selects the timer which id is specified. The timer id is specified in the following strcuture: struct snd_timer_select { struct snd_timer_id id; /* timer ID */ u

[PATCH 11/12] linux-user: Add support for getting/setting selected alsa timer parameters using ioctls

2020-01-09 Thread Filip Bozuta
This patch implements functionalities of following ioctls: SNDRV_TIMER_IOCTL_INFO - Getting information about selected timer Read information about the selected timer. The information is returned in the following structure: struct snd_timer_info { unsigned int flags;

Re: [PATCH 2/2] hyperv/synic: Allocate as ram_device

2020-01-09 Thread Michael S. Tsirkin
On Thu, Jan 09, 2020 at 12:22:37PM +, Dr. David Alan Gilbert wrote: > * Michael S. Tsirkin (m...@redhat.com) wrote: > > On Thu, Jan 09, 2020 at 12:08:20PM +, Dr. David Alan Gilbert wrote: > > > * Michael S. Tsirkin (m...@redhat.com) wrote: > > > > On Wed, Jan 08, 2020 at 01:53:53PM +, D

Re: [PATCH 2/2] hyperv/synic: Allocate as ram_device

2020-01-09 Thread Roman Kagan
On Wed, Jan 08, 2020 at 01:53:53PM +, Dr. David Alan Gilbert (git) wrote: > Mark the synic pages as ram_device so that they won't be visible > to vhost. Unless I'm misreading the code this also makes them invisible to migration. I need some more reading on the ram_device region behavior to be

Re: [PATCH 2/2] hyperv/synic: Allocate as ram_device

2020-01-09 Thread Dr. David Alan Gilbert
* Roman Kagan (rka...@virtuozzo.com) wrote: > On Wed, Jan 08, 2020 at 01:53:53PM +, Dr. David Alan Gilbert (git) wrote: > > Mark the synic pages as ram_device so that they won't be visible > > to vhost. > > Unless I'm misreading the code this also makes them invisible to > migration. > > I ne

Re: [virtio-dev][RFC PATCH v1 1/2] content: define what exporting a resource is

2020-01-09 Thread Gerd Hoffmann
Hi, > that isn't just a leaf node of the spec. I think it's better to define > 'resource' as a top level concept for virtio devices, even if the specifics > of what a 'resource' is are defined by individual device types. Your patch doesn't define what a resource is though. It only refers to so

Re: [virtio-dev][RFC PATCH v1 2/2] virtio-gpu: add the ability to export resources

2020-01-09 Thread Gerd Hoffmann
Hi, > At that point, I think it's just a matter of aesthetics. I lean > slightly towards returning the uuid from the host, since that rules > out any implementation with the aforementioned race. Ok, design the API in a way that you can't get it wrong. Makes sense. I'd still name it ressource_a

Re: [PATCH v5] display/gtk: get proper refreshrate

2020-01-09 Thread Gerd Hoffmann
On Wed, Jan 08, 2020 at 01:13:42PM +0100, pavlica.nik...@gmail.com wrote: > From: Nikola Pavlica > > Because some VMs in QEMU can get GPU virtualization (using technologies > such as iGVT-g, as mentioned previously), they could produce a video > output that had a higher display refresh rate than

Re: [PATCH v3] ui: Print available display backends with '-display help'

2020-01-09 Thread Gerd Hoffmann
On Wed, Jan 08, 2020 at 03:47:02PM +0100, Thomas Huth wrote: > We already print availabled devices with "-device help", or available > backends with "-netdev help" or "-chardev help". Let's provide a way > for the users to query the available display backends, too. > > Reviewed-by: Philippe Mathie

Re: [PATCH 2/2] hyperv/synic: Allocate as ram_device

2020-01-09 Thread Dr. David Alan Gilbert
* Michael S. Tsirkin (m...@redhat.com) wrote: > On Thu, Jan 09, 2020 at 12:22:37PM +, Dr. David Alan Gilbert wrote: > > * Michael S. Tsirkin (m...@redhat.com) wrote: > > > On Thu, Jan 09, 2020 at 12:08:20PM +, Dr. David Alan Gilbert wrote: > > > > * Michael S. Tsirkin (m...@redhat.com) wrot

Re: [PATCH 2/2] hyperv/synic: Allocate as ram_device

2020-01-09 Thread Roman Kagan
On Thu, Jan 09, 2020 at 02:00:00PM +0100, Vitaly Kuznetsov wrote: > "Dr. David Alan Gilbert" writes: > > > And I think vhost-user will fail if you have too many sections - and > > the 16 sections from synic I think will blow the slots available. > > > > SynIC is percpu, it will allocate two 4k p

Re: [PATCH 1/2] travis.yml: avocado: Print logs of non-pass tests only

2020-01-09 Thread Wainer dos Santos Moschetta
On 1/7/20 9:20 AM, Alex Bennée wrote: Wainer dos Santos Moschetta writes: The acceptance tests build on Travis is configured to print the entire Avocado's job log in case any test fail. Usually one is interested on failed tests only though. So this change the Travis configuration in order to

Re: [PATCH 2/2] hyperv/synic: Allocate as ram_device

2020-01-09 Thread Michael S. Tsirkin
On Thu, Jan 09, 2020 at 01:22:42PM +, Dr. David Alan Gilbert wrote: > * Michael S. Tsirkin (m...@redhat.com) wrote: > > On Thu, Jan 09, 2020 at 12:22:37PM +, Dr. David Alan Gilbert wrote: > > > * Michael S. Tsirkin (m...@redhat.com) wrote: > > > > On Thu, Jan 09, 2020 at 12:08:20PM +, D

Re: [PATCH 2/2] hyperv/synic: Allocate as ram_device

2020-01-09 Thread Dr. David Alan Gilbert
* Roman Kagan (rka...@virtuozzo.com) wrote: > On Thu, Jan 09, 2020 at 02:00:00PM +0100, Vitaly Kuznetsov wrote: > > "Dr. David Alan Gilbert" writes: > > > > > And I think vhost-user will fail if you have too many sections - and > > > the 16 sections from synic I think will blow the slots availabl

Re: [PATCH v11 Kernel 3/6] vfio iommu: Implementation of ioctl to for dirty pages tracking.

2020-01-09 Thread Kirti Wankhede
On 1/9/2020 3:59 AM, Alex Williamson wrote: On Thu, 9 Jan 2020 01:31:16 +0530 Kirti Wankhede wrote: On 1/8/2020 3:32 AM, Alex Williamson wrote: On Wed, 8 Jan 2020 01:37:03 +0530 Kirti Wankhede wrote: + + unlocked = vfio_iova_put_vfio_pfn(dma, vpfn, dirty_tracking);

[Bug 1836558] Re: Qemu-ppc Memory leak creating threads

2020-01-09 Thread Thomas Huth
A fix for this bug has been merged here: https://git.qemu.org/?p=qemu.git;a=commitdiff;h=28876bf27d2792e6b16cf It has been released with QEMU v4.2. Can this bug ticket now be closed? -- You received this bug notification because you are a member of qemu- devel-ml, which is subscribed to QEMU. htt

Re: [PATCH 2/2] hyperv/synic: Allocate as ram_device

2020-01-09 Thread Michael S. Tsirkin
On Thu, Jan 09, 2020 at 08:28:00AM -0500, Michael S. Tsirkin wrote: > On Thu, Jan 09, 2020 at 01:22:42PM +, Dr. David Alan Gilbert wrote: > > * Michael S. Tsirkin (m...@redhat.com) wrote: > > > On Thu, Jan 09, 2020 at 12:22:37PM +, Dr. David Alan Gilbert wrote: > > > > * Michael S. Tsirkin

[Bug 1847906] Re: Cocoa display hangs on macOS 10.15 (Catalina)

2020-01-09 Thread Thomas Huth
** Changed in: qemu Status: Fix Committed => Fix Released -- You received this bug notification because you are a member of qemu- devel-ml, which is subscribed to QEMU. https://bugs.launchpad.net/bugs/1847906 Title: Cocoa display hangs on macOS 10.15 (Catalina) Status in QEMU: Fix Re

[Bug 1815423] Re: x86_64 TCG: Incorrect floating point cast to int.

2020-01-09 Thread Thomas Huth
** Changed in: qemu Status: Fix Committed => Fix Released -- You received this bug notification because you are a member of qemu- devel-ml, which is subscribed to QEMU. https://bugs.launchpad.net/bugs/1815423 Title: x86_64 TCG: Incorrect floating point cast to int. Status in QEMU: Fi

Re: [PATCH v3 5/7] gpio: Add GPIO Aggregator/Repeater driver

2020-01-09 Thread Geert Uytterhoeven
Hi Eugeniu, On Tue, Dec 3, 2019 at 11:51 AM Eugeniu Rosca wrote: > On Wed, Nov 27, 2019 at 09:42:51AM +0100, Geert Uytterhoeven wrote: > > +static int gpio_aggregator_probe(struct platform_device *pdev) > > +{ > > + struct device *dev = &pdev->dev; > > + struct gpio_desc **descs; > > +

[Bug 1859021] [NEW] qemu-system-aarch64 (tcg): cval + voff overflow not handled, causes qemu to hang

2020-01-09 Thread Alex Longwall
Public bug reported: The Armv8 architecture reference manual states that for any timer set (e.g. CNTP* and CNTV*), the condition for such timer to generate an interrupt (if enabled & unmasked) is: CVAL <= CNT(P/V)CT Although this is arguably sloppy coding, I have seen code that is therefore assu

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

2020-01-09 Thread Thomas Huth
** Changed in: qemu Status: Fix Committed => Fix Released -- 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 support memfd_create syscall Status in QEMU:

Re: [PATCH for-5.0 v11 19/20] pc: Add support for virtio-iommu-pci

2020-01-09 Thread Auger Eric
Hi Michael, On 1/9/20 1:02 PM, Michael S. Tsirkin wrote: > On Fri, Nov 22, 2019 at 07:29:42PM +0100, Eric Auger wrote: >> The virtio-iommu-pci is instantiated through the -device QEMU >> option. However if instantiated it also requires an IORT ACPI table >> to describe the ID mappings between the

Re: [PATCH 2/2] hyperv/synic: Allocate as ram_device

2020-01-09 Thread Dr. David Alan Gilbert
* Michael S. Tsirkin (m...@redhat.com) wrote: > On Thu, Jan 09, 2020 at 08:28:00AM -0500, Michael S. Tsirkin wrote: > > On Thu, Jan 09, 2020 at 01:22:42PM +, Dr. David Alan Gilbert wrote: > > > * Michael S. Tsirkin (m...@redhat.com) wrote: > > > > On Thu, Jan 09, 2020 at 12:22:37PM +, Dr. D

[Bug 1844597] Re: fc1120a7f5f2d4b601003205c598077d3eb11ad2 causes a kernel panic in vfp_init on a clang built kernel

2020-01-09 Thread Thomas Huth
** Changed in: qemu Status: Fix Committed => Fix Released -- You received this bug notification because you are a member of qemu- devel-ml, which is subscribed to QEMU. https://bugs.launchpad.net/bugs/1844597 Title: fc1120a7f5f2d4b601003205c598077d3eb11ad2 causes a kernel panic in vfp

[Bug 1841491] Re: floating point emulation can fail to set FE_UNDERFLOW

2020-01-09 Thread Thomas Huth
A patch for this bug has been merged here: https://git.qemu.org/?p=qemu.git;a=commitdiff;h=cbc65a8f22b29680f3 ... can we close this ticket now or is there more to do? -- You received this bug notification because you are a member of qemu- devel-ml, which is subscribed to QEMU. https://bugs.launch

[Bug 1829779] Re: qemu-system-arm and qemu-system-aarch64 QMP hangs after kernel boots

2020-01-09 Thread Thomas Huth
A patch for this bug has been merged here: https://git.qemu.org/?p=qemu.git;a=commitdiff;h=085809670201c6d3a33e3 ... can we close this ticket now? -- You received this bug notification because you are a member of qemu- devel-ml, which is subscribed to QEMU. https://bugs.launchpad.net/bugs/1829779

Re: [virtio-dev][RFC PATCH v1 1/2] content: define what exporting a resource is

2020-01-09 Thread David Stevens
> > that isn't just a leaf node of the spec. I think it's better to define > > 'resource' as a top level concept for virtio devices, even if the specifics > > of what a 'resource' is are defined by individual device types. > > Your patch doesn't define what a resource is though. It only refers to

[Bug 1840922] Re: qemu-arm for cortex-m33 aborts with unhandled CPU exception 0x8

2020-01-09 Thread Thomas Huth
** Changed in: qemu Status: Fix Committed => Fix Released -- You received this bug notification because you are a member of qemu- devel-ml, which is subscribed to QEMU. https://bugs.launchpad.net/bugs/1840922 Title: qemu-arm for cortex-m33 aborts with unhandled CPU exception 0x8 Status

[Bug 1839428] Re: qemu core dumped when repeat "system_reset" multiple times during guest boot

2020-01-09 Thread Thomas Huth
** Changed in: qemu Status: Confirmed => Fix Released -- You received this bug notification because you are a member of qemu- devel-ml, which is subscribed to QEMU. https://bugs.launchpad.net/bugs/1839428 Title: qemu core dumped when repeat "system_reset" multiple times during guest

Re: [PATCH v9] qga: add command guest-get-devices for reporting VirtIO devices

2020-01-09 Thread Marc-André Lureau
On Thu, Jan 9, 2020 at 4:40 PM Tomáš Golembiovský wrote: > > Add command for reporting devices on Windows guest. The intent is not so > much to report the devices but more importantly the driver (and its > version) that is assigned to the device. This gives caller the > information whether VirtIO

[Bug 1010484] Re: slirp to accept non-local dns server

2020-01-09 Thread Thomas Huth
Fixed here: https://git.qemu.org/?p=qemu.git;a=commitdiff;h=120b721f5b590393971673 ... and released with QEMU v4.2 ** Changed in: qemu Status: In Progress => Fix Released -- You received this bug notification because you are a member of qemu- devel-ml, which is subscribed to QEMU. https:

Re: [PATCH v3 5/7] gpio: Add GPIO Aggregator/Repeater driver

2020-01-09 Thread Eugeniu Rosca
Hi Geert, On Thu, Jan 09, 2020 at 02:35:10PM +0100, Geert Uytterhoeven wrote: > On Tue, Dec 3, 2019 at 11:51 AM Eugeniu Rosca wrote: > > > > FWIW/FTR, doing some blind creation and deletion of gpio aggregator > > chips [1] on R-Car H3ULCB overnight, kmemleak reported once [2]. Not > > sure this i

[Bug 1838913] Re: Single-step exceptions incorrectly routed to EL1 when ELD is EL2 (TDE = 1) (qemu version 3.1)

2020-01-09 Thread Thomas Huth
** Changed in: qemu Status: Fix Committed => Fix Released -- You received this bug notification because you are a member of qemu- devel-ml, which is subscribed to QEMU. https://bugs.launchpad.net/bugs/1838913 Title: Single-step exceptions incorrectly routed to EL1 when ELD is EL2 (TDE

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

2020-01-09 Thread Thomas Huth
** Changed in: qemu Status: Fix Committed => Fix Released -- 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 --static user build fails with fedora rawhide glibc-2.30.9000 Sta

[Bug 1846451] Re: K800 keyboard no longer works when attached to a VM

2020-01-09 Thread Thomas Huth
Patch has been included here: https://git.qemu.org/?p=qemu.git;a=commitdiff;h=1dfe2b91dcb1633d0ba450 ... and been released with QEMU v4.2 ** Changed in: qemu Status: New => Fix Released -- You received this bug notification because you are a member of qemu- devel-ml, which is subscribed t

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

2020-01-09 Thread Thomas Huth
** Changed in: qemu Status: Fix Committed => Fix Released -- You received this bug notification because you are a member of qemu- devel-ml, which is subscribed to QEMU. https://bugs.launchpad.net/bugs/1811758 Title: virtio-rng backend should use getentropy() syscall when available Stat

Call for Google Summer of Code 2020 project ideas

2020-01-09 Thread Stefan Hajnoczi
Dear QEMU, KVM, and rust-vmm community, QEMU will apply for Google Summer of Code (https://summerofcode.withgoogle.com/) again this year. This internship program offers full-time, paid, 12-week, remote work internships for contributing to open source. QEMU can act as an umbrella organization for

Re: [PATCH v3 12/20] target/arm: generate xml description of our SVE registers

2020-01-09 Thread Alan Hayward
> On 9 Jan 2020, at 12:08, Alex Bennée wrote: > > > Alan Hayward writes: > >>> On 20 Dec 2019, at 13:18, Luis Machado wrote: >>> >>> On 12/20/19 10:14 AM, Alex Bennée wrote: Luis Machado writes: > On 12/19/19 4:15 PM, Alex Bennée wrote: >> Richard Henderson writes: >> >

[PULL v2 01/14] hw/i386/x86-iommu: Add missing stubs

2020-01-09 Thread Alex Bennée
From: Philippe Mathieu-Daudé In commit 6c730e4af9 we introduced a stub to build the MicroVM machine without Intel IOMMU. This stub is incomplete for the other PC machines. Add the missing stubs. Fixes: 6c730e4af9 Reported-by: Travis-CI Signed-off-by: Philippe Mathieu-Daudé Tested-by: Wainer dos

[PULL v2 00/14] testing fixes and semihosting console support

2020-01-09 Thread Alex Bennée
The following changes since commit 035eed4c0d257c905a556fa0f4865a0c077b4e7f: Merge remote-tracking branch 'remotes/vivier/tags/q800-for-5.0-pull-request' into staging (2020-01-07 17:08:21 +) are available in the Git repository at: https://github.com/stsquad/qemu.git tags/pull-testing-an

[PULL v2 02/14] tests/vm: update openbsd to release 6.6

2020-01-09 Thread Alex Bennée
From: Gerd Hoffmann Signed-off-by: Gerd Hoffmann Reviewed-by: Philippe Mathieu-Daudé Tested-by: Philippe Mathieu-Daudé Signed-off-by: Alex Bennée Message-Id: <20191018102443.26469-1-kra...@redhat.com> diff --git a/tests/vm/openbsd b/tests/vm/openbsd index 6df5162dbf4..d6173506f78 100755 ---

[PULL v2 04/14] travis.yml: avocado: Print logs of non-pass tests only

2020-01-09 Thread Alex Bennée
From: Wainer dos Santos Moschetta The acceptance tests build on Travis is configured to print the entire Avocado's job log in case any test fail. Usually one is interested on failed tests only though. So this change the Travis configuration in order to show the log of tests which status is differ

[PULL v2 03/14] freebsd: use python37

2020-01-09 Thread Alex Bennée
From: Gerd Hoffmann FreeBSD seems to use python37 by default now, which breaks the build script. Add python to the package list, to explicitly pick the version, and also adapt the configure command line. Signed-off-by: Gerd Hoffmann Reviewed-by: Philippe Mathieu-Daudé Tested-by: Philippe Math

[PULL v2 08/14] testing: don't nest build for fp-test

2020-01-09 Thread Alex Bennée
Re-calling the main make is counter-productive and really messes up with parallel builds. Just ensure we have built the pre-requisites before we build the fp-test bits. If the user builds manually just complain if the parent build hasn't got the bits we need. Signed-off-by: Alex Bennée Reviewed-b

[PULL v2 07/14] travis.yml: install homebrew python for OS X

2020-01-09 Thread Alex Bennée
Our python3 requirements now outstrip those of the build. While we are at it we can move more of the special casing for Mac into the one build we have. Signed-off-by: Alex Bennée diff --git a/.travis.yml b/.travis.yml index 6826618ea81..6c1038a0f1a 100644 --- a/.travis.yml +++ b/.travis.yml @@ -

[PULL v2 06/14] travis.yml: duplicate before_script for MacOSX

2020-01-09 Thread Alex Bennée
Rather than keep the hack in the global code lets "Think Different" and have a special copy for MacOSX. Signed-off-by: Alex Bennée diff --git a/.travis.yml b/.travis.yml index 848a2714efe..6826618ea81 100644 --- a/.travis.yml +++ b/.travis.yml @@ -89,7 +89,6 @@ git: before_script: - - if [

[PULL v2 10/14] target/arm: only update pc after semihosting completes

2020-01-09 Thread Alex Bennée
Before we introduce blocking semihosting calls we need to ensure we can restart the system on semi hosting exception. To be able to do this the EXCP_SEMIHOST operation should be idempotent until it finally completes. Practically this means ensureing we only update the pc after the semihosting call

[PULL v2 13/14] tests/tcg: extract __semi_call into a header and expand

2020-01-09 Thread Alex Bennée
There are two types of ARM semicall - lets test them both. Putting the logic in a header will make re-using the functions easier later. Signed-off-by: Alex Bennée Reviewed-by: Richard Henderson diff --git a/tests/tcg/arm/semicall.h b/tests/tcg/arm/semicall.h new file mode 100644 index 0

[PULL v2 05/14] travis.yml: Detach build and test steps

2020-01-09 Thread Alex Bennée
From: Wainer dos Santos Moschetta Currently build and test commands are a single step in a Travis's `script` block. In order to see the output of the tests one needs to scroll down the log to find where the build messages ended and the limit is not clear. If they were in different steps then Trav

[PULL v2 14/14] tests/tcg: add user version of dumb-as-bricks semiconsole test

2020-01-09 Thread Alex Bennée
There are linux-user users of semihosting so we'd better check things work for them as well. Signed-off-by: Alex Bennée Reviewed-by: Richard Henderson diff --git a/tests/tcg/arm/semiconsole.c b/tests/tcg/arm/semiconsole.c new file mode 100644 index 000..6ef0bd24500 --- /dev/null +++ b/t

[PULL v2 09/14] target/arm: remove unused EXCP_SEMIHOST leg

2020-01-09 Thread Alex Bennée
All semihosting exceptions are dealt with earlier in the common code so we should never get here. Signed-off-by: Alex Bennée Reviewed-by: Richard Henderson Reviewed-by: Keith Packard Tested-by: Keith Packard diff --git a/target/arm/helper.c b/target/arm/helper.c index b6bec42f48e..da22c198006

[PULL v2 12/14] tests/tcg: add a dumb-as-bricks semihosting console test

2020-01-09 Thread Alex Bennée
We don't run this during check-tcg as we would need to check stuff is echoed back. However we can still build the binary so people can test it manually. Signed-off-by: Alex Bennée Reviewed-by: Richard Henderson diff --git a/tests/tcg/aarch64/system/semiconsole.c b/tests/tcg/aarch64/system/semi

[PULL v2 11/14] semihosting: add qemu_semihosting_console_inc for SYS_READC

2020-01-09 Thread Alex Bennée
From: Keith Packard Provides a blocking call to read a character from the console using semihosting.chardev, if specified. This takes some careful command line options to use stdio successfully as the serial ports, monitor and semihost all want to use stdio. Here's a sample set of command line op

[PATCH v12 00/13] VIRTIO-IOMMU device

2020-01-09 Thread Eric Auger
This series implements the QEMU virtio-iommu device. This matches the v0.12 spec (voted) and the corresponding virtio-iommu driver upstreamed in 5.3. All kernel dependencies are resolved for DT integration. The virtio-iommu can be instantiated in ARM virt using "-device virtio-iommu-pci". Non DT m

[PATCH v12 02/13] virtio-iommu: Add skeleton

2020-01-09 Thread Eric Auger
This patchs adds the skeleton for the virtio-iommu device. Signed-off-by: Eric Auger --- v11 -> v12: - remove s_by_bus_num - drop set_features (rely on default implementation) and acked_features v9 -> v10: - mutex initialized here - initialize tail - included hw/qdev-properties.h - removed g

[PATCH v12 01/13] migration: Support QLIST migration

2020-01-09 Thread Eric Auger
Support QLIST migration using the same principle as QTAILQ: 94869d5c52 ("migration: migrate QTAILQ"). The VMSTATE_QLIST_V macro has the same proto as VMSTATE_QTAILQ_V. The change mainly resides in QLIST RAW macros: QLIST_RAW_INSERT_HEAD and QLIST_RAW_INSERT_AFTER. Tests also are provided. Signed

[PATCH v12 06/13] virtio-iommu: Implement attach/detach command

2020-01-09 Thread Eric Auger
This patch implements the endpoint attach/detach to/from a domain. Signed-off-by: Eric Auger --- v11 -> v12: - check the device is protected by the iommu on attach - on detach, check the domain id the device is attached to matches the one used in the detach command - fix mapping ref counter a

[PATCH v12 04/13] virtio-iommu: Add the iommu regions

2020-01-09 Thread Eric Auger
Implement a callback called on PCI bus enumeration that initializes for a given device on the bus hierarchy an IOMMU memory region. The PCI bus hierarchy is stored locally in IOMMUPciBus and IOMMUDevice objects. At the time of the enumeration, the bus number may not be computed yet. So operations

[PATCH v12 03/13] virtio-iommu: Decode the command payload

2020-01-09 Thread Eric Auger
This patch adds the command payload decoding and introduces the functions that will do the actual command handling. Those functions are not yet implemented. Signed-off-by: Eric Auger Reviewed-by: Jean-Philippe Brucker Reviewed-by: Peter Xu --- v11 -> v12: - ADded Jean and Peter's R-b v10 ->

[PATCH v12 08/13] virtio-iommu: Implement translate

2020-01-09 Thread Eric Auger
This patch implements the translate callback Signed-off-by: Eric Auger Reviewed-by: Jean-Philippe Brucker --- v11 -> v12: - Added Jean's R-b - s/qemu_log_mask/error_report_once v10 -> v11: - take into account the new value struct and use g_tree_lookup_extended - switched to error_report_onc

[PATCH v12 05/13] virtio-iommu: Endpoint and domains structs and helpers

2020-01-09 Thread Eric Auger
This patch introduce domain and endpoint internal datatypes. Both are stored in RB trees. The domain owns a list of endpoints attached to it. Helpers to get/put end points and domains are introduced. get() helpers will become static in subsequent patches. Signed-off-by: Eric Auger --- v11 -> v

[PATCH v12 09/13] virtio-iommu: Implement fault reporting

2020-01-09 Thread Eric Auger
The event queue allows to report asynchronous errors. The translate function now injects faults when relevant. Signed-off-by: Eric Auger --- v11 -> v12: - reporting the addr associated with the fault and set the VIRTIO_IOMMU_FAULT_F_ADDRESS flag. - added cpu_to_le v10 -> v11: - change a virt

[PATCH v12 07/13] virtio-iommu: Implement map/unmap

2020-01-09 Thread Eric Auger
This patch implements virtio_iommu_map/unmap. Signed-off-by: Eric Auger --- v11 -> v12: - check unmanaged managed flags on map - fix leak v10 -> v11: - revisit the implementation of unmap according to Peter's suggestion - removed virt_addr and size from viommu_mapping struct - use g_tree_looku

[PATCH v12 10/13] virtio-iommu-pci: Add virtio iommu pci support

2020-01-09 Thread Eric Auger
This patch adds virtio-iommu-pci, which is the pci proxy for the virtio-iommu device. Signed-off-by: Eric Auger Reviewed-by: Jean-Philippe Brucker --- v11 -> v12: - added Jean's R-b - remove the array of intervals. Will be introduced later? v10 -> v11: - add the reserved_regions array propert

[PATCH v12 11/13] hw/arm/virt: Add the virtio-iommu device tree mappings

2020-01-09 Thread Eric Auger
Adds the "virtio,pci-iommu" node in the host bridge node and the RID mapping, excluding the IOMMU RID. Signed-off-by: Eric Auger Reviewed-by: Jean-Philippe Brucker --- v11 -> v12: - Added Jean's R-b v10 -> v11: - remove msi_bypass v8 -> v9: - disable msi-bypass property - addition of the sub

[PATCH v12 12/13] virtio-iommu: Support migration

2020-01-09 Thread Eric Auger
Add Migration support. We rely on recently added gtree and qlist migration. We only migrate the domain gtree. The endpoint gtree is re-constructed in a post-load operation. Signed-off-by: Eric Auger --- v11 -> v12: - do not migrate the endpoint gtree but reconstruct it from the domain gtree (

[PATCH v12 13/13] tests: Add virtio-iommu test

2020-01-09 Thread Eric Auger
This adds the framework to test the virtio-iommu-pci device and tests exercising the attach/detach, map/unmap API. To run the tests: make tests/qos-test QTEST_QEMU_BINARY=x86_64-softmmu/qemu-system-x86_64 tests/qos-test V=1 Signed-off-by: Eric Auger --- tests/Makefile.include | 2 + test

Re: [PATCH v11 Kernel 3/6] vfio iommu: Implementation of ioctl to for dirty pages tracking.

2020-01-09 Thread Alex Williamson
On Thu, 9 Jan 2020 18:59:40 +0530 Kirti Wankhede wrote: > On 1/9/2020 3:59 AM, Alex Williamson wrote: > > On Thu, 9 Jan 2020 01:31:16 +0530 > > Kirti Wankhede wrote: > > > >> On 1/8/2020 3:32 AM, Alex Williamson wrote: > >>> On Wed, 8 Jan 2020 01:37:03 +0530 > >>> Kirti Wankhede wrote: > >

[Bug 1859021] Re: qemu-system-aarch64 (tcg): cval + voff overflow not handled, causes qemu to hang

2020-01-09 Thread Alex Bennée
** Tags added: arm 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/1859021 Title: qemu-system-aarch64 (tcg): cval + voff overflow not handled, causes qemu to hang Status in QEMU: New Bug d

Re: Pre-Christmas meeting notes

2020-01-09 Thread Vladimir Sementsov-Ogievskiy
06.01.2020 20:15, Max Reitz wrote: > Misc > > > The Wiki’s TODO list is horribly outdated. What should we do about > it? Maybe archive it and start a new one? (Most of the things on the > current list are either done or we don’t want to do anymore.) May be, create block/TODO.txt instead?

Re: [PATCH v12 00/13] VIRTIO-IOMMU device

2020-01-09 Thread no-reply
Patchew URL: https://patchew.org/QEMU/20200109144319.15912-1-eric.au...@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 reproduce it locally. === TEST SCRIPT BEGIN

[PATCH 01/15] target/arm/kvm: Use CPUState::kvm_state in kvm_arm_pmu_supported()

2020-01-09 Thread Philippe Mathieu-Daudé
KVMState is already accessible via CPUState::kvm_state, use it. Signed-off-by: Philippe Mathieu-Daudé --- target/arm/kvm.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/target/arm/kvm.c b/target/arm/kvm.c index b87b59a02a..8d82889150 100644 --- a/target/arm/kvm.c +++ b/t

[PATCH 00/15] Replace current_machine by qdev_get_machine()

2020-01-09 Thread Philippe Mathieu-Daudé
Blurb from previous question [1]: "hw/boards.h" declare current_machine, and vl.c defines it: current_machine = MACHINE(object_new_with_class(OBJECT_CLASS(machine_class))); object_property_add_child(object_get_root(), "machine", OBJECT(current_machine), &e

[PATCH 03/15] hw/ppc/spapr_rtas: Access MachineState via SpaprMachineState argument

2020-01-09 Thread Philippe Mathieu-Daudé
We received a SpaprMachineState argument. Since SpaprMachineState inherits of MachineState, use it instead of calling qdev_get_machine. Signed-off-by: Philippe Mathieu-Daudé --- hw/ppc/spapr_rtas.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hw/ppc/spapr_rtas.c b/hw/ppc/s

[PATCH 08/15] target/arm/monitor: Replace current_machine by qdev_get_machine()

2020-01-09 Thread Philippe Mathieu-Daudé
As we want to remove the global current_machine, replace 'current_machine' by MACHINE(qdev_get_machine()). Signed-off-by: Philippe Mathieu-Daudé --- target/arm/monitor.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/target/arm/monitor.c b/target/arm/monitor.c index fa054f

[PATCH 02/15] hw/ppc/spapr_rtas: Use local MachineState variable

2020-01-09 Thread Philippe Mathieu-Daudé
Since we have the MachineState already available locally, ues it instead of the global current_machine. Signed-off-by: Philippe Mathieu-Daudé --- hw/ppc/spapr_rtas.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hw/ppc/spapr_rtas.c b/hw/ppc/spapr_rtas.c index 8d8d8cdfcb..e8

[PATCH 04/15] hw/ppc/spapr_rtas: Restrict variables scope to single switch case

2020-01-09 Thread Philippe Mathieu-Daudé
We only access these variables in RTAS_SYSPARM_SPLPAR_CHARACTERISTICS case, restrict their scope to avoid unnecessary initialization. Signed-off-by: Philippe Mathieu-Daudé --- hw/ppc/spapr_rtas.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/hw/ppc/spapr_rtas.c b/hw/ppc

[PATCH 05/15] device-hotplug: Replace current_machine by qdev_get_machine()

2020-01-09 Thread Philippe Mathieu-Daudé
As we want to remove the global current_machine, replace MACHINE_GET_CLASS(current_machine) by MACHINE_GET_CLASS(qdev_get_machine()). Signed-off-by: Philippe Mathieu-Daudé --- device-hotplug.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/device-hotplug.c b/device-hotplug.c

[PATCH 12/15] accel: Introduce the current_accel() method

2020-01-09 Thread Philippe Mathieu-Daudé
We want to remove the global current_machine. The accel/ code access few times current_machine->accelerator. Introduce the current_accel() method first, it will then be easier to replace 'current_machine' by MACHINE(qdev_get_machine()). Signed-off-by: Philippe Mathieu-Daudé --- include/sysemu/ac

[PATCH 10/15] memory: Replace current_machine by qdev_get_machine()

2020-01-09 Thread Philippe Mathieu-Daudé
As we want to remove the global current_machine, replace 'current_machine' by MACHINE(qdev_get_machine()). Signed-off-by: Philippe Mathieu-Daudé --- memory.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/memory.c b/memory.c index d7b9bb6951..57e38b1f50 100644 --- a/memor

[PATCH 07/15] hw/core/machine-qmp-cmds: Replace current_machine by qdev_get_machine()

2020-01-09 Thread Philippe Mathieu-Daudé
As we want to remove the global current_machine, replace MACHINE_GET_CLASS(current_machine) by MACHINE_GET_CLASS(qdev_get_machine()). Signed-off-by: Philippe Mathieu-Daudé --- hw/core/machine-qmp-cmds.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/hw/core/machine-qmp-c

[PATCH 06/15] migration/savevm: Replace current_machine by qdev_get_machine()

2020-01-09 Thread Philippe Mathieu-Daudé
As we want to remove the global current_machine, replace MACHINE_GET_CLASS(current_machine) by MACHINE_GET_CLASS(qdev_get_machine()). Signed-off-by: Philippe Mathieu-Daudé --- migration/savevm.c | 10 +- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/migration/savevm.c b/m

Re: [PATCH 2/2] hyperv/synic: Allocate as ram_device

2020-01-09 Thread Paolo Bonzini
On 09/01/20 14:22, Dr. David Alan Gilbert wrote: > * Michael S. Tsirkin (m...@redhat.com) wrote: >> On Thu, Jan 09, 2020 at 12:22:37PM +, Dr. David Alan Gilbert wrote: >>> Do we want a new memory_region_init for that or just to be able to add >>> a flag? >>> >> I think a flag API is preferable

[PATCH 15/15] vl: Make current_machine a local variable

2020-01-09 Thread Philippe Mathieu-Daudé
Since we now only use current_machine in vl.c, stop exporting it as a global variable in "hw/board.h", and make it static to vl.c. Signed-off-by: Philippe Mathieu-Daudé --- include/hw/boards.h | 2 -- vl.c| 4 ++-- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/in

[PATCH 09/15] device_tree: Replace current_machine by qdev_get_machine()

2020-01-09 Thread Philippe Mathieu-Daudé
As we want to remove the global current_machine, replace 'current_machine' by MACHINE(qdev_get_machine()). Signed-off-by: Philippe Mathieu-Daudé --- device_tree.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/device_tree.c b/device_tree.c index f8b46b3c73..665ea2f586 100

Re: Difference between 'current_machine' vs MACHINE(qdev_get_machine())

2020-01-09 Thread Like Xu
On 2020/1/9 20:01, Paolo Bonzini wrote: On 09/01/20 12:23, Philippe Mathieu-Daudé wrote:     current_machine = MACHINE(object_new_with_class(OBJECT_CLASS(machine_class)));     object_property_add_child(object_get_root(), "machine",   OBJECT(current_machine), &err

[Bug 1841491] Re: floating point emulation can fail to set FE_UNDERFLOW

2020-01-09 Thread Paul Clarke
Comment #5 suggested splitting the "float" issue to a separate bug, which was done some time ago (bug #1841592). I think this ticket can be closed. -- You received this bug notification because you are a member of qemu- devel-ml, which is subscribed to QEMU. https://bugs.launchpad.net/bugs/18414

<    1   2   3   >