Re: [PATCH] vfio: Support P2P access in confidential VM

2025-01-21 Thread Wencheng Yang
addr, only device driver knows that, now that the device is managed by user space VFIO, user should tell the info to VFIO driver. On Mon, Jan 20, 2025 at 6:21 PM David Hildenbrand wrote: > On 16.01.25 10:53, Wencheng Yang wrote: > > On confidential VM platform, for example, AMD-SEV, P2P

[PATCH] vfio: Support P2P access in confidential VM

2025-01-16 Thread Wencheng Yang
bar, the member @ram_device of MemoryRegion indicates the memory region is for mmio. The patch passes the info to VFIO DAM API, IOMMU driver would do the correct thing. Signed-off-by: Wencheng Yang --- hw/vfio/common.c | 67 +-- hw/vfio/container-base.c

[PATCH v9] virtio-net: Fix network stall at the host side waiting for kick

2024-07-11 Thread Wencheng Yang
n the used ring written by the host is beyound the range of kick condition, the guest will not send kick signal to the host. Fixes: 06b12970174 ("virtio-net: fix network stall under load") Signed-off-by: Wencheng Yang --- Changelog: v9: - Add document -

[PATCH v9] virtio-net: Fix network stall at the host side waiting for kick

2024-07-08 Thread Wencheng Yang
n the used ring written by the host is beyound the range of kick condition, the guest will not send kick signal to the host. Fixes: 06b12970174 ("virtio-net: fix network stall under load") Signed-off-by: Wencheng Yang --- Changelog: v9: - Add document -

[PATCH v9] virtio-net: Fix network stall at the host side waiting for kick

2024-07-07 Thread Wencheng Yang
n the used ring written by the host is beyound the range of kick condition, the guest will not send kick signal to the host. Fixes: 06b12970174 ("virtio-net: fix network stall under load") Signed-off-by: Wencheng Yang --- Changelog: v9: - Add document -

[PATCH v8] virtio-net: Fix network stall at the host side waiting for kick

2024-07-05 Thread Wencheng Yang
ondition, the guest will not send kick signal to the host. Fixes: 06b12970174 ("virtio-net: fix network stall under load") Signed-off-by: Wencheng Yang --- Changelog: v8: - Change virtqueue_get_avail_bytes() return type from void to int, it returns shadow_avail_idx on success

[PATCH v7] virtio-net: Fix network stall at the host side waiting for kick

2024-07-01 Thread Wencheng Yang
ick condition, the guest will not send kick signal to the host. Fixes: 06b12970174 ("virtio-net: fix network stall under load") Signed-off-by: Wencheng Yang --- Changelog: v7: - Add function virtio_queue_set_notification_and_check() - Restore the function sequence introduc

[PATCH v6] virtio-net: Fix network stall at the host side waiting for kick

2024-06-29 Thread Wencheng Yang
ked at host side v3: - Add virtio-net tag in the subject - Refine commit log v2: - Add SOB tag at the end of the commit message - Place Fixes tag at the end of the commit message v1: - Initial patch Fixes: 06b12970174 ("virtio-net: fix network stall under load") Signed-off-by: We

[PATCH v5] virtio-net: Fix network stall at the host side waiting for kick

2024-06-27 Thread Wencheng Yang
tag at the end of the commit message - Place Fixes tag at the end of the commit message v1: - Initial patch Fixes: 06b12970174 ("virtio-net: fix network stall under load") Signed-off-by: Wencheng Yang --- hw/net/virtio-net.c| 19 --- hw/virtio/virtio.c

[PATCH v4] virtio-net: Notify the guest with the latest available idx

2024-06-25 Thread Wencheng Yang
e issue that virtio-net is blocked at host side v3: - Add virtio-net tag in the subject - Refine commit log v2: - Add SOB tag at the end of the commit message - Place Fixes tag at the end of the commit message v1: - Initial patch Fixes: 06b12970174 ("virtio-net: fix network stall under loa