On Mon, Oct 31, 2022 at 08:36:15AM +0800, Gavin Shan wrote: > There are two capabilities related to ring-based dirty page tracking: > KVM_CAP_DIRTY_LOG_RING and KVM_CAP_DIRTY_LOG_RING_ACQ_REL. Both are > supported by x86. However, arm64 supports KVM_CAP_DIRTY_LOG_RING_ACQ_REL > only when the feature is supported on arm64. The userspace doesn't have > to enable the advertised capability, meaning KVM_CAP_DIRTY_LOG_RING can > be enabled on arm64 by userspace and it's wrong. > > Fix it by double checking if the capability has been advertised prior to > enabling it. It's rejected to enable the capability if it hasn't been > advertised. > > Fixes: 17601bfed909 ("KVM: Add KVM_CAP_DIRTY_LOG_RING_ACQ_REL capability and config option") > Reported-by: Sean Christopherson <seanjc@xxxxxxxxxx> > Suggested-by: Sean Christopherson <seanjc@xxxxxxxxxx> > Signed-off-by: Gavin Shan <gshan@xxxxxxxxxx> Reviewed-by: Oliver Upton <oliver.upton@xxxxxxxxx> This patch should be picked up separate from this series for 6.1. The original patch went through kvmarm and I think there are a few other arm64 fixes to be sent out anyway. Marc, can you grab this? :) -- Thanks, Oliver _______________________________________________ kvmarm mailing list kvmarm@xxxxxxxxxxxxxxxxxxxxx https://lists.cs.columbia.edu/mailman/listinfo/kvmarm