[RFC PATCH v2 3/4] target/ppc: Remove the software TLB model of 7450 CPUs

2021-11-30 Thread Fabiano Rosas
(Applies to 7441, 7445, 7450, 7451, 7455, 7457, 7447, 7447a and 7448) The QEMU-side software TLB implementation for the 7450 family of CPUs is being removed due to lack of known users in the real world. The last users in the code were removed by the two previous commits. A brief history: The fea

Re: [PATCH] virtio: signal after wrapping packed used_idx

2021-11-30 Thread Michael S. Tsirkin
On Tue, Nov 30, 2021 at 01:45:10PM +, Stefan Hajnoczi wrote: > Packed Virtqueues wrap used_idx instead of letting it run freely like > Split Virtqueues do. If the used ring wraps more than once there is no > way to compare vq->signalled_used and vq->used_idx in > virtio_packed_should_notify() s

Re: why is iommu_platform set to off by default?

2021-11-30 Thread Michael S. Tsirkin
On Tue, Nov 30, 2021 at 02:32:49PM +, Peter Maydell wrote: > I've just spent a day or so trying to track down why PCI passthrough > of a virtio-blk-pci device wasn't working. The problem turns out to be > that by default virtio pci devices don't use the IOMMU, even when the > machine model has

Re: [PATCH v1 1/3] linux-headers: sync VIRTIO_MEM_F_UNPLUGGED_INACCESSIBLE

2021-11-30 Thread Michael S. Tsirkin
On Tue, Nov 30, 2021 at 10:28:36AM +0100, David Hildenbrand wrote: > TODO: replace by a proper header sync. what's the plan for this patchset then? > Signed-off-by: David Hildenbrand > --- > include/standard-headers/linux/virtio_mem.h | 9 ++--- > 1 file changed, 6 insertions(+), 3 deletion

Re: [PATCH v1 0/3] virtio-mem: Support VIRTIO_MEM_F_UNPLUGGED_INACCESSIBLE

2021-11-30 Thread Michael S. Tsirkin
On Tue, Nov 30, 2021 at 10:28:35AM +0100, David Hildenbrand wrote: > Support VIRTIO_MEM_F_UNPLUGGED_INACCESSIBLE in QEMU, which indicates to > a guest that we don't support reading unplugged memory. We indicate > the feature based on a new "unplugged-inaccessible" property available > for x86 targe

Re: why is iommu_platform set to off by default?

2021-11-30 Thread Michael S. Tsirkin
On Tue, Nov 30, 2021 at 04:38:11PM +, Stefan Hajnoczi wrote: > On Tue, Nov 30, 2021 at 02:32:49PM +, Peter Maydell wrote: > > I've just spent a day or so trying to track down why PCI passthrough > > of a virtio-blk-pci device wasn't working. The problem turns out to be > > that by default v

Re: [PATCH] fw_cfg: Fix memory leak in fw_cfg_register_file

2021-11-30 Thread Johan Hovold
On Tue, Nov 16, 2021 at 04:28:34PM +0100, Philippe Mathieu-Daudé wrote: > On 11/16/21 12:42, Miaoqian Lin wrote: > > When kobject_init_and_add() fails, entry should be freed just like > > when sysfs_create_bin_file() fails. > > > > Fixes: fe3c60684377 ("firmware: Fix a reference count leak.") > R

[PULL 1/1] MAINTAINERS: Change my email address

2021-11-30 Thread Eduardo Habkost
The ehabk...@redhat.com email address will stop working on 2021-12-01, change it to my personal email address. Signed-off-by: Eduardo Habkost Message-Id: <20211129163053.2506734-1-ehabk...@redhat.com> Signed-off-by: Eduardo Habkost --- MAINTAINERS | 12 ++-- 1 file changed, 6 insertions

[PULL 0/1] MAINTAINERS update

2021-11-30 Thread Eduardo Habkost
* MAINTAINERS: Change my email address (Eduardo Habkost) Eduardo Habkost (1): MAINTAINERS: Change my email address MAINTAINERS | 12 ++-- 1 file changed, 6 insertions(+), 6 deletions(-) -- 2.32.0

Re: [PATCH v4] target/ppc: fix Hash64 MMU update of PTE bit R

2021-11-30 Thread David Gibson
On Tue, Nov 30, 2021 at 09:44:58AM +0100, Cédric le Goater wrote: > On 11/30/21 01:30, David Gibson wrote: > > On Mon, Nov 29, 2021 at 03:57:51PM -0300, Leandro Lupori wrote: > > > When updating the R bit of a PTE, the Hash64 MMU was using a wrong byte > > > offset, causing the first byte of the ad

Re: [PATCH v8 06/10] target/ppc: enable PMU instruction count

2021-11-30 Thread David Gibson
On Tue, Nov 30, 2021 at 07:24:04PM -0300, Daniel Henrique Barboza wrote: > > > On 11/29/21 01:36, David Gibson wrote: > > On Thu, Nov 25, 2021 at 12:08:13PM -0300, Daniel Henrique Barboza wrote: > > > The PMU is already counting cycles by calculating time elapsed in > > > nanoseconds. Counting in

Re: [PATCH v2 1/2] ppc/pnv.c: add a friendly warning when accel=kvm is used

2021-11-30 Thread David Gibson
On Tue, Nov 30, 2021 at 10:31:52AM -0300, Daniel Henrique Barboza wrote: > If one tries to use -machine powernv9,accel=kvm in a Power9 host, a > cryptic error will be shown: > > qemu-system-ppc64: Register sync failed... If you're using kvm-hv.ko, only > "-cpu host" is possible > qemu-system-ppc6

Re: [PATCH 1/1] hw/arm/virt: Support for virtio-mem-pci

2021-11-30 Thread Gavin Shan
On 11/30/21 8:37 PM, David Hildenbrand wrote: On 30.11.21 01:33, Gavin Shan wrote: This supports virtio-mem-pci device on "virt" platform, by simply following the implementation on x86. Thanks for picking this up! Thanks, David. * The patch was written by David Hildenbrand mod

Re: [PATCH] memory: Fix incorrect calls of log_global_start/stop

2021-11-30 Thread Peter Xu
On Tue, Nov 30, 2021 at 04:03:10PM +0100, David Hildenbrand wrote: > On 30.11.21 09:00, Peter Xu wrote: > > We should only call the log_global_start/stop when the global dirty track > > bitmask changes from zero<->non-zero. > > > > No real issue reported for this yet probably because no immediate

Re: [PULL 0/1] MAINTAINERS update

2021-11-30 Thread Richard Henderson
On 11/30/21 9:47 PM, Eduardo Habkost wrote: * MAINTAINERS: Change my email address (Eduardo Habkost) Eduardo Habkost (1): MAINTAINERS: Change my email address MAINTAINERS | 12 ++-- 1 file changed, 6 insertions(+), 6 deletions(-) Not a pull request. But since it's just one pat

[PATCH] docs: fix section numbering in pcie.txt

2021-11-30 Thread Ani Sinha
There is no 5.2 section. Section 5.3 should really be 5.2. Fix it. Signed-off-by: Ani Sinha --- docs/pcie.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/pcie.txt b/docs/pcie.txt index 89e3502075..90310b0c5e 100644 --- a/docs/pcie.txt +++ b/docs/pcie.txt @@ -262,7 +2

RE: [PATCH] docs: fix section numbering in pcie.txt

2021-11-30 Thread Liu, Yi L
> From: Qemu-devel > On Behalf Of Ani Sinha > Sent: Wednesday, December 1, 2021 2:43 PM > > There is no 5.2 section. Section 5.3 should really be 5.2. Fix it. Reviewed-by: Liu Yi L BTW. Is a fix tag needed? Regards, Yi Liu > Signed-off-by: Ani Sinha > --- > docs/pcie.txt | 2 +- > 1 file c

[PATCH v2] docs: fix section numbering in pcie.txt

2021-11-30 Thread Ani Sinha
There is no 5.2 section. Section 5.3 should really be 5.2. Fix it. fixes: 453ac8835b0022 ("docs: add PCIe devices placement guidelines") Reviewed-by: Liu Yi L Signed-off-by: Ani Sinha --- docs/pcie.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/pcie.txt b/docs/pci

[PATCH] QIO: Add force_quit to the QIOChannel to ensure QIO exits cleanly in some corner case

2021-11-30 Thread Rao, Lei
We found that the QIO channel coroutine could not be awakened in some corner cases during our stress test for COLO. The patch fixes as follow: #0 0x7fad72e24bf6 in __ppoll (fds=0x5563d75861f0, nfds=1, timeout=, sigmask=0x0) at ../sysdeps/unix/sysv/linux/ppoll.c:44 #1

Re: [PATCH v4] target/ppc: fix Hash64 MMU update of PTE bit R

2021-11-30 Thread Cédric Le Goater
On 11/30/21 21:00, Leandro Lupori wrote: On 30/11/2021 05:44, Cédric Le Goater wrote: It would be interesting to boot directly the PowerNV machine from a FreeBSB kernel and a minimum inirtd without using the skiroot images and an iso. Are images available ? AFAIK there are no minimum initrd im

[Bug 1749393] Re: sbrk() not working under qemu-user with a PIE-compiled binary?

2021-11-30 Thread Christian Ehrhardt 
Focal old $ sudo apt install --reinstall qemu-user-static=1:4.2-3ubuntu6.18 Reading package lists... Done Building dependency tree Reading state information... Done 0 upgraded, 0 newly installed, 1 reinstalled, 0 to remove and 0 not upgraded. Need to get 21.3 MB of archives. After this ope

<    1   2