[Xen-devel] [PATCH] x86/cpu: Support a new cpu vendor, which is Shanghai. Shanghai cpu defines two msr registers to enable Random Number Generator and Advanced Cryprography Engine.The cpu supports iom

2018-03-23 Thread Fionali
From: FionaLi <fion...@zhaoxin.com> Signed-off-by: Fiona Li<fion...@zhaoxin.com> --- xen/arch/x86/cpu/Makefile | 1 + xen/arch/x86/cpu/common.c | 1 + xen/arch/x86/cpu/shanghai.c | 61 +++ xen/include/asm-x86/iommu.h

[Xen-devel] [PATCH] cpupool: fix ASSERT( c != old_pool )

2019-04-07 Thread FionaLi-oc
Assigning cpu to cpupool needn't to switch cpu scheduler when system state is resume, otherwise it will cause ASSERT in schedule_cpu_switch(). Signed-off-by: FionaLi-oc --- xen/common/cpupool.c | 10 +++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/xen/common/cpupool.c b

[Xen-devel] [PATCH 2/2] x86/acpi: Improve suspend and resume process for Zhaoxin CPU

2019-04-08 Thread FionaLi-oc
When executing SYSEXIT or SYSENTRY in Zhaoxin CPU, CPU needs to save or restore a set of MSRs. Signed-off-by: FionaLi-oc --- xen/arch/x86/acpi/suspend.c | 6 -- xen/arch/x86/x86_64/traps.c | 3 ++- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/xen/arch/x86/acpi/suspend.c b

[Xen-devel] [PATCH 1/2] acpi/cpufreq: Support CPU frequency driver for Zhaoxin cpu

2019-04-08 Thread FionaLi-oc
Implementation of Zhaoxin CPU frequency is compatible with Intel. Zhaoxin CPU also supports EST. Signed-off-by: FionaLi-oc --- xen/arch/x86/acpi/cpufreq/cpufreq.c | 14 +- 1 file changed, 9 insertions(+), 5 deletions(-) diff --git a/xen/arch/x86/acpi/cpufreq/cpufreq.c b/xen/arch

[Xen-devel] [PATCH 0/2] x86/iommu: support IOMMU for Zhaoxin CPU

2019-04-08 Thread FionaLi-oc
The patchset supports some features for Zhaoxin CPU whose vendor ID is 'Shanghai'. Zhaoxin x86 SOC supports I/O virtualization which is compatible with Intel I/O virtulizaiton. Indent with four spaces. Signed-off-by: FionaLi-oc --- xen/include/asm-x86/iommu.h | 9 + 1 file changed, 5

[Xen-devel] [PATCH 2/2 v2] x86/acpi: Improve suspend and resume process for Zhaoxin CPU

2019-04-19 Thread FionaLi-oc
When executing SYSEXIT or SYSENTRY in Zhaoxin CPU, CPU needs to save or restore a set of MSRs. Signed-off-by: FionaLi-oc --- xen/arch/x86/acpi/suspend.c | 6 -- xen/arch/x86/x86_64/traps.c | 3 ++- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/xen/arch/x86/acpi/suspend.c b

Re: [Xen-devel] [PATCH 2/2 v2] x86/acpi: Improve suspend and resume process for Zhaoxin CPU

2019-04-26 Thread FionaLi-oc
Andrew, Do I need to submit a v3 with cpu_has_sep based solution? Or do you deal with it? > -Original Message- > From: Andrew Cooper > Sent: Thursday, April 25, 2019 9:42 PM > To: Jan Beulich ; FionaLi-oc > Cc: Roger Pau Monne ; Wei Liu ; > xen-devel ; Cobe Chen(BJ-RD