Re: [PATCH v2 3/7] ACPI ERST: support for ACPI ERST feature

2021-05-03 Thread Eric DeVolder
Igor, I've rebased the original patches on to qemu-v6.0.0-rc4, and finally have everything working as it previously did. I've started now to work to incorporate the HostMemoryBackendFile; that is progressing. My question for you today is with regard to placing ERST device on PCI. The PCI example

Re: [PATCH 1/6] block: fix leak of tran in bdrv_root_attach_child

2021-05-03 Thread Alberto Garcia
On Mon 03 May 2021 01:33:57 PM CEST, Vladimir Sementsov-Ogievskiy wrote: > @@ -2918,12 +2918,18 @@ BdrvChild *bdrv_root_attach_child(BlockDriverState > *child_bs, > child_role, perm, shared_perm, opaque, > &child, tran, errp

Re: [PATCH 2/6] block: bdrv_reopen_multiple(): fix leak of tran object

2021-05-03 Thread Alberto Garcia
On Mon 03 May 2021 01:33:58 PM CEST, Vladimir Sementsov-Ogievskiy wrote: > We have one path, where tran object is created, but we don't touch and > don't free it in any way: "goto cleanup" in first loop with calls to > bdrv_flush(). > > Fix it simply moving tran_new() call below that loop. > > Re

[Bug 1762558] Re: Many crashes with "memslot_get_virt: slot_id 170 too big"-type errors in 2.12.0 rc2

2021-05-03 Thread Adam Williamson
This got resolved along the way and wasn't really a qemu bug anyway. ** Changed in: qemu Status: Incomplete => 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/1762558 Title: Many

Re: [PATCH 3/6] block-backend: improve blk_root_get_parent_desc()

2021-05-03 Thread Alberto Garcia
On Mon 03 May 2021 01:33:59 PM CEST, Vladimir Sementsov-Ogievskiy wrote: > We have different types of parents: block nodes, block backends and > jobs. So, it makes sense to specify type together with name. > > While being here also use g_autofree. > > iotest 307 output is updated. > > Signed-off-

Re: [PATCH 5/6] block: simplify bdrv_child_user_desc()

2021-05-03 Thread Alberto Garcia
On Mon 03 May 2021 01:34:01 PM CEST, Vladimir Sementsov-Ogievskiy wrote: > All existing parent types (block nodes, block devices, jobs) has the > realization. So, drop unreachable code. > > Signed-off-by: Vladimir Sementsov-Ogievskiy With the updated description that you propose in your reply t

Re: [PATCH v5 08/10] qtest/bios-tables-test: Make test build-independent from accelerator

2021-05-03 Thread Igor Mammedov
On Mon, 3 May 2021 14:44:32 +0200 Philippe Mathieu-Daudé wrote: > Hi Igor, > > On 5/3/21 2:36 PM, Igor Mammedov wrote: > > On Sun, 2 May 2021 00:36:36 +0200 > > Philippe Mathieu-Daudé wrote: > > > >> Now than we can probe if the TCG accelerator is available > >> at runtime with a QMP comman

Re: [PATCH v2 1/6] hw/sparc/sun4m: Have sun4m machines inherit new TYPE_SUN4M_MACHINE

2021-05-03 Thread Richard Henderson
On 5/2/21 11:54 AM, Philippe Mathieu-Daudé wrote: Introduce the TYPE_SUN4M_MACHINE and have all sun4m machines inherit it. Signed-off-by: Philippe Mathieu-Daudé --- hw/sparc/sun4m.c | 30 +- 1 file changed, 21 insertions(+), 9 deletions(-) Reviewed-by: Richard He

[Bug 1310714] Re: User mode networking SLIRP rapid memory leak

2021-05-03 Thread Thomas Huth
The QEMU project is currently considering to move its bug tracking to another system. For this we need to know which bugs are still valid and which could be closed already. Thus we are setting older bugs to "Incomplete" now. If you still think this bug report here is valid, then please switch the

[Bug 1342686] Re: Windows 95 setup hangs

2021-05-03 Thread Thomas Huth
The QEMU project is currently considering to move its bug tracking to another system. For this we need to know which bugs are still valid and which could be closed already. Thus we are setting older bugs to "Incomplete" now. If you still think this bug report here is valid, then please switch the

Re: [PATCH v6 25/26] gitlab: Rename ACCEL_CONFIGURE_OPTS to EXTRA_CONFIGURE_OPTS

2021-05-03 Thread Willian Rampazzo
On Sun, May 2, 2021 at 9:24 PM Richard Henderson wrote: > > Suggested-by: Thomas Huth > Signed-off-by: Richard Henderson > --- > .gitlab-ci.d/crossbuilds.yml | 10 +- > 1 file changed, 5 insertions(+), 5 deletions(-) > Reviewed-by: Willian Rampazzo > diff --git a/.gitlab-ci.d/crossbu

Re: [PATCH v6 26/26] gitlab: Enable cross-i386 builds of TCI

2021-05-03 Thread Willian Rampazzo
On Sun, May 2, 2021 at 9:14 PM Richard Henderson wrote: > > We're currently only testing TCI with a 64-bit host -- also test > with a 32-bit host. Enable a selection of softmmu and user-only > targets, 32-bit LE, 64-bit LE, 32-bit BE, as there are ifdefs for each. > > Acked-by: Thomas Huth > Rev

[Bug 1396052] Re: migration failed when running BurnInTest in guest

2021-05-03 Thread Thomas Huth
The QEMU project is currently considering to move its bug tracking to another system. For this we need to know which bugs are still valid and which could be closed already. Thus we are setting older bugs to "Incomplete" now. If you still think this bug report here is valid, then please switch the

Re: [PATCH v2 3/6] hw/sparc/sun4m: Factor out sun4m_machine_class_init()

2021-05-03 Thread Richard Henderson
On 5/2/21 11:54 AM, Philippe Mathieu-Daudé wrote: Factor out the class_init code common to all machines to sun4m_machine_class_init(). Signed-off-by: Philippe Mathieu-Daudé --- hw/sparc/sun4m.c | 103 --- 1 file changed, 8 insertions(+), 95 deletion

Re: [PATCH v2 2/6] hw/sparc/sun4m: Introduce Sun4mMachineClass

2021-05-03 Thread Richard Henderson
On 5/2/21 11:54 AM, Philippe Mathieu-Daudé wrote: Instead of passing the sun4m_hwdef structure via machine_init(), store it into the MachineClass. Signed-off-by: Philippe Mathieu-Daudé --- hw/sparc/sun4m.c | 50 +--- 1 file changed, 39 insertions(+)

Re: [PATCH v2 4/6] hw/sparc/sun4m: Register machine types in sun4m_machine_types[]

2021-05-03 Thread Richard Henderson
On 5/2/21 11:54 AM, Philippe Mathieu-Daudé wrote: Signed-off-by: Philippe Mathieu-Daudé --- hw/sparc/sun4m.c | 100 +-- 1 file changed, 36 insertions(+), 64 deletions(-) Reviewed-by: Richard Henderson r~

Re: [PATCH v2 5/6] hw/sparc/sun4m: Fix code style for checkpatch.pl

2021-05-03 Thread Richard Henderson
On 5/2/21 11:54 AM, Philippe Mathieu-Daudé wrote: We are going to move this code, fix its style first. Signed-off-by: Philippe Mathieu-Daudé --- hw/sparc/sun4m.c | 18 +- 1 file changed, 9 insertions(+), 9 deletions(-) Reviewed-by: Richard Henderson r~

Re: [PATCH v2 6/6] hw/sparc/sun4m: Move each sun4m_hwdef definition in its class_init

2021-05-03 Thread Richard Henderson
On 5/2/21 11:54 AM, Philippe Mathieu-Daudé wrote: +static void ss5_class_init(ObjectClass *oc, void *data) +{ +MachineClass *mc = MACHINE_CLASS(oc); +Sun4mMachineClass *smc = SUN4M_MACHINE_CLASS(mc); + +mc->desc = "Sun4m platform, SPARCstation 5"; +mc->is_default = true; +mc->

Re: [PATCH v2 6/6] hw/sparc/sun4m: Move each sun4m_hwdef definition in its class_init

2021-05-03 Thread Philippe Mathieu-Daudé
On 5/3/21 6:27 PM, Richard Henderson wrote: > On 5/2/21 11:54 AM, Philippe Mathieu-Daudé wrote: >> +static void ss5_class_init(ObjectClass *oc, void *data) >> +{ >> +    MachineClass *mc = MACHINE_CLASS(oc); >> +    Sun4mMachineClass *smc = SUN4M_MACHINE_CLASS(mc); >> + >> +    mc->desc = "Sun4m pl

Re: [PATCH v5 08/10] qtest/bios-tables-test: Make test build-independent from accelerator

2021-05-03 Thread Philippe Mathieu-Daudé
On 5/3/21 6:04 PM, Igor Mammedov wrote: > On Mon, 3 May 2021 14:44:32 +0200 > Philippe Mathieu-Daudé wrote: > >> Hi Igor, >> >> On 5/3/21 2:36 PM, Igor Mammedov wrote: >>> On Sun, 2 May 2021 00:36:36 +0200 >>> Philippe Mathieu-Daudé wrote: >>> Now than we can probe if the TCG accelerato

Re: [RFC PATCH-for-6.1 0/9] hw/clock: Strengthen machine (non-qdev) clock propagation

2021-05-03 Thread Philippe Mathieu-Daudé
On 5/3/21 5:20 PM, Igor Mammedov wrote: > On Tue, 13 Apr 2021 15:43:19 -0400 > Eduardo Habkost wrote: > >> On Mon, Apr 12, 2021 at 11:44:29AM +0100, Peter Maydell wrote: >>> On Mon, 12 Apr 2021 at 11:31, Philippe Mathieu-Daudé >>> wrote: TIL MachineClass::reset(). - hw/hppa/mac

[Bug 1323758] Re: Mouse stops working when connected usb-storage-device

2021-05-03 Thread Thomas Huth
This is an automated cleanup. This bug report has been moved to QEMU's new bug tracker on gitlab.com and thus gets marked as 'expired' now. Please continue with the discussion here: https://gitlab.com/qemu-project/qemu/-/issues/102 ** Changed in: qemu Status: Confirmed => Expired ** Bug

[Bug 1277433] Re: GDB context is inconsistent after "monitor system_reset"

2021-05-03 Thread Thomas Huth
This is an automated cleanup. This bug report has been moved to QEMU's new bug tracker on gitlab.com and thus gets marked as 'expired' now. Please continue with the discussion here: https://gitlab.com/qemu-project/qemu/-/issues/100 ** Changed in: qemu Status: New => Expired ** Bug watch

[Bug 1307225] Re: Running a virtual machine on a Haswell system produces machine check events

2021-05-03 Thread Thomas Huth
This is an automated cleanup. This bug report has been moved to QEMU's new bug tracker on gitlab.com and thus gets marked as 'expired' now. Please continue with the discussion here: https://gitlab.com/qemu-project/qemu/-/issues/101 ** Changed in: qemu Status: Triaged => Expired ** Bug w

[PATCH] coverity-scan: list components, move model to scripts/coverity-scan

2021-05-03 Thread Paolo Bonzini
Place all files that can be useful to rebuild the Coverity configuration in scripts/coverity-scan: the existing model file, and the components setup. The Markdown syntax was tested with Pandoc (but in any case is meant more as a human-readable reference than as a part of documentation). Suggested

Re: [PATCH v3 1/2] hw/timer/etraxfs_timer: Convert to 3-phase reset (Resettable interface)

2021-05-03 Thread Edgar E. Iglesias
On Sun, May 02, 2021 at 06:39:30PM +0200, Philippe Mathieu-Daudé wrote: > TYPE_ETRAX_FS_TIMER is a sysbus device, so its DeviceClass::reset() > handler is called automatically when its qbus parent is reset > (we don't need to register it manually). > > Convert the generic reset to a enter/hold res

QEMU tests, Coverity, and g_test_set_nonfatal_assertions()

2021-05-03 Thread Peter Maydell
Currently we generally assume that assertions are always present and always fatal, and we tell Coverity this by putting this into our model file: void g_assertion_message_expr(const char *domain, const char *file, int

Re: [PATCH v3 2/2] hw/rtc/mc146818rtc: Convert to 3-phase reset (Resettable interface)

2021-05-03 Thread Edgar E. Iglesias
On Sun, May 02, 2021 at 06:39:31PM +0200, Philippe Mathieu-Daudé wrote: > TYPE_MC146818_RTC is an ISA device, so its DeviceClass::reset() > handler is called automatically when its qbus parent is reset > (we don't need to register it manually). > > We have 2 reset() methods: a generic one and the

[Bug 1338591] Re: Cursor jumps on shape change with vmware vga

2021-05-03 Thread Thomas Huth
This is an automated cleanup. This bug report has been moved to QEMU's new bug tracker on gitlab.com and thus gets marked as 'expired' now. Please continue with the discussion here: https://gitlab.com/qemu-project/qemu/-/issues/104 ** Changed in: qemu Status: Triaged => Expired ** Bug w

[Bug 1336794] Re: 9pfs does not honor open file handles on unlinked files

2021-05-03 Thread Thomas Huth
This is an automated cleanup. This bug report has been moved to QEMU's new bug tracker on gitlab.com and thus gets marked as 'expired' now. Please continue with the discussion here: https://gitlab.com/qemu-project/qemu/-/issues/103 ** Changed in: qemu Status: Confirmed => Expired ** Bug

Re: [PATCH 0/3] ppc: Convert (mostly) from device_legacy_reset() to device_cold_reset()

2021-05-03 Thread Philippe Mathieu-Daudé
Hi Peter, +Eduardo/Markus On 5/3/21 5:18 PM, Peter Maydell wrote: > The old function device_legacy_reset() (which was originally > device_reset() and got renamed when 3-phase-reset landed) is > deprecated, because it has slightly odd semantics -- it resets the > device itself, but (unlike when a

[Bug 1367365] Re: qemu-img fixed vhd issues

2021-05-03 Thread Thomas Huth
This is an automated cleanup. This bug report has been moved to QEMU's new bug tracker on gitlab.com and thus gets marked as 'expired' now. Please continue with the discussion here: https://gitlab.com/qemu-project/qemu/-/issues/107 ** Changed in: qemu Status: Confirmed => Expired ** Bug

[Bug 1366363] Re: qemu-git gravis ultrasound not working

2021-05-03 Thread Thomas Huth
This is an automated cleanup. This bug report has been moved to QEMU's new bug tracker on gitlab.com and thus gets marked as 'expired' now. Please continue with the discussion here: https://gitlab.com/qemu-project/qemu/-/issues/106 ** Changed in: qemu Status: Triaged => Expired ** Bug w

[PATCH 1/3] tests/qtest/tpm-util.c: Free memory with correct free function

2021-05-03 Thread Peter Maydell
tpm_util_migration_start_qemu() allocates memory with g_strdup_printf() but frees it with free() rather than g_free(), which provokes Coverity complaints (CID 1432379, 1432350). Use the correct free function. Fixes: Coverity CID 1432379, CID 1432350 Signed-off-by: Peter Maydell --- With newer gli

[PATCH 3/3] tests: Avoid side effects inside g_assert() arguments

2021-05-03 Thread Peter Maydell
For us, assertions are always enabled, but side-effect expressions inside the argument to g_assert() are bad style anyway. Fix three occurrences in IPMI related tests, which will silence some Coverity nits. Fixes: CID 1432322, CID 1432287, CID 1432291 Signed-off-by: Peter Maydell --- tests/qtest

[Bug 1371915] Re: Make Uninstall Rule Requested

2021-05-03 Thread Thomas Huth
This is an automated cleanup. This bug report has been moved to QEMU's new bug tracker on gitlab.com and thus gets marked as 'expired' now. Please continue with the discussion here: https://gitlab.com/qemu-project/qemu/-/issues/109 ** Changed in: qemu Status: In Progress => Expired ** B

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

2021-05-03 Thread Thomas Huth
This is an automated cleanup. This bug report has been moved to QEMU's new bug tracker on gitlab.com and thus gets marked as 'expired' now. Please continue with the discussion here: https://gitlab.com/qemu-project/qemu/-/issues/105 ** Changed in: qemu Status: Triaged => Expired ** Bug w

[PATCH 0/3] tests: three easy Coverity fixes

2021-05-03 Thread Peter Maydell
We recently started running Coverity on our tests/ code, which has revealed a pile of issues that we were previously blissfully unaware of. This series fixes three easy ones: * use of free() where g_free() was meant * unnecessary NULL check * side effect inside g_assert() argument thanks -- PMM

[Bug 1377095] Re: KVM guest VM does not reattach a throughpassed USB printer from Host after switching printer off and on

2021-05-03 Thread Thomas Huth
This is an automated cleanup. This bug report has been moved to QEMU's new bug tracker on gitlab.com and thus gets marked as 'expired' now. Please continue with the discussion here: https://gitlab.com/qemu-project/qemu/-/issues/110 ** Changed in: qemu Status: New => Expired ** Bug watch

[PATCH 2/3] tests/qtest/rtc-test: Remove pointless NULL check

2021-05-03 Thread Peter Maydell
In rtc-test.c we know that s is non-NULL because qtest_start() will return a non-NULL value, and we assume this when we pass s to qtest_irq_intercept_in(). So we can drop the initial assignment of NULL and the "if (s)" condition at the end of the function. Fixes: Coverity CID 1432353 Signed-off-by

[Bug 1368178] Re: Windows ME falsely detects qemu's videocards as Number Nine Imagine 128

2021-05-03 Thread Thomas Huth
This is an automated cleanup. This bug report has been moved to QEMU's new bug tracker on gitlab.com and thus gets marked as 'expired' now. Please continue with the discussion here: https://gitlab.com/qemu-project/qemu/-/issues/108 ** Changed in: qemu Status: New => Expired ** Bug watch

Re: [PATCH v2 2/6] vhost-user-blk: Don't reconnect during initialisation

2021-05-03 Thread Raphael Norwitz
So we're not going with the suggestion to retry once or a fixed number of times? Any reason why not? On Thu, Apr 29, 2021 at 07:13:12PM +0200, Kevin Wolf wrote: > This is a partial revert of commits 77542d43149 and bc79c87bcde. > > Usually, an error during initialisation means that the configurat

Re: [RESEND PATCH 01/32] memory: Add RAM_PROTECTED flag to skip IOMMU mappings

2021-05-03 Thread Paolo Bonzini
On 30/04/21 08:24, Yang Zhong wrote: From: Sean Christopherson Add a new RAMBlock flag to denote "protected" memory, i.e. memory that looks and acts like RAM but is inaccessible via normal mechanisms, including DMA. Use the flag to skip protected memory regions when mapping RAM for DMA in VFIO

Re: [PATCH v2 3/7] ACPI ERST: support for ACPI ERST feature

2021-05-03 Thread Igor Mammedov
On Mon, 3 May 2021 15:49:28 + Eric DeVolder wrote: > Igor, > I've rebased the original patches on to qemu-v6.0.0-rc4, and finally have > everything working as it previously did. > I've started now to work to incorporate the HostMemoryBackendFile; that is > progressing. > My question for you

Re: [PATCH 1/3] tests/qtest/tpm-util.c: Free memory with correct free function

2021-05-03 Thread Stefan Berger
On 5/3/21 12:55 PM, Peter Maydell wrote: tpm_util_migration_start_qemu() allocates memory with g_strdup_printf() but frees it with free() rather than g_free(), which provokes Coverity complaints (CID 1432379, 1432350). Use the correct free function. Fixes: Coverity CID 1432379, CID 1432350 Sig

[Bug 1368178] Re: Windows ME falsely detects qemu's videocards as Number Nine Imagine 128

2021-05-03 Thread Thomas Huth
Oliver, did you ever check this with a newer version of QEMU? -- You received this bug notification because you are a member of qemu- devel-ml, which is subscribed to QEMU. https://bugs.launchpad.net/bugs/1368178 Title: Windows ME falsely detects qemu's videocards as Number Nine Imagine 128

[PATCH v3 0/6] hw/sparc/sun4m: Introduce Sun4mMachineClass to access sun4m_hwdefs

2021-05-03 Thread Philippe Mathieu-Daudé
Missing review: 6 Hi Mark, This series QOM'ify the sun4m machines. I need it for a further memory maxsize check. It is mostly code movement (and the diff-stat is good). Since v2: - use static const variable for hwdef (Richard) - added Richard's R-b tag Since v1: - Full rewrite after Mark review

Re: [RESEND PATCH 05/32] vl: Add "sgx-epc" option to expose SGX EPC sections to guest

2021-05-03 Thread Paolo Bonzini
On 30/04/21 08:24, Yang Zhong wrote: +void pc_machine_init_sgx_epc(PCMachineState *pcms) +{ +SGXEPCState *sgx_epc; +X86MachineState *x86ms = X86_MACHINE(pcms); + +sgx_epc = g_malloc0(sizeof(*sgx_epc)); +pcms->sgx_epc = sgx_epc; + +sgx_epc->base = 0x1ULL + x86ms->above_

[PATCH v3 1/6] hw/sparc/sun4m: Have sun4m machines inherit new TYPE_SUN4M_MACHINE

2021-05-03 Thread Philippe Mathieu-Daudé
Introduce the TYPE_SUN4M_MACHINE and have all sun4m machines inherit it. Reviewed-by: Richard Henderson Signed-off-by: Philippe Mathieu-Daudé --- hw/sparc/sun4m.c | 30 +- 1 file changed, 21 insertions(+), 9 deletions(-) diff --git a/hw/sparc/sun4m.c b/hw/sparc/sun4

Re: [RESEND PATCH 05/32] vl: Add "sgx-epc" option to expose SGX EPC sections to guest

2021-05-03 Thread Paolo Bonzini
On 30/04/21 08:24, Yang Zhong wrote: From: Sean Christopherson Because SGX EPC is enumerated through CPUID, EPC "devices" need to be realized prior to realizing the vCPUs themselves, i.e. long before generic devices are parsed and realized. From a virtualization perspective, the CPUID aspect a

Re: [PATCH v2 1/6] vhost-user-blk: Make sure to set Error on realize failure

2021-05-03 Thread Eric Blake
On 4/29/21 12:13 PM, Kevin Wolf wrote: > We have to set errp before jumping to virtio_err, otherwise the caller > (virtio_device_realize()) will take this as success and crash when it > later tries to access things that we've already freed in the error path. > > Fixes: 77542d431491788d1e8e79d93ce1

[PATCH v3 2/6] hw/sparc/sun4m: Introduce Sun4mMachineClass

2021-05-03 Thread Philippe Mathieu-Daudé
Instead of passing the sun4m_hwdef structure via machine_init(), store it into the MachineClass. Reviewed-by: Richard Henderson Signed-off-by: Philippe Mathieu-Daudé --- hw/sparc/sun4m.c | 50 +--- 1 file changed, 39 insertions(+), 11 deletions(-) di

Re: [PATCH] Add missing coroutine_fn function signature to functions

2021-05-03 Thread Stefan Hajnoczi
On Fri, Apr 30, 2021 at 09:34:41PM +, cennedee wrote: > From 447601c28d5ed0b1208a0560390f760e75ce5613 Mon Sep 17 00:00:00 2001 > From: Cenne Dee > Date: Fri, 30 Apr 2021 15:52:28 -0400 > Subject: [PATCH] Add missing coroutine_fn function signature to functions > > Patch adds the signature for

Re: QEMU tests, Coverity, and g_test_set_nonfatal_assertions()

2021-05-03 Thread Peter Maydell
On Mon, 3 May 2021 at 18:15, Richard Henderson wrote: > > On 5/3/21 9:49 AM, Peter Maydell wrote: > > (1) Expand "assertions always fatal" to test code, and add "panics" > > models of the g_assertion_message* functions. Remove all the calls > > to g_test_set_nonfatal_assertions(). > > I vaguely pr

[PATCH v3 5/6] hw/sparc/sun4m: Fix code style for checkpatch.pl

2021-05-03 Thread Philippe Mathieu-Daudé
We are going to move this code, fix its style first. Reviewed-by: Richard Henderson Signed-off-by: Philippe Mathieu-Daudé --- hw/sparc/sun4m.c | 18 +- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/hw/sparc/sun4m.c b/hw/sparc/sun4m.c index a625c41cd37..956216591b

[PATCH v3 3/6] hw/sparc/sun4m: Factor out sun4m_machine_class_init()

2021-05-03 Thread Philippe Mathieu-Daudé
Factor out the class_init code common to all machines to sun4m_machine_class_init(). Reviewed-by: Richard Henderson Signed-off-by: Philippe Mathieu-Daudé --- hw/sparc/sun4m.c | 103 --- 1 file changed, 8 insertions(+), 95 deletions(-) diff --git a/hw

Re: [PATCH 0/3] ppc: Convert (mostly) from device_legacy_reset() to device_cold_reset()

2021-05-03 Thread Peter Maydell
On Mon, 3 May 2021 at 17:55, Philippe Mathieu-Daudé wrote: > > Hi Peter, > > +Eduardo/Markus > > On 5/3/21 5:18 PM, Peter Maydell wrote: > > The old function device_legacy_reset() (which was originally > > device_reset() and got renamed when 3-phase-reset landed) is > > deprecated, because it has

[PATCH v3 4/6] hw/sparc/sun4m: Register machine types in sun4m_machine_types[]

2021-05-03 Thread Philippe Mathieu-Daudé
Reviewed-by: Richard Henderson Signed-off-by: Philippe Mathieu-Daudé --- hw/sparc/sun4m.c | 100 +-- 1 file changed, 36 insertions(+), 64 deletions(-) diff --git a/hw/sparc/sun4m.c b/hw/sparc/sun4m.c index 56f927e66ca..a625c41cd37 100644 --- a/hw/spar

[Bug 1926952] Re: SPICE support broken with 6.0

2021-05-03 Thread Firecode95
But is there any option to dynamically add/remove usb devices like from spice client to vm that is powered up without using spice? As far I have found there is no such option. -- You received this bug notification because you are a member of qemu- devel-ml, which is subscribed to QEMU. https://bu

[PATCH v3 6/6] hw/sparc/sun4m: Move each sun4m_hwdef definition in its class_init

2021-05-03 Thread Philippe Mathieu-Daudé
Remove the sun4m_hwdefs[] array by moving assigning the structure fields directly in each machine class_init() function. Signed-off-by: Philippe Mathieu-Daudé --- hw/sparc/sun4m.c | 248 ++- 1 file changed, 118 insertions(+), 130 deletions(-) diff --g

Re: [PATCH 3/3] tests: Avoid side effects inside g_assert() arguments

2021-05-03 Thread Philippe Mathieu-Daudé
On 5/3/21 6:55 PM, Peter Maydell wrote: > For us, assertions are always enabled, but side-effect expressions > inside the argument to g_assert() are bad style anyway. Fix three > occurrences in IPMI related tests, which will silence some Coverity > nits. > > Fixes: CID 1432322, CID 1432287, CID 14

[PATCH 0/2] target/i386/cpu: Constify CPUCaches and X86CPUDefinition

2021-05-03 Thread Philippe Mathieu-Daudé
X86CPUDefinition[] is never written, move it to .rodata section by marking it const. Philippe Mathieu-Daudé (2): target/i386/cpu: Constify CPUCaches target/i386/cpu: Constify X86CPUDefinition target/i386/cpu.c | 21 +++-- 1 file changed, 11 insertions(+), 10 deletions(-) --

Re: QEMU tests, Coverity, and g_test_set_nonfatal_assertions()

2021-05-03 Thread Richard Henderson
On 5/3/21 9:49 AM, Peter Maydell wrote: (1) Expand "assertions always fatal" to test code, and add "panics" models of the g_assertion_message* functions. Remove all the calls to g_test_set_nonfatal_assertions(). I vaguely prefer this. To me, "assert" means can't continue. If we want tests tha

[PATCH 2/2] target/i386/cpu: Constify X86CPUDefinition

2021-05-03 Thread Philippe Mathieu-Daudé
Signed-off-by: Philippe Mathieu-Daudé --- target/i386/cpu.c | 13 +++-- 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/target/i386/cpu.c b/target/i386/cpu.c index c7ded968e74..3a6f1c55ef3 100644 --- a/target/i386/cpu.c +++ b/target/i386/cpu.c @@ -1668,7 +1668,7 @@ typedef s

[PATCH 1/2] target/i386/cpu: Constify CPUCaches

2021-05-03 Thread Philippe Mathieu-Daudé
Signed-off-by: Philippe Mathieu-Daudé --- target/i386/cpu.c | 8 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/target/i386/cpu.c b/target/i386/cpu.c index ad99cad0e7c..c7ded968e74 100644 --- a/target/i386/cpu.c +++ b/target/i386/cpu.c @@ -1655,7 +1655,7 @@ typedef struct

[PATCH 1/2] linux-user: Add copy_file_range to strace.list

2021-05-03 Thread LemonBoy
From: Giuseppe Musacchio Signed-off-by: Giuseppe Musacchio --- linux-user/strace.list | 3 +++ 1 file changed, 3 insertions(+) diff --git a/linux-user/strace.list b/linux-user/strace.list index 084048ab96..b81f9964e3 100644 --- a/linux-user/strace.list +++ b/linux-user/strace.list @@ -1665,3 +

[PATCH 2/2] linux-user: Fix erroneous conversion in copy_file_range

2021-05-03 Thread LemonBoy
From: Giuseppe Musacchio The implicit cast from abi_long to size_t may introduce an intermediate unwanted sign-extension of the value for 32bit targets running on 64bit hosts. Signed-off-by: Giuseppe Musacchio --- linux-user/syscall.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) di

[PATCH 0/2] linux-user: Small fix for copy_file_range

2021-05-03 Thread LemonBoy
From: Giuseppe Musacchio An unwanted sign-extension is currently making the host kernel return EOVERFLOW when calling copy_file_range with a count of 0x, despite the host being a 64bit platform. The fix is only affecting 32bit targets on 64bit hosts, it's a no-op when the target bitness

Re: [PATCH v2 1/6] vhost-user-blk: Make sure to set Error on realize failure

2021-05-03 Thread Raphael Norwitz
Acked-by: Raphael Norwitz On Thu, Apr 29, 2021 at 07:13:11PM +0200, Kevin Wolf wrote: > We have to set errp before jumping to virtio_err, otherwise the caller > (virtio_device_realize()) will take this as success and crash when it > later tries to access things that we've already freed in the err

Re: [RESEND PATCH 03/32] qom: Add memory-backend-epc ObjectOptions support

2021-05-03 Thread Eric Blake
On 4/30/21 1:24 AM, Yang Zhong wrote: > Add the new 'memory-backend-epc' user creatable QOM object in > the ObjectOptions to support SGX, or the sgx backend object > cannot bootup. > > Signed-off-by: Yang Zhong > --- > qapi/qom.json | 2 ++ > 1 file changed, 2 insertions(+) Missing documentatio

Re: [RESEND PATCH 25/32] qmp: Add query-sgx command

2021-05-03 Thread Eric Blake
On 4/30/21 1:24 AM, Yang Zhong wrote: > This QMP query command can be used by some userspaces to retrieve > the SGX information when SGX is enabled on Intel platform. > > Signed-off-by: Yang Zhong > --- > monitor/qmp-cmds.c | 6 ++ > qapi/misc.json | 42 +

Re: [PATCH] hw/ide: Fix crash when plugging a piix3-ide device into the x-remote machine

2021-05-03 Thread Philippe Mathieu-Daudé
Hi Elena, +Mark You asked to use the next KVM-external call slot to talk about the ISA bus issues. I haven't scheduled the call because it seems this thread helped to figure the problems and Markus's analysis resumed them all. From here it should be clearer to see what has to be done to go where

Re: [RESEND PATCH 29/32] qmp: Add the qmp_query_sgx_capabilities()

2021-05-03 Thread Eric Blake
On 4/30/21 1:24 AM, Yang Zhong wrote: > The libvirt can use qmp_query_sgx_capabilities() to get the host s/The libvirt/Libvirt/ > sgx capabilitis. > capabilities > Signed-off-by: Yang Zhong > --- > hw/i386/sgx-epc.c | 66 ++ > include/hw/i386/pc.h

Re: [RESEND PATCH 31/32] sgx-epc: Add the fill_device_info() callback support

2021-05-03 Thread Eric Blake
On 4/30/21 1:24 AM, Yang Zhong wrote: > Since there is no fill_device_info() callback support, and when we > execute "info memory-devices" command in the monitor, the segfault > will be found. > > This patch will add this callback support and "info memory-devices" > will show sgx epc memory expose

Re: Let's remove some deprecated stuff

2021-05-03 Thread Eric Blake
On 4/29/21 4:59 AM, Markus Armbruster wrote: > If you're cc'ed, you added a section to docs/system/deprecated.rst that > is old enough to permit removal. This is *not* a demand to remove, it's > a polite request to consider whether the time for removal has come. > Extra points for telling us in a

Re: [PATCH v4 1/3] spapr: nvdimm: Forward declare and move the definitions

2021-05-03 Thread Eric Blake
On 4/28/21 10:48 PM, Shivaprasad G Bhat wrote: > The subsequent patches add definitions which tend to > get the compilation to cyclic dependency. So, prepare > with forward declarations, move the defitions and clean up. definitions > > Signed-off-by: Shivaprasad G Bhat > --- > hw/ppc/spapr_nvd

Re: [PATCH v4 3/3] nvdimm: Enable sync-dax device property for nvdimm

2021-05-03 Thread Eric Blake
On 4/28/21 10:49 PM, Shivaprasad G Bhat wrote: > The patch adds the 'sync-dax' property to the nvdimm device. > > When the sync-dax is 'direct' indicates the backend is synchronous DAX > capable and no explicit flush requests are required. When the mode is > set to 'writeback' it indicates the bac

[PATCH v3 01/16] tcg/s390x: Rename from tcg/s390

2021-05-03 Thread Richard Henderson
This emphasizes that we don't support s390, only 64-bit s390x hosts. Signed-off-by: Richard Henderson --- meson.build | 2 -- tcg/{s390 => s390x}/tcg-target-con-set.h | 0 tcg/{s390 => s390x}/tcg-target-con-str.h | 0 tcg/{s390 => s390x}/tcg-target.h | 0 tcg

[PATCH v3 06/16] tcg/s390x: Implement tcg_out_mov for vector types

2021-05-03 Thread Richard Henderson
Signed-off-by: Richard Henderson --- tcg/s390x/tcg-target.c.inc | 72 +++--- 1 file changed, 68 insertions(+), 4 deletions(-) diff --git a/tcg/s390x/tcg-target.c.inc b/tcg/s390x/tcg-target.c.inc index 6ed9a309c1..439ab5a359 100644 --- a/tcg/s390x/tcg-target.c.inc

[PATCH v3 04/16] tcg/s390x: Add host vector framework

2021-05-03 Thread Richard Henderson
Add registers and function stubs. The functionality is disabled via squashing s390_facilities[2] to 0. We must still include results for the mandatory opcodes in tcg_target_op_def, as all opcodes are checked during tcg init. Signed-off-by: Richard Henderson --- tcg/s390x/tcg-target-con-set.h |

[PATCH v3 09/16] tcg/s390x: Implement andc, orc, abs, neg, not vector operations

2021-05-03 Thread Richard Henderson
These logical and arithmetic operations are optional but trivial. Signed-off-by: Richard Henderson --- tcg/s390x/tcg-target-con-set.h | 1 + tcg/s390x/tcg-target.h | 10 +- tcg/s390x/tcg-target.c.inc | 34 +- 3 files changed, 39 insertions(+),

[PATCH v3 10/16] tcg/s390x: Implement TCG_TARGET_HAS_mul_vec

2021-05-03 Thread Richard Henderson
Signed-off-by: Richard Henderson --- tcg/s390x/tcg-target.h | 2 +- tcg/s390x/tcg-target.c.inc | 7 +++ 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/tcg/s390x/tcg-target.h b/tcg/s390x/tcg-target.h index dd11972ed2..13b9918276 100644 --- a/tcg/s390x/tcg-target.h +++ b/tcg/

[PATCH v3 08/16] tcg/s390x: Implement minimal vector operations

2021-05-03 Thread Richard Henderson
Implementing add, sub, and, or, xor as the minimal set. This allows us to actually enable vectors in query_s390_facilities. Signed-off-by: Richard Henderson --- tcg/s390x/tcg-target.c.inc | 154 - 1 file changed, 150 insertions(+), 4 deletions(-) diff --git a

[PATCH v3 05/16] tcg/s390x: Implement tcg_out_ld/st for vector types

2021-05-03 Thread Richard Henderson
Signed-off-by: Richard Henderson --- tcg/s390x/tcg-target.c.inc | 117 + 1 file changed, 105 insertions(+), 12 deletions(-) diff --git a/tcg/s390x/tcg-target.c.inc b/tcg/s390x/tcg-target.c.inc index 52df20a1ed..6ed9a309c1 100644 --- a/tcg/s390x/tcg-target.c.in

[PATCH v3 00/16] tcg/s390x: host vector support

2021-05-03 Thread Richard Henderson
Changes for v3: * Rebase on master. Changes for v2: * Rebase on master, now that all prereq are upstream. r~ Richard Henderson (16): tcg/s390x: Rename from tcg/s390 tcg/s390x: Change FACILITY representation tcg/s390x: Merge TCG_AREG0 and TCG_REG_CALL_STACK into TCGReg tcg/s390x: Add

[PATCH v3 14/16] tcg/s390x: Implement TCG_TARGET_HAS_sat_vec

2021-05-03 Thread Richard Henderson
The unsigned saturations are handled via generic code using min/max. The signed saturations are expanded using double-sized arithmetic and a saturating pack. Since all operations are done via expansion, do not actually set TCG_TARGET_HAS_sat_vec. Signed-off-by: Richard Henderson --- tcg/s390x/

[PATCH v3 07/16] tcg/s390x: Implement tcg_out_dup*_vec

2021-05-03 Thread Richard Henderson
Signed-off-by: Richard Henderson --- tcg/s390x/tcg-target.c.inc | 122 - 1 file changed, 119 insertions(+), 3 deletions(-) diff --git a/tcg/s390x/tcg-target.c.inc b/tcg/s390x/tcg-target.c.inc index 439ab5a359..ff28d84f95 100644 --- a/tcg/s390x/tcg-target.c.inc

[PATCH v3 11/16] tcg/s390x: Implement vector shift operations

2021-05-03 Thread Richard Henderson
Signed-off-by: Richard Henderson --- tcg/s390x/tcg-target-con-set.h | 1 + tcg/s390x/tcg-target.h | 12 ++--- tcg/s390x/tcg-target.c.inc | 93 +- 3 files changed, 99 insertions(+), 7 deletions(-) diff --git a/tcg/s390x/tcg-target-con-set.h b/tcg/s390x

[PATCH v3 12/16] tcg/s390x: Implement TCG_TARGET_HAS_minmax_vec

2021-05-03 Thread Richard Henderson
Signed-off-by: Richard Henderson --- tcg/s390x/tcg-target.h | 2 +- tcg/s390x/tcg-target.c.inc | 25 + 2 files changed, 26 insertions(+), 1 deletion(-) diff --git a/tcg/s390x/tcg-target.h b/tcg/s390x/tcg-target.h index 3026a4d8c4..efa32f348c 100644 --- a/tcg/s390x/tc

[PATCH v3 02/16] tcg/s390x: Change FACILITY representation

2021-05-03 Thread Richard Henderson
We will shortly need to be able to check facilities beyond the first 64. Instead of explicitly masking against s390_facilities, create a HAVE_FACILITY macro that indexes an array. Reviewed-by: David Hildenbrand Signed-off-by: Richard Henderson --- v2: Change name to HAVE_FACILITY (david) --- t

[PATCH v3 13/16] tcg: Expand usadd/ussub with umin/umax

2021-05-03 Thread Richard Henderson
For usadd, we only have to consider overflow. Since ~B + B == -1, the maximum value for A that saturates is ~B. For ussub, we only have to consider underflow. The minimum value that saturates to 0 from A - B is B. Signed-off-by: Richard Henderson --- tcg/tcg-op-vec.c | 37

[PATCH v3 15/16] tcg/s390x: Implement TCG_TARGET_HAS_bitsel_vec

2021-05-03 Thread Richard Henderson
Signed-off-by: Richard Henderson --- tcg/s390x/tcg-target-con-set.h | 1 + tcg/s390x/tcg-target.h | 2 +- tcg/s390x/tcg-target.c.inc | 20 3 files changed, 22 insertions(+), 1 deletion(-) diff --git a/tcg/s390x/tcg-target-con-set.h b/tcg/s390x/tcg-target-con-se

Re: [PATCH 1/2] linux-user: Add copy_file_range to strace.list

2021-05-03 Thread Laurent Vivier
Le 03/05/2021 à 19:41, LemonBoy a écrit : > From: Giuseppe Musacchio > > Signed-off-by: Giuseppe Musacchio > --- > linux-user/strace.list | 3 +++ > 1 file changed, 3 insertions(+) > > diff --git a/linux-user/strace.list b/linux-user/strace.list > index 084048ab96..b81f9964e3 100644 > --- a/li

[PATCH v3 16/16] tcg/s390x: Implement TCG_TARGET_HAS_cmpsel_vec

2021-05-03 Thread Richard Henderson
This is via expansion; don't actually set TCG_TARGET_HAS_cmpsel_vec. Signed-off-by: Richard Henderson --- tcg/s390x/tcg-target.c.inc | 24 +++- 1 file changed, 23 insertions(+), 1 deletion(-) diff --git a/tcg/s390x/tcg-target.c.inc b/tcg/s390x/tcg-target.c.inc index 178b992b

[PATCH v3 03/16] tcg/s390x: Merge TCG_AREG0 and TCG_REG_CALL_STACK into TCGReg

2021-05-03 Thread Richard Henderson
They are rightly values in the same enumeration. Reviewed-by: David Hildenbrand Signed-off-by: Richard Henderson --- tcg/s390x/tcg-target.h | 28 +++- 1 file changed, 7 insertions(+), 21 deletions(-) diff --git a/tcg/s390x/tcg-target.h b/tcg/s390x/tcg-target.h index c61

Re: [PATCH 2/2] linux-user: Fix erroneous conversion in copy_file_range

2021-05-03 Thread Laurent Vivier
Le 03/05/2021 à 19:41, LemonBoy a écrit : > From: Giuseppe Musacchio > > The implicit cast from abi_long to size_t may introduce an intermediate > unwanted sign-extension of the value for 32bit targets running on 64bit > hosts. > > Signed-off-by: Giuseppe Musacchio > --- > linux-user/syscall.c

[Bug 1926995] [NEW] hw/remote/mpqemu-link.c:221: bad error checking ?

2021-05-03 Thread dcb
Public bug reported: hw/remote/mpqemu-link.c:221:36: warning: logical ‘and’ of mutually exclusive tests is always false [-Wlogical-op] Source code is if (msg->cmd >= MPQEMU_CMD_MAX && msg->cmd < 0) { return false; } Maybe better code: if (msg->cmd >= MPQEMU_CMD_MAX || msg->cm

[Bug 1926996] [NEW] qemu-user clone syscall fails

2021-05-03 Thread Aaron Simmons
Public bug reported: qemu-user fails to emulate clone() (https://linux.die.net/man/2/clone). The architecture doesn't seem to matter, tho I've mostly been testing aarch64. Attached is clone_test.c that demonstrates the problem. Running it natively looks like this: $ bin/x86_64/clone_test The va

[Bug 1926996] Re: qemu-user clone syscall fails

2021-05-03 Thread Aaron Simmons
clone_test (aarch64) ** Attachment added: "clone_test (aarch64)" https://bugs.launchpad.net/qemu/+bug/1926996/+attachment/5494469/+files/clone_test -- You received this bug notification because you are a member of qemu- devel-ml, which is subscribed to QEMU. https://bugs.launchpad.net/bugs/1

[Bug 1926996] Re: qemu-user clone syscall fails

2021-05-03 Thread Aaron Simmons
clone_test x86_64 binary ** Description changed: qemu-user fails to emulate clone() (https://linux.die.net/man/2/clone). The architecture doesn't seem to matter, tho I've mostly been testing aarch64. Attached is clone_test.c that demonstrates the problem. Running it natively looks li

<    1   2   3   4   5   >