[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <87cz1xfkrp.fsf@mail.lhotse>
Date: Thu, 15 Jun 2023 13:48:42 +1000
From: Michael Ellerman <mpe@...erman.id.au>
To: Wei Wang <wei.w.wang@...el.com>, seanjc@...gle.com,
pbonzini@...hat.com
Cc: kvm@...r.kernel.org, linux-kernel@...r.kernel.org,
Wei Wang <wei.w.wang@...el.com>
Subject: Re: [PATCH RESEND v2] KVM: move KVM_CAP_DEVICE_CTRL to the generic
check
Wei Wang <wei.w.wang@...el.com> writes:
> KVM_CAP_DEVICE_CTRL allows userspace to check if the kvm_device
> framework (e.g. KVM_CREATE_DEVICE) is supported by KVM. Move
> KVM_CAP_DEVICE_CTRL to the generic check for the two reasons:
> 1) it already supports arch agnostic usages (i.e. KVM_DEV_TYPE_VFIO).
> For example, userspace VFIO implementation may needs to create
> KVM_DEV_TYPE_VFIO on x86, riscv, or arm etc. It is simpler to have it
> checked at the generic code than at each arch's code.
> 2) KVM_CREATE_DEVICE has been added to the generic code.
>
> Link: https://lore.kernel.org/all/20221215115207.14784-1-wei.w.wang@intel.com
> Signed-off-by: Wei Wang <wei.w.wang@...el.com>
> Reviewed-by: Sean Christopherson <seanjc@...gle.com>
> ---
> arch/arm64/kvm/arm.c | 1 -
> arch/powerpc/kvm/powerpc.c | 1 -
Acked-by: Michael Ellerman <mpe@...erman.id.au> (powerpc)
cheers
Powered by blists - more mailing lists