Message ID | 20210413122630.975617-2-vkuznets@redhat.com (mailing list archive) |
---|---|
State | New, archived |
Headers | show |
Series | KVM: x86: hyper-v: Fine-grained access check to Hyper-V hypercalls and MSRs | expand |
On Tue, Apr 13, 2021 at 02:26:09PM +0200, Vitaly Kuznetsov wrote: > From TLFSv6.0b, this status means: "The caller did not possess sufficient > access rights to perform the requested operation." > > Signed-off-by: Vitaly Kuznetsov <vkuznets@redhat.com> This can be applied to hyperv-next right away. Let me know what you think. Wei. > --- > include/asm-generic/hyperv-tlfs.h | 1 + > 1 file changed, 1 insertion(+) > > diff --git a/include/asm-generic/hyperv-tlfs.h b/include/asm-generic/hyperv-tlfs.h > index 83448e837ded..e01a3bade13a 100644 > --- a/include/asm-generic/hyperv-tlfs.h > +++ b/include/asm-generic/hyperv-tlfs.h > @@ -187,6 +187,7 @@ enum HV_GENERIC_SET_FORMAT { > #define HV_STATUS_INVALID_HYPERCALL_INPUT 3 > #define HV_STATUS_INVALID_ALIGNMENT 4 > #define HV_STATUS_INVALID_PARAMETER 5 > +#define HV_STATUS_ACCESS_DENIED 6 > #define HV_STATUS_OPERATION_DENIED 8 > #define HV_STATUS_INSUFFICIENT_MEMORY 11 > #define HV_STATUS_INVALID_PORT_ID 17 > -- > 2.30.2 >
Wei Liu <wei.liu@kernel.org> writes: > On Tue, Apr 13, 2021 at 02:26:09PM +0200, Vitaly Kuznetsov wrote: >> From TLFSv6.0b, this status means: "The caller did not possess sufficient >> access rights to perform the requested operation." >> >> Signed-off-by: Vitaly Kuznetsov <vkuznets@redhat.com> > > This can be applied to hyperv-next right away. Let me know what you > think. > In case there's no immediate need for this constant outside of KVM, I'd suggest you just give Paolo your 'Acked-by' so I can carry the patch in the series for the time being. This will eliminate the need to track dependencies between hyperv-next and kvm-next. Thanks!
On Thu, Apr 15, 2021 at 05:33:17PM +0200, Vitaly Kuznetsov wrote: > Wei Liu <wei.liu@kernel.org> writes: > > > On Tue, Apr 13, 2021 at 02:26:09PM +0200, Vitaly Kuznetsov wrote: > >> From TLFSv6.0b, this status means: "The caller did not possess sufficient > >> access rights to perform the requested operation." > >> > >> Signed-off-by: Vitaly Kuznetsov <vkuznets@redhat.com> > > > > This can be applied to hyperv-next right away. Let me know what you > > think. > > > > In case there's no immediate need for this constant outside of KVM, I'd > suggest you just give Paolo your 'Acked-by' so I can carry the patch in > the series for the time being. This will eliminate the need to track > dependencies between hyperv-next and kvm-next. Acked-by: Wei Liu <wei.liu@kernel.org>
diff --git a/include/asm-generic/hyperv-tlfs.h b/include/asm-generic/hyperv-tlfs.h index 83448e837ded..e01a3bade13a 100644 --- a/include/asm-generic/hyperv-tlfs.h +++ b/include/asm-generic/hyperv-tlfs.h @@ -187,6 +187,7 @@ enum HV_GENERIC_SET_FORMAT { #define HV_STATUS_INVALID_HYPERCALL_INPUT 3 #define HV_STATUS_INVALID_ALIGNMENT 4 #define HV_STATUS_INVALID_PARAMETER 5 +#define HV_STATUS_ACCESS_DENIED 6 #define HV_STATUS_OPERATION_DENIED 8 #define HV_STATUS_INSUFFICIENT_MEMORY 11 #define HV_STATUS_INVALID_PORT_ID 17
From TLFSv6.0b, this status means: "The caller did not possess sufficient access rights to perform the requested operation." Signed-off-by: Vitaly Kuznetsov <vkuznets@redhat.com> --- include/asm-generic/hyperv-tlfs.h | 1 + 1 file changed, 1 insertion(+)