* [PATCH] x86/acrn: Remove redundant chars from ACRN signature
@ 2020-08-06 11:41 Shuo Liu
2020-08-06 17:10 ` [tip: x86/urgent] " tip-bot2 for Shuo Liu
2020-08-06 23:38 ` tip-bot2 for Shuo Liu
0 siblings, 2 replies; 3+ messages in thread
From: Shuo Liu @ 2020-08-06 11:41 UTC (permalink / raw)
To: x86, linux-kernel
Cc: H . Peter Anvin, Thomas Gleixner, Ingo Molnar, Borislav Petkov,
Sean Christopherson, Yu Wang, Reinette Chatre, Shuo Liu
hypervisor_cpuid_base() only handles 12 chars of the hypervisor
signature string but is provided with 14 chars.
Remove the redundancy. Additionally, replace the user space uint32_t
with preferred kernel type u32.
Signed-off-by: Shuo Liu <shuo.a.liu@intel.com>
Reviewed-by: Reinette Chatre <reinette.chatre@intel.com>
Cc: Reinette Chatre <reinette.chatre@intel.com>
---
arch/x86/kernel/cpu/acrn.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/arch/x86/kernel/cpu/acrn.c b/arch/x86/kernel/cpu/acrn.c
index 3b08cdfc6514..0b2c03943ac6 100644
--- a/arch/x86/kernel/cpu/acrn.c
+++ b/arch/x86/kernel/cpu/acrn.c
@@ -17,9 +17,9 @@
#include <asm/idtentry.h>
#include <asm/irq_regs.h>
-static uint32_t __init acrn_detect(void)
+static u32 __init acrn_detect(void)
{
- return hypervisor_cpuid_base("ACRNACRNACRN\0\0", 0);
+ return hypervisor_cpuid_base("ACRNACRNACRN", 0);
}
static void __init acrn_init_platform(void)
base-commit: 48778464bb7d346b47157d21ffde2af6b2d39110
--
2.28.0
^ permalink raw reply [flat|nested] 3+ messages in thread
* [tip: x86/urgent] x86/acrn: Remove redundant chars from ACRN signature
2020-08-06 11:41 [PATCH] x86/acrn: Remove redundant chars from ACRN signature Shuo Liu
@ 2020-08-06 17:10 ` tip-bot2 for Shuo Liu
2020-08-06 23:38 ` tip-bot2 for Shuo Liu
1 sibling, 0 replies; 3+ messages in thread
From: tip-bot2 for Shuo Liu @ 2020-08-06 17:10 UTC (permalink / raw)
To: linux-tip-commits; +Cc: Shuo Liu, Ingo Molnar, Reinette Chatre, x86, LKML
The following commit has been merged into the x86/urgent branch of tip:
Commit-ID: d60ed6f07c9c8ed2cbdacea7ab9597ad81454545
Gitweb: https://git.kernel.org/tip/d60ed6f07c9c8ed2cbdacea7ab9597ad81454545
Author: Shuo Liu <shuo.a.liu@intel.com>
AuthorDate: Thu, 06 Aug 2020 19:41:11 +08:00
Committer: Ingo Molnar <mingo@kernel.org>
CommitterDate: Thu, 06 Aug 2020 15:20:17 +02:00
x86/acrn: Remove redundant chars from ACRN signature
hypervisor_cpuid_base() only handles 12 chars of the hypervisor
signature string but is provided with 14 chars.
Remove the redundancy. Additionally, replace the user space uint32_t
with preferred kernel type u32.
Signed-off-by: Shuo Liu <shuo.a.liu@intel.com>
Signed-off-by: Ingo Molnar <mingo@kernel.org>
Reviewed-by: Reinette Chatre <reinette.chatre@intel.com>
Link: https://lore.kernel.org/r/20200806114111.9448-1-shuo.a.liu@intel.com
---
arch/x86/kernel/cpu/acrn.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/arch/x86/kernel/cpu/acrn.c b/arch/x86/kernel/cpu/acrn.c
index 3b08cdf..0b2c039 100644
--- a/arch/x86/kernel/cpu/acrn.c
+++ b/arch/x86/kernel/cpu/acrn.c
@@ -17,9 +17,9 @@
#include <asm/idtentry.h>
#include <asm/irq_regs.h>
-static uint32_t __init acrn_detect(void)
+static u32 __init acrn_detect(void)
{
- return hypervisor_cpuid_base("ACRNACRNACRN\0\0", 0);
+ return hypervisor_cpuid_base("ACRNACRNACRN", 0);
}
static void __init acrn_init_platform(void)
^ permalink raw reply [flat|nested] 3+ messages in thread
* [tip: x86/urgent] x86/acrn: Remove redundant chars from ACRN signature
2020-08-06 11:41 [PATCH] x86/acrn: Remove redundant chars from ACRN signature Shuo Liu
2020-08-06 17:10 ` [tip: x86/urgent] " tip-bot2 for Shuo Liu
@ 2020-08-06 23:38 ` tip-bot2 for Shuo Liu
1 sibling, 0 replies; 3+ messages in thread
From: tip-bot2 for Shuo Liu @ 2020-08-06 23:38 UTC (permalink / raw)
To: linux-tip-commits; +Cc: Shuo Liu, Ingo Molnar, Reinette Chatre, x86, LKML
The following commit has been merged into the x86/urgent branch of tip:
Commit-ID: 4c7bfa383efd837d4ab8f86ef05886959ed8bfe5
Gitweb: https://git.kernel.org/tip/4c7bfa383efd837d4ab8f86ef05886959ed8bfe5
Author: Shuo Liu <shuo.a.liu@intel.com>
AuthorDate: Thu, 06 Aug 2020 19:41:11 +08:00
Committer: Ingo Molnar <mingo@kernel.org>
CommitterDate: Fri, 07 Aug 2020 01:32:00 +02:00
x86/acrn: Remove redundant chars from ACRN signature
hypervisor_cpuid_base() only handles 12 chars of the hypervisor
signature string but is provided with 14 chars.
Remove the redundancy. Additionally, replace the user space uint32_t
with preferred kernel type u32.
Signed-off-by: Shuo Liu <shuo.a.liu@intel.com>
Signed-off-by: Ingo Molnar <mingo@kernel.org>
Reviewed-by: Reinette Chatre <reinette.chatre@intel.com>
Link: https://lore.kernel.org/r/20200806114111.9448-1-shuo.a.liu@intel.com
---
arch/x86/kernel/cpu/acrn.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/arch/x86/kernel/cpu/acrn.c b/arch/x86/kernel/cpu/acrn.c
index 3b08cdf..0b2c039 100644
--- a/arch/x86/kernel/cpu/acrn.c
+++ b/arch/x86/kernel/cpu/acrn.c
@@ -17,9 +17,9 @@
#include <asm/idtentry.h>
#include <asm/irq_regs.h>
-static uint32_t __init acrn_detect(void)
+static u32 __init acrn_detect(void)
{
- return hypervisor_cpuid_base("ACRNACRNACRN\0\0", 0);
+ return hypervisor_cpuid_base("ACRNACRNACRN", 0);
}
static void __init acrn_init_platform(void)
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2020-08-06 23:40 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-08-06 11:41 [PATCH] x86/acrn: Remove redundant chars from ACRN signature Shuo Liu
2020-08-06 17:10 ` [tip: x86/urgent] " tip-bot2 for Shuo Liu
2020-08-06 23:38 ` tip-bot2 for Shuo Liu
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®