diff mbox series

KVM: Loongarch: remove unnecessary definition of KVM_PRIVATE_MEM_SLOTS

Message ID 09A6BAA84F3EF573+20240722102624.293359-1-wangyuli@uniontech.com (mailing list archive)
State New, archived
Headers show
Series KVM: Loongarch: remove unnecessary definition of KVM_PRIVATE_MEM_SLOTS | expand

Commit Message

WangYuli July 22, 2024, 10:26 a.m. UTC
"KVM_PRIVATE_MEM_SLOTS" is renamed as "KVM_INTERNAL_MEM_SLOTS".

KVM_PRIVATE_MEM_SLOTS defaults to zero, so it is not necessary to
define it in Loongarch's asm/kvm_host.h.

Link: https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?id=bdd1c37a315bc50ab14066c4852bc8dcf070451e
Link: https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?id=b075450868dbc0950f0942617f222eeb989cad10
Signed-off-by: Wentao Guan <guanwentao@uniontech.com>
Signed-off-by: WangYuli <wangyuli@uniontech.com>
---
 arch/loongarch/include/asm/kvm_host.h | 2 --
 1 file changed, 2 deletions(-)

Comments

Bibo Mao July 23, 2024, 1:30 a.m. UTC | #1
On 2024/7/22 下午6:26, WangYuli wrote:
> "KVM_PRIVATE_MEM_SLOTS" is renamed as "KVM_INTERNAL_MEM_SLOTS".
> 
> KVM_PRIVATE_MEM_SLOTS defaults to zero, so it is not necessary to
> define it in Loongarch's asm/kvm_host.h.
> 
> Link: https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?id=bdd1c37a315bc50ab14066c4852bc8dcf070451e
> Link: https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?id=b075450868dbc0950f0942617f222eeb989cad10
> Signed-off-by: Wentao Guan <guanwentao@uniontech.com>
> Signed-off-by: WangYuli <wangyuli@uniontech.com>
> ---
>   arch/loongarch/include/asm/kvm_host.h | 2 --
>   1 file changed, 2 deletions(-)
> 
> diff --git a/arch/loongarch/include/asm/kvm_host.h b/arch/loongarch/include/asm/kvm_host.h
> index fe38f98eeff8..ce3d36a890aa 100644
> --- a/arch/loongarch/include/asm/kvm_host.h
> +++ b/arch/loongarch/include/asm/kvm_host.h
> @@ -26,8 +26,6 @@
>   
>   #define KVM_MAX_VCPUS			256
>   #define KVM_MAX_CPUCFG_REGS		21
> -/* memory slots that does not exposed to userspace */
> -#define KVM_PRIVATE_MEM_SLOTS		0
>   
>   #define KVM_HALT_POLL_NS_DEFAULT	500000
>   #define KVM_REQ_TLB_FLUSH_GPA		KVM_ARCH_REQ(0)
> 
Reviewed-by: Bibo Mao <maobibo@loongson.cn>
Huacai Chen July 23, 2024, 2:55 a.m. UTC | #2
Queued, thanks.

On Tue, Jul 23, 2024 at 9:30 AM maobibo <maobibo@loongson.cn> wrote:
>
>
>
> On 2024/7/22 下午6:26, WangYuli wrote:
> > "KVM_PRIVATE_MEM_SLOTS" is renamed as "KVM_INTERNAL_MEM_SLOTS".
> >
> > KVM_PRIVATE_MEM_SLOTS defaults to zero, so it is not necessary to
> > define it in Loongarch's asm/kvm_host.h.
> >
> > Link: https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?id=bdd1c37a315bc50ab14066c4852bc8dcf070451e
> > Link: https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?id=b075450868dbc0950f0942617f222eeb989cad10
> > Signed-off-by: Wentao Guan <guanwentao@uniontech.com>
> > Signed-off-by: WangYuli <wangyuli@uniontech.com>
> > ---
> >   arch/loongarch/include/asm/kvm_host.h | 2 --
> >   1 file changed, 2 deletions(-)
> >
> > diff --git a/arch/loongarch/include/asm/kvm_host.h b/arch/loongarch/include/asm/kvm_host.h
> > index fe38f98eeff8..ce3d36a890aa 100644
> > --- a/arch/loongarch/include/asm/kvm_host.h
> > +++ b/arch/loongarch/include/asm/kvm_host.h
> > @@ -26,8 +26,6 @@
> >
> >   #define KVM_MAX_VCPUS                       256
> >   #define KVM_MAX_CPUCFG_REGS         21
> > -/* memory slots that does not exposed to userspace */
> > -#define KVM_PRIVATE_MEM_SLOTS                0
> >
> >   #define KVM_HALT_POLL_NS_DEFAULT    500000
> >   #define KVM_REQ_TLB_FLUSH_GPA               KVM_ARCH_REQ(0)
> >
> Reviewed-by: Bibo Mao <maobibo@loongson.cn>
>
diff mbox series

Patch

diff --git a/arch/loongarch/include/asm/kvm_host.h b/arch/loongarch/include/asm/kvm_host.h
index fe38f98eeff8..ce3d36a890aa 100644
--- a/arch/loongarch/include/asm/kvm_host.h
+++ b/arch/loongarch/include/asm/kvm_host.h
@@ -26,8 +26,6 @@ 
 
 #define KVM_MAX_VCPUS			256
 #define KVM_MAX_CPUCFG_REGS		21
-/* memory slots that does not exposed to userspace */
-#define KVM_PRIVATE_MEM_SLOTS		0
 
 #define KVM_HALT_POLL_NS_DEFAULT	500000
 #define KVM_REQ_TLB_FLUSH_GPA		KVM_ARCH_REQ(0)