Re: [PATCH 01/16] target/riscv: skip features setup for KVM CPUs

2023-06-01 Thread Alistair Francis
On Wed, May 31, 2023 at 5:49 AM Daniel Henrique Barboza wrote: > > As it is today it's not possible to use '-cpu host' if the RISC-V host > has RVH enabled. This is the resulting error: > > $ sudo ./qemu/build/qemu-system-riscv64 \ > -machine virt,accel=kvm -m 2G -smp 1 \ > -nographic -sna

[PATCH 1/1] Add a new virtio pci device named virtio-vcpu-stall-watchdog-pci

2023-06-01 Thread zhanghao1
Each vcpu creates a corresponding timer task. The watchdog is driven by a timer according to a certain period. Each time the timer expires, the counter is decremented. When the counter is "0", the watchdog considers the vcpu to be stalling and resets the VM. To avoid watchdog expiration, the guest

[PATCH 0/1] virtio: add a new vcpu stall watchdog

2023-06-01 Thread zhanghao1
A new virtio pci device named virtio-vcpu-stall-watchdog-pci has been added to handle vcpu stalling hw/virtio/Kconfig | 5 + hw/virtio/meson.build | 2 + hw/virtio/virtio-vcpu-stall-watchdog-pci.c| 89 +++ hw/virtio/virtio-vcpu-stal

Re: [PATCH v3 4/6] virtio-net: expose virtio_net_supported_guest_offloads()

2023-06-01 Thread Hawkins Jiawei
On 2023/6/1 22:37, Eugenio Perez Martin wrote: > On Thu, Jun 1, 2023 at 3:49 PM Hawkins Jiawei wrote: >> >> To support restoring offloads state in vdpa, need to expose >> the function virtio_net_supported_guest_offloads(). >> QEMU uses this function to get the guest supported offloads >> and no ne

Re: [PATCH v2 2/4] docs: vhost-user-gpu: add protocol changes for EDID

2023-06-01 Thread Marc-André Lureau
Hi On Wed, May 31, 2023 at 8:08 PM Erico Nunes wrote: > VHOST_USER_GPU_GET_EDID is defined as a message from the backend to the > frontend to retrieve the EDID data for a given scanout. > > The VHOST_USER_GPU_PROTOCOL_F_EDID protocol feature is defined as a way > to check whether this new messag

Re: [PULL 09/21] cutils: Adjust signature of parse_uint[_full]

2023-06-01 Thread Markus Armbruster
Sorry for being late to the party... Eric Blake writes: > It's already confusing that we have two very similar functions for > wrapping the parse of a 64-bit unsigned value, differing mainly on > whether they permit leading '-'. Adjust the signature of parse_uint() > and parse_uint_full() to be

Re: [RFC] linux-user/riscv: Add syscall riscv_hwprobe

2023-06-01 Thread Robbin Ehn
On Thu, 2023-06-01 at 08:15 -0700, Richard Henderson wrote: > On 6/1/23 05:27, Robbin Ehn wrote: > > This patch adds the new syscall for the > > "RISC-V Hardware Probing Interface" > > (https://docs.kernel.org/riscv/hwprobe.html). > > > > Signed-off-by: Robbin Ehn > > --- > > linux-headers/asm-

Re: [PATCH v2 3/4] contrib/vhost-user-gpu: implement get_edid feature

2023-06-01 Thread Marc-André Lureau
Hi On Wed, May 31, 2023 at 8:07 PM Erico Nunes wrote: > Implement the virtio-gpu feature in contrib/vhost-user-gpu, which was > unsupported until now. > In this implementation, the feature is enabled inconditionally to avoid > creating another optional config argument. > Similarly to get_display

Conclusion of yet another expensive UI folly (was: [PULL 00/21] NBD and miscellaneous patches for 2023-06-01)

2023-06-01 Thread Markus Armbruster
Pattern: First, one of us gets a bright idea on user-friendly interface (here: fractional sizes like 1.5M). Objections, if any, get brushed aside. Then the thing sprouts warts, tentacles, sores, and starts to give off that sickly-sweet smell of bugs feasting on misguided ideas. Until one of us

Re: [PATCH] i386/cpu: Don't emulate L3 cache on 8000_001D if l3-cache is disabled

2023-06-01 Thread Xiaoyao Li
On 5/31/2023 8:00 PM, Yanan Wang wrote: Currently, we only avoid emulating L3 cache properties for AMD CPU when l3-cache is off, but failed to consider this case on CPUID 8000_001D. This result in a fact that we will still have L3 caches in the VM although we pass "host-cache-info=off,l3-cache=of

Re: [RFC PATCH 2/5] target/ppc: Add initial flags and helpers for SMT support

2023-06-01 Thread Nicholas Piggin
On Wed May 31, 2023 at 5:25 PM AEST, Cédric Le Goater wrote: > On 5/31/23 03:23, Nicholas Piggin wrote: > > SMT TCG emulation needs to be able to iterate over siblings in a core, > > and needs to serialise core access to shared SPRs and state. > > > > Signed-off-by: Nicholas Piggin > > --- > >

Re: [RFC PATCH 4/5] target/ppc: Add msgsnd/p and DPDES SMT support

2023-06-01 Thread Nicholas Piggin
On Thu Jun 1, 2023 at 5:13 PM AEST, Cédric Le Goater wrote: > On 5/31/23 03:23, Nicholas Piggin wrote: > > Doorbells in SMT need to coordinate msgsnd/msgclr and DPDES access from > > multiple threads that affect the same state. > > > > Signed-off-by: Nicholas Piggin > > --- > > hw/ppc/ppc.c

Re: [RFC PATCH 5/5] spapr: Allow up to 8 threads SMT configuration

2023-06-01 Thread Nicholas Piggin
On Thu Jun 1, 2023 at 5:20 PM AEST, Cédric Le Goater wrote: > On 5/31/23 03:23, Nicholas Piggin wrote: > > TCG now supports multi-threaded configuration at least enough for > > pseries to be functional enough to boot Linux. > > > > This requires PIR and TIR be set, because that's how sibling threa

<    1   2   3   4   5