Re: [PATCH v2] drm/bochs: use devm_ioremap_wc() to map framebuffer

2024-09-10 Thread Yan Zhao
On Tue, Sep 10, 2024 at 09:24:22AM +0200, Thomas Zimmermann wrote: > Reviewed-by: Thomas Zimmermann > Texted-by: Thomas Zimmermann Thank you! I suppose this is "Tested-by", right?

Re: [PATCH] drm/bochs: use ioremap_wc() to map framebuffer during driver probing

2024-09-09 Thread Yan Zhao
On Mon, Sep 09, 2024 at 08:40:30AM +0200, Thomas Zimmermann wrote: > Hi > > Am 09.09.24 um 07:15 schrieb Yan Zhao: > > Use ioremap_wc() instead of ioremap() to map framebuffer during driver > > probing phase. > > > > Using ioremap() results in a VA being mapped w

[PATCH v2] drm/bochs: use devm_ioremap_wc() to map framebuffer

2024-09-09 Thread Yan Zhao
.kernel.org/all/87jzfutmfc@redhat.com/#t Cc: Sean Christopherson Cc: Paolo Bonzini Cc: Kevin Tian Cc: Thomas Zimmermann Signed-off-by: Yan Zhao Link: https://lore.kernel.org/all/87jzfutmfc@redhat.com/#t [1] Link: https://patchwork.freedesktop.org/series/138086 [2] Link: https://gitlab.

[PATCH] drm/bochs: use ioremap_wc() to map framebuffer during driver probing

2024-09-08 Thread Yan Zhao
@redhat.com/#t Cc: Sean Christopherson Cc: Paolo Bonzini Cc: Kevin Tian Signed-off-by: Yan Zhao --- drivers/gpu/drm/tiny/bochs.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/gpu/drm/tiny/bochs.c b/drivers/gpu/drm/tiny/bochs.c index 31fc5d839e10..6414f0a72f6a 100644

Re: [PATCH 0/4] KVM: Honor guest memory types for virtio GPU devices

2024-01-08 Thread Yan Zhao
On Mon, Jan 08, 2024 at 08:22:20PM -0400, Jason Gunthorpe wrote: > On Tue, Jan 09, 2024 at 07:36:22AM +0800, Yan Zhao wrote: > > On Mon, Jan 08, 2024 at 10:02:50AM -0400, Jason Gunthorpe wrote: > > > On Mon, Jan 08, 2024 at 02:02:57PM +0800, Yan Zhao wrote: > > > >

Re: [PATCH 0/4] KVM: Honor guest memory types for virtio GPU devices

2024-01-08 Thread Yan Zhao
On Mon, Jan 08, 2024 at 10:02:50AM -0400, Jason Gunthorpe wrote: > On Mon, Jan 08, 2024 at 02:02:57PM +0800, Yan Zhao wrote: > > On Fri, Jan 05, 2024 at 03:55:51PM -0400, Jason Gunthorpe wrote: > > > On Fri, Jan 05, 2024 at 05:12:37PM +0800, Yan Zhao wrote: > > > > T

Re: [PATCH 0/4] KVM: Honor guest memory types for virtio GPU devices

2024-01-07 Thread Yan Zhao
On Fri, Jan 05, 2024 at 03:55:51PM -0400, Jason Gunthorpe wrote: > On Fri, Jan 05, 2024 at 05:12:37PM +0800, Yan Zhao wrote: > > This series allow user space to notify KVM of noncoherent DMA status so as > > to let KVM honor guest memory types in specified memory slot ranges. >

[PATCH 4/4] KVM: selftests: Set KVM_MEM_NON_COHERENT_DMA as a supported memslot flag

2024-01-05 Thread Yan Zhao
Update test_invalid_memory_region_flags() to treat KVM_MEM_NON_COHERENT_DMA as a supported memslot flag. Signed-off-by: Yan Zhao --- tools/testing/selftests/kvm/set_memory_region_test.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/tools/testing/selftests/kvm/set_memory_region_test.c

[PATCH 3/4] KVM: VMX: Honor guest PATs for memslots of flag KVM_MEM_NON_COHERENT_DMA

2024-01-05 Thread Yan Zhao
d-by: Sean Christopherson Cc: Kevin Tian Cc: Zhenyu Wang Tested-by: Yongwei Ma Signed-off-by: Yan Zhao --- arch/x86/kvm/vmx/vmx.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/arch/x86/kvm/vmx/vmx.c b/arch/x86/kvm/vmx/vmx.c index 85a23765e506..99f22589fa6d 100644 --- a/arch/x86/kvm/vmx/vmx.c

[PATCH 2/4] KVM: x86: Add a new param "slot" to op get_mt_mask in kvm_x86_ops

2024-01-05 Thread Yan Zhao
Add param "slot" to op get_mt_mask in kvm_x86_ops. This is a preparation patch to later honor guest PATs for certain memslots. No functional change intended. Suggested-by: Sean Christopherson Cc: Kevin Tian Cc: Zhenyu Wang Tested-by: Yongwei Ma Signed-off-by: Yan Zhao --- arch/x

[PATCH 1/4] KVM: Introduce a new memslot flag KVM_MEM_NON_COHERENT_DMA

2024-01-05 Thread Yan Zhao
flag KVM_MEM_NON_COHERENT_DMA is not allowed to be dynamically modified for a memslot. A KVM_CAP_USER_CONFIGURE_NONCOHERENT_DMA is added to let user space know if this new memslot flag is supported in KVM. Cc: Kevin Tian Cc: Zhenyu Wang Tested-by: Yongwei Ma Signed-off-by: Yan Zhao --- include/uapi/linux/

[PATCH 0/4] KVM: Honor guest memory types for virtio GPU devices

2024-01-05 Thread Yan Zhao
t honor guest MTRRs in memslot of flag KVM_MEM_NON_COHERENT_DMA (Sean) [1]: https://lore.kernel.org/all/20231214103520.7198-1-yan.y.z...@intel.com/ [2]: https://patchwork.kernel.org/project/dri-devel/cover/20200213213036.207625-1-olva...@gmail.com/ [3]: https://lore.kernel.org/all/20231221154002

Re: [RFC PATCH] KVM: Introduce KVM VIRTIO device

2023-12-20 Thread Yan Zhao
On Wed, Dec 20, 2023 at 06:12:55PM -0800, Sean Christopherson wrote: > On Wed, Dec 20, 2023, Yan Zhao wrote: > > On Tue, Dec 19, 2023 at 12:26:45PM +0800, Yan Zhao wrote: > > > On Mon, Dec 18, 2023 at 07:08:51AM -0800, Sean Christopherson wrote: > > > > &g

Re: [RFC PATCH] KVM: Introduce KVM VIRTIO device

2023-12-19 Thread Yan Zhao
On Tue, Dec 19, 2023 at 12:26:45PM +0800, Yan Zhao wrote: > On Mon, Dec 18, 2023 at 07:08:51AM -0800, Sean Christopherson wrote: > > > > Implementation Consideration > > > > === > > > > There is a previous series [1] from google to serve the same purpose to &

Re: [RFC PATCH] KVM: Introduce KVM VIRTIO device

2023-12-18 Thread Yan Zhao
On Mon, Dec 18, 2023 at 07:08:51AM -0800, Sean Christopherson wrote: > > > Implementation Consideration > > > === > > > There is a previous series [1] from google to serve the same purpose to > > > let KVM be aware of virtio GPU's noncoherent DMA status. That series > > > requires a new memslot fla

Re: [RFC PATCH] KVM: Introduce KVM VIRTIO device

2023-12-18 Thread Yan Zhao
On Fri, Dec 15, 2023 at 02:23:48PM +0800, Tian, Kevin wrote: > > From: Zhao, Yan Y > > Sent: Thursday, December 14, 2023 6:35 PM > > > > - For host non-MMIO pages, > > * virtio guest frontend and host backend driver should be synced to use > > the same memory type to map a buffer. Otherwise

[RFC PATCH] KVM: Introduce KVM VIRTIO device

2023-12-14 Thread Yan Zhao
g->kvm_device_fd = cd.fd; - on virtio device unrealize close(g->kvm_device_fd); Reviewed-by: Zhenyu Wang Link: https://patchwork.kernel.org/project/dri-devel/cover/20200213213036.207625-1-olva...@gmail.com/ [1] Signed-off-by: Yan Zhao --- arch/x86/kvm/Kconfig | 1 + include/uap

Re: [PATCH 4/4] vfio/pci: Allow MMIO regions to be exported through dma-buf

2022-08-28 Thread Yan Zhao
On Wed, Aug 17, 2022 at 01:11:42PM -0300, Jason Gunthorpe wrote: > dma-buf has become a way to safely acquire a handle to non-struct page > memory that can still have lifetime controlled by the exporter. Notably > RDMA can now import dma-buf FDs and build them into MRs which allows for > PCI P2P op