Re: [Intel-gfx] [PATCH v2 01/27] drm/i915/gvt: Verify pfn is "valid" before dereferencing "struct page"

2023-03-13 Thread Wang, Wei W
On Saturday, March 11, 2023 8:23 AM, Sean Christopherson wrote: > diff --git a/drivers/gpu/drm/i915/gvt/gtt.c b/drivers/gpu/drm/i915/gvt/gtt.c > index 4ec85308379a..58b9b316ae46 100644 > --- a/drivers/gpu/drm/i915/gvt/gtt.c > +++ b/drivers/gpu/drm/i915/gvt/gtt.c > @@ -1183,6 +1183,10 @@ static int

Re: [Intel-gfx] [PATCH v2 02/27] KVM: x86/mmu: Factor out helper to get max mapping size of a memslot

2023-03-13 Thread Wang, Wei W
On Saturday, March 11, 2023 8:23 AM, Sean Christopherson wrote: > Extract the memslot-related logic of kvm_mmu_max_mapping_level() into a > new helper so that KVMGT can determine whether or not mapping a 2MiB > page into the guest is (dis)allowed per KVM's memslots. > > No functional change intend