RE: [PATCH v6 11/11] xen/arm64: add setup_fixmap and remove_identity_mapping for MPU

2022-11-07 Thread Penny Zheng
Hi Julien > -Original Message- > From: Julien Grall > Sent: Monday, November 7, 2022 5:02 AM > To: Wei Chen ; xen-devel@lists.xenproject.org > Cc: nd ; Penny Zheng ; Stefano > Stabellini ; Bertrand Marquis > ; Volodymyr Babchuk > > Subject: Re: [PAT

RE: [PATCH v6 10/11] xen/arm64: introduce helpers for MPU enable/disable

2022-11-07 Thread Penny Zheng
Hi Julien > -Original Message- > From: Xen-devel On Behalf Of > Julien Grall > Sent: Monday, November 7, 2022 4:56 AM > To: Wei Chen ; xen-devel@lists.xenproject.org > Cc: nd ; Penny Zheng ; Stefano > Stabellini ; Bertrand Marquis > ; Volodymyr Babchuk > >

RE: [PATCH v6 09/11] xen/arm64: create boot-time MPU protection regions

2022-11-07 Thread Penny Zheng
Hi Julien > -Original Message- > From: Julien Grall > Sent: Monday, November 7, 2022 5:30 PM > To: Penny Zheng ; Wei Chen > ; xen-devel@lists.xenproject.org > Cc: nd ; Stefano Stabellini ; Bertrand > Marquis ; Volodymyr Babchuk > > Subject: Re: [PATCH v6 09

RE: [PATCH v6 10/11] xen/arm64: introduce helpers for MPU enable/disable

2022-11-07 Thread Penny Zheng
> -Original Message- > From: Julien Grall > Sent: Monday, November 7, 2022 6:38 PM > To: Penny Zheng ; Wei Chen > ; xen-devel@lists.xenproject.org > Cc: nd ; Stefano Stabellini ; Bertrand > Marquis ; Volodymyr Babchuk > > Subject: Re: [PATCH v6 10/11] xen/a

[PATCH V1 00/13 for 4.17-post] Follow-up static shared memory

2022-11-14 Thread Penny Zheng
7; static shared memory feature 'SUPPORTED'. [1] https://lore.kernel.org/all/20220908135513.1800511-1-penny.zh...@arm.com/ [2] https://www.kernel.org/doc/Documentation/devicetree/bindings/reserved-memory/xen%2Cshared-memory.txt Penny Zheng (13): xen/arm: re-arrange the static shared memory

[PATCH v1 02/13] xen/arm: switch to use shm_membank as function parameter

2022-11-14 Thread Penny Zheng
more clear and tidy. Signed-off-by: Penny Zheng --- xen/arch/arm/domain_build.c | 46 ++--- 1 file changed, 23 insertions(+), 23 deletions(-) diff --git a/xen/arch/arm/domain_build.c b/xen/arch/arm/domain_build.c index c0fd13f6ed..d2b9e60b5c 100644 --- a/xen/arch/arm/

[PATCH v1 03/13] xen/arm: introduce allocate_domheap_memory and guest_physmap_memory

2022-11-14 Thread Penny Zheng
P2M mapping. Signed-off-by: Penny Zheng --- xen/arch/arm/domain_build.c | 93 +++-- 1 file changed, 68 insertions(+), 25 deletions(-) diff --git a/xen/arch/arm/domain_build.c b/xen/arch/arm/domain_build.c index d2b9e60b5c..92763e96fc 100644 --- a/xen/arch/arm

[PATCH v1 04/13] xen/arm: expand shm_membank for unprovided host address

2022-11-14 Thread Penny Zheng
t going to cover it. This commit introduces a new field "mem" to cover both scenarios. "struct membank" is used when host address is provided, whereas "struct meminfo" shall be used when host address not provided. Signed-off-by: Penny Zheng --- xen/arch/arm/bootf

[PATCH v1 01/13] xen/arm: re-arrange the static shared memory region

2022-11-14 Thread Penny Zheng
27;. This will avoid continuing to grow 'membank'. Signed-off-by: Penny Zheng --- xen/arch/arm/bootfdt.c| 40 +++ xen/arch/arm/domain_build.c | 35 --- xen/arch/arm/include/asm/kernel.h | 2 +- xen/arch/arm/include/asm/setup.

[PATCH v1 05/13] xen/arm: allocate shared memory from heap when host address not provided

2022-11-14 Thread Penny Zheng
on freeing. Signed-off-by: Penny Zheng --- xen/arch/arm/domain_build.c | 83 - 1 file changed, 82 insertions(+), 1 deletion(-) diff --git a/xen/arch/arm/domain_build.c b/xen/arch/arm/domain_build.c index fbb196d8a4..3de96882a5 100644 --- a/xen/arch/arm/domain_build.c

[PATCH v1 06/13] xen/arm: assign shared memory to owner when host address not provided

2022-11-14 Thread Penny Zheng
unprovided host address. So in "assign_shared_memory", we just need to assign these static shared pages to its owner domain using function "assign_pages", and add as many additional reference as the number of borrowers. Signed-off-by: Penny Zheng --- xen/arch/arm/domain_build.c | 160 +++

[PATCH v1 07/13] xen/arm: map shared memory to borrower when host address not provided

2022-11-14 Thread Penny Zheng
" to cover both scenarios. Signed-off-by: Penny Zheng --- xen/arch/arm/domain_build.c | 54 ++--- 1 file changed, 51 insertions(+), 3 deletions(-) diff --git a/xen/arch/arm/domain_build.c b/xen/arch/arm/domain_build.c index faf0784bb0..d0f7fc8fd7 100644 --- a/xen

[PATCH v1 08/13] xen/arm: use paddr_assigned to indicate whether host address is provided

2022-11-14 Thread Penny Zheng
match too. Also, to make codes tidy and clear, we extract codes about parsing "xen,shared-mem" property from function "process_shm" and move them into a new helper "parse_shm_property". Signed-off-by: Penny Zheng --- xen/arch/arm/bootfdt.c | 87

[PATCH v1 10/13] xen/arm: introduce "xen,offset" feature

2022-11-14 Thread Penny Zheng
" could be only provided in borrower domain, and the value must be smaller than size. And include according docs in booting.txt. Signed-off-by: Penny Zheng --- docs/misc/arm/device-tree/booting.txt | 19 ++-- xen/arch/arm/bootfdt.c| 32 ++-

[PATCH v1 09/13] xen/arm: refine docs about static shared memory

2022-11-14 Thread Penny Zheng
This commit amends docs(booting.txt) to include the new scenario where host address is not provided in "xen,shared-mem" property, and we also add a new example to explain in details. We also fix some buggy info in the docs, like SHMID is "my-shared-mem-1", not "0x1"

[PATCH v1 11/13] xen/arm: implement "xen,offset" feature when host address provided

2022-11-14 Thread Penny Zheng
When host address is provided in "xen,shared-mem" property([pbase, gbase, psize]), it is easy to decide where to map to the borrower domain if "xen,offset" is also provided. The partially-shared region shall be starting at pbase + offset, and ending at pbase + size. Signed

[PATCH v1 12/13] xen/arm: implement "xen,offset" feature when host address not provided

2022-11-14 Thread Penny Zheng
ory block the offset locates, and the borrower memory map shall start at this block offset. Signed-off-by: Penny Zheng --- xen/arch/arm/domain_build.c | 31 ++- 1 file changed, 30 insertions(+), 1 deletion(-) diff --git a/xen/arch/arm/domain_build.c b/xen/arch/arm/

[PATCH v1 13/13] xen: make static shared memory supported in SUPPORT.md

2022-11-14 Thread Penny Zheng
After patching previous commits, we could make feature of "static shared memory" supported in SUPPORT.md. Signed-off-by: Penny Zheng --- SUPPORT.md | 2 +- xen/arch/arm/Kconfig | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/SUPPORT.md b/SUPPOR

[PATCH v1 03/11] xen/x86: introduce "cpufreq=amd-pstate" xen cmdline

2024-12-03 Thread Penny Zheng
bose print. When users setting "cpufreq=amd-pstate", a new amd-pstate driver shall be registered and used. Actual implmentation will be introduced in the following commits. Signed-off-by: Penny Zheng --- docs/misc/xen-command-line.pandoc | 8 +++- xen/arch/x86/acpi/cpufreq/Make

[PATCH v1 06/11] xen/cpufreq: introduce policy type when cpufreq_driver->setpolicy exists

2024-12-03 Thread Penny Zheng
From: Penny Zheng If cpufreq_driver->target exists, the ->governor decides what frequency within the limits is used. But when cpufreq_driver->setpolicy exists, the CPUFreq scaling driver bypasses the governor layer and implement their own performance scaling algorithms. And we intr

[PATCH v1 00/11] amd-pstate CPU Performance Scaling Driver

2024-12-03 Thread Penny Zheng
vg freq 200 KHz Setting CPU in performance mode Sampling and Outputs: Avg freq 464 KHz Avg freq 422 KHz Avg freq 464 KHz ``` Penny Zheng (11): xen/x86: add CPPC feature flag for AMD processors xen/x86: introduce new sub-hypercall to get CPPC data xen/x86

[PATCH v1 08/11] x86/cpufreq: add "cpufreq=amd-pstate,active" para

2024-12-03 Thread Penny Zheng
From: Penny Zheng The amd-pstate driver may support multiple working modes, passive and active. Introduce a new variable to keep track of which mode is currently enabled. This variable will also help to choose which cpufreq driver to be registered. Signed-off-by: Penny Zheng --- docs/misc

[PATCH v1 05/11] xen/x86: introduce a new amd pstate driver for cpufreq scaling

2024-12-03 Thread Penny Zheng
uot; could leverage common governors such as *ondemand*, *performance*, etc, to manage the performance hints. In the future, we will introduce an advanced active mode to enable autonomous performence level selection. Signed-off-by: Penny Zheng --- xen/arch/x86/acpi/cpufreq/amd-psta

[PATCH v1 01/11] xen/x86: add CPPC feature flag for AMD processors

2024-12-03 Thread Penny Zheng
" and "Shared Memory Support". Right now, xen will only implement "Full MSR Support", and this new feature flag indicates whether processor has this feature or not. Signed-off-by: Penny Zheng --- xen/arch/x86/include/asm/cpufeature.h | 1 + xen/include/public/arch-x86/

[PATCH v1 07/11] xen/cpufreq: only set gov NULL when cpufreq_driver.target() exists

2024-12-03 Thread Penny Zheng
From: Penny Zheng amd-pstate on active mode bypasses the scaling governor layer, and provides its own P-state selection algorithms. Consequently, when it is used, the driver's -> setpolicy() callback is invoked to register per-CPU utilization update callbacks, not the ->target() ca

[PATCH v1 02/11] xen/x86: introduce new sub-hypercall to get CPPC data

2024-12-03 Thread Penny Zheng
Frequency/Performance as anchor points to create linear mapping of CPPC abstract performance to CPU frequency. As Xen is uncapable of parsing the ACPI dynamic table, this commit introduces a new sub-hypercall to get required CPPC data from dom0 kernel. Signed-off-by: Penny Zheng --- xen/arch/x86

[PATCH v1 04/11] xen/x86: get processor max speed from DMI table

2024-12-03 Thread Penny Zheng
When _CPC table could not provide processor frequency range values for OS governor, we need to read processor max frequency as anchor point. For AMD processors, we rely on parsing DMI table to get processor max speed. Signed-off-by: Penny Zheng --- xen/arch/x86/dmi_scan.c| 19

[PATCH v1 10/11] tools/xenpm: Print CPPC parameters for amd-pstate driver

2024-12-03 Thread Penny Zheng
From: Penny Zheng HWP, amd-pstate, amd-pstate-epp are all the implementation of ACPI CPPC (Collaborative Processor Performace Control), so we introduce cppc_mode flag to print CPPC-related para. And HWP and amd-pstate-epp are both governor-less driver, so we introduce hw_auto flag to bypass

RE: [PATCH v1 01/11] xen/x86: add CPPC feature flag for AMD processors

2024-12-03 Thread Penny, Zheng
[AMD Official Use Only - AMD Internal Distribution Only] Hi, > -Original Message- > From: Andrew Cooper > Sent: Tuesday, December 3, 2024 4:32 PM > To: Penny, Zheng ; xen-devel@lists.xenproject.org > Cc: Stabellini, Stefano ; Huang, Ray > ; Ragiadakou, Xenia ; >

RE: [PATCH v1 00/11] amd-pstate CPU Performance Scaling Driver

2024-12-03 Thread Penny, Zheng
[AMD Official Use Only - AMD Internal Distribution Only] Hi, > -Original Message- > From: Jan Beulich > Sent: Tuesday, December 3, 2024 5:01 PM > To: Penny, Zheng > Cc: Stabellini, Stefano ; Huang, Ray > ; Ragiadakou, Xenia ; > Andryuk, Jason ; Andrew Coope

[PATCH v1 11/11] xen/cpufreq: Adapt SET/GET_CPUFREQ_CPPC xen_sysctl_pm_op for amd-pstate driver

2024-12-03 Thread Penny Zheng
Introduce helper set_amd_cppc_para and get_amd_cppc_para to SET/GET CPPC-related para for amd-pstate/amd-pstate-epp driver. Signed-off-by: Penny Zheng --- xen/arch/x86/acpi/cpufreq/amd-pstate.c | 119 + xen/drivers/acpi/pmstat.c | 24 - xen/include/acpi

[PATCH v1 09/11] xen/x86: implement EPP support for the AMD processors

2024-12-03 Thread Penny Zheng
one new AMD CPU frequency driver `amd-pstate-epp` for active mode. Signed-off-by: Penny Zheng --- xen/arch/x86/acpi/cpufreq/amd-pstate.c | 122 +++-- xen/arch/x86/acpi/cpufreq/hwp.c| 10 +- xen/include/acpi/cpufreq/cpufreq.h | 5 + xen/include/public/sysctl.h

RE: [PATCH v1 1/4] xen/acpi: upload power and performance related data from a PVH dom0

2024-12-04 Thread Penny, Zheng
[AMD Official Use Only - AMD Internal Distribution Only] Hi, > -Original Message- > From: Jason Andryuk > Sent: Thursday, December 5, 2024 3:12 AM > To: Jürgen Groß ; Penny, Zheng ; > Stefano Stabellini ; Oleksandr Tyshchenko > > Cc: Huang, Ray ; Ragiadakou

[PATCH v2 3/4] xen/cppc: get xen-required cppc perf caps data

2024-12-04 Thread Penny Zheng
c perf caps data. Also, as Xen couldn't read and process PCC-type register, this commit includes a new flag pcc_unsupported in struct acpi_processor_flags to tell whether platform supports PCC-type register. Signed-off-by: Penny Zheng --- drivers/acpi/cppc_a

[PATCH v2 2/4] acpi/cppc: extract _cpc entry parsing logic

2024-12-04 Thread Penny Zheng
_processor_probe() and export it as a new function acpi_cppc_processor_parse(). Also, replace logical processor id with ACPI ID, to show correct print info in Xen dom0 PVH guest. Signed-off-by: Penny Zheng --- drivers/acpi/cppc_acpi.c | 93 +++- 1 file change

[PATCH v2 1/4] xen/acpi: upload power and performance related data from a PVH dom0

2024-12-04 Thread Penny Zheng
From: Roger Pau Monne When running as a PVH dom0 the ACPI MADT is crafted by Xen in order to report the correct numbers of vCPUs that dom0 has, so the host MADT is not provided to dom0. This creates issues when parsing the power and performance related data from ACPI dynamic tables, as the ACPI

[PATCH v2 4/4] xen/cppc: introduce cppc data upload sub-hypercall

2024-12-04 Thread Penny Zheng
As Xen is uncapable of parsing the ACPI dynamic table, this commit introduces a new sub-hypercall XEN_PM_CPPC to deliver CPPC perf caps data. Signed-off-by: Penny Zheng --- drivers/acpi/cppc_acpi.c | 1 + drivers/xen/xen-acpi-processor.c | 89 +++- include

[PATCH v2 0/4] xen/acpi: introduce cppc performance hypercall

2024-12-04 Thread Penny Zheng
and performance related data from a PVH dom0" Penny Zheng (3): acpi/cppc: extract _cpc entry parsing logic xen/cppc: get xen-required cppc perf caps data xen/cppc: introduce cppc data upload sub-hypercall Roger Pau Monne (1): xen/acpi: upload power and performance related data from a

[PATCH v1 0/4] xen/acpi: introduce cppc performance hypercall

2024-12-04 Thread Penny Zheng
n commit "xen/acpi: upload power and performance related data from a PVH dom0"( https://patchwork.kernel.org/project/xen-devel/patch/20241203225338.1336-1-jason.andr...@amd.com/), which is still under review. Penny Zheng (3): acpi/cppc: extract _cpc entry parsing logic xen/cppc: get xe

[PATCH v1 1/4] xen/acpi: upload power and performance related data from a PVH dom0

2024-12-04 Thread Penny Zheng
From: Roger Pau Monné When running as a PVH dom0 the ACPI MADT is crafted by Xen in order to report the correct numbers of vCPUs that dom0 has, so the host MADT is not provided to dom0. This creates issues when parsing the power and performance related data from ACPI dynamic tables, as the ACPI

[PATCH v1 2/4] acpi/cppc: extract _cpc entry parsing logic

2024-12-04 Thread Penny Zheng
_processor_probe() and export it as a new function acpi_cppc_processor_parse(). Also, replace logical processor id with ACPI ID, to show correct print info in Xen dom0 PVH guest. Signed-off-by: Penny Zheng --- drivers/acpi/cppc_acpi.c | 95 +++- 1 file change

[PATCH v1 3/4] xen/cppc: get xen-required cppc perf caps data

2024-12-04 Thread Penny Zheng
c perf caps data. Also, as Xen couldn't read and process PCC-type register, this commit includes a new flag pcc_unsupported in struct acpi_processor_flags to tell whether platform supports PCC-type register. Signed-off-by: Penny Zheng --- drivers/acpi/cppc_a

[PATCH v1 4/4] xen/cppc: introduce cppc data upload sub-hypercall

2024-12-04 Thread Penny Zheng
As Xen is uncapable of parsing the ACPI dynamic table, this commit introduces a new sub-hypercall XEN_PM_CPPC to deliver CPPC perf caps data. Signed-off-by: Penny Zheng --- drivers/acpi/cppc_acpi.c | 1 + drivers/xen/xen-acpi-processor.c | 89 +++- include

[PATCH v2 04/11] xen/amd: export processor max frequency value

2025-02-06 Thread Penny Zheng
When _CPC table could not provide processor frequency range values for OS governor, we need to read processor max frequency as anchor point. For AMD processors, we export max frequency value from amd_log_freq() Signed-off-by: Penny Zheng --- v1 -> v2: - new commit --- xen/arch/x86/cpu/am

[PATCH v2 00/11] amd-cppc CPU Performance Scaling Driver

2025-02-06 Thread Penny Zheng
: ``` Setting CPU in powersave mode Sampling and Outputs: Avg freq 200 KHz Avg freq 200 KHz Avg freq 200 KHz Setting CPU in performance mode Sampling and Outputs: Avg freq 464 KHz Avg freq 422 KHz Avg freq 464 KHz ``` Penny Zheng (11):

[PATCH v2 05/11] xen/x86: introduce a new amd cppc driver for cpufreq scaling

2025-02-06 Thread Penny Zheng
-cppc" could leverage common governors such as *ondemand*, *performance*, etc, to manage the performance hints. In the future, we will introduce an advanced active mode to enable autonomous performence level selection. Signed-off-by: Penny Zheng --- v1 -> v2: - re-construct union caps an

[PATCH v2 02/11] xen/x86: introduce new sub-hypercall to propagate CPPC data

2025-02-06 Thread Penny Zheng
Frequency/Performance as anchor points to create linear mapping of CPPC abstract performance to CPU frequency. As Xen is uncapable of parsing the ACPI dynamic table, this commit introduces a new sub-hypercall to propagate required CPPC data from dom0 kernel. Signed-off-by: Penny Zheng --- v1 ->

[PATCH v2 01/11] xen/x86: add CPPC feature flag for AMD processors

2025-02-06 Thread Penny Zheng
" and "Shared Memory Support". Right now, xen will only implement "Full MSR Support", and this new feature flag indicates whether processor has this feature or not. Signed-off-by: Penny Zheng --- v1 -> v2: - Remove A flag, as the feature is Xen-only --- xen/arch/x86/i

[PATCH v2 03/11] xen/x86: introduce "cpufreq=amd-cppc" xen cmdline

2025-02-06 Thread Penny Zheng
bose print. When users setting "cpufreq=amd-cppc", a new amd-cppc driver shall be registered and used. Actual implmentation will be introduced in the following commits. Signed-off-by: Penny Zheng --- v1 -> v2: - Obey to alphabetic sorting and also strict it with CONFIG_AMD - Remove un

[PATCH v2 06/11] xen/cpufreq: only set gov NULL when cpufreq_driver.setpolicy is NULL

2025-02-06 Thread Penny Zheng
From: Penny Zheng amd-cppc on active mode bypasses the scaling governor layer, and provides its own P-state selection algorithms in hardware. Consequently, when it is used, the driver's -> setpolicy() callback is invoked to register per-CPU utilization update callbacks, not the

[PATCH v2 08/11] xen/cpufreq: abstract Energy Performance Preference value

2025-02-06 Thread Penny Zheng
Intel's hwp Energy Performance Preference value is compatible with CPPC's Energy Performance Preference value, so this commit abstracts the value and re-place it in common header file cpufreq.h, to be used not only for hwp in the future. Signed-off-by: Penny Zheng --- v1 -> v2:

[PATCH v2 07/11] x86/cpufreq: add "cpufreq=amd-cppc,active" para

2025-02-06 Thread Penny Zheng
From: Penny Zheng The amd-cppc driver may support multiple working modes, passive and active. Introduce `active` tag for users to explicitly select active mode and a new variable `opt_cpufreq_active` to keep track of which mode is currently enabled. Specific implementation will be introduced in

[PATCH v2 09/11] xen/x86: implement EPP support for the amd-cppc driver in active mode

2025-02-06 Thread Penny Zheng
new AMD CPU frequency driver `amd-cppc-epp` for active mode. Signed-off-by: Penny Zheng --- v1 -> v2: - Remove redundant epp_mode - Remove pointless initializer - Define sole caller read_epp_init_once and epp_init value to read pre-defined BIOS epp value only once - Combine the commit &

[PATCH v2 11/11] xen/cpufreq: Adapt SET/GET_CPUFREQ_CPPC xen_sysctl_pm_op for amd-cppc driver

2025-02-06 Thread Penny Zheng
Introduce helper set_amd_cppc_para and get_amd_cppc_para to SET/GET CPPC-related para for amd-cppc/amd-cppc-epp driver. Signed-off-by: Penny Zheng --- v1 -> v2: - Give the variable des_perf an initializer of 0 - Use the strncmp()s directly in the if() --- xen/arch/x86/acpi/cpufreq/amd-cpp

[PATCH v2 10/11] tools/xenpm: Print CPPC parameters for amd-cppc driver

2025-02-06 Thread Penny Zheng
From: Penny Zheng HWP, amd-cppc, amd-cppc-epp are all the implementation of ACPI CPPC (Collaborative Processor Performace Control), so we introduce cppc_mode flag to print CPPC-related para. And HWP and amd-cppc-epp are both governor-less driver, so we introduce hw_auto flag to bypass governor

RE: [PATCH v1 05/11] xen/x86: introduce a new amd pstate driver for cpufreq scaling

2025-01-20 Thread Penny, Zheng
[AMD Official Use Only - AMD Internal Distribution Only] Hi, > -Original Message- > From: Jan Beulich > Sent: Thursday, January 9, 2025 6:55 PM > To: Penny, Zheng > Cc: Stabellini, Stefano ; Huang, Ray > ; Ragiadakou, Xenia ; > Andryuk, Jason ; Andrew Cooper >

RE: [PATCH v1 04/11] xen/x86: get processor max speed from DMI table

2025-01-20 Thread Penny, Zheng
[AMD Official Use Only - AMD Internal Distribution Only] Hi, > -Original Message- > From: Jan Beulich > Sent: Thursday, January 9, 2025 6:13 PM > To: Penny, Zheng > Cc: Stabellini, Stefano ; Huang, Ray > ; Ragiadakou, Xenia ; > Andryuk, Jason ; Andrew Coope

RE: [PATCH v1 08/11] x86/cpufreq: add "cpufreq=amd-pstate,active" para

2025-01-25 Thread Penny, Zheng
[AMD Official Use Only - AMD Internal Distribution Only] Hi, > -Original Message- > From: Jan Beulich > Sent: Thursday, January 9, 2025 7:24 PM > To: Penny, Zheng > Cc: Stabellini, Stefano ; Huang, Ray > ; Ragiadakou, Xenia ; > Andryuk, Jason ; Andrew Cooper >

RE: [PATCH v1 09/11] xen/x86: implement EPP support for the AMD processors

2025-01-25 Thread Penny, Zheng
[AMD Official Use Only - AMD Internal Distribution Only] Hi, > -Original Message- > From: Jan Beulich > Sent: Thursday, January 9, 2025 7:38 PM > To: Penny, Zheng > Cc: Stabellini, Stefano ; Huang, Ray > ; Ragiadakou, Xenia ; > Andryuk, Jason ; Andrew Coope

RE: [PATCH v1 03/11] xen/x86: introduce "cpufreq=amd-pstate" xen cmdline

2025-01-15 Thread Penny, Zheng
[AMD Official Use Only - AMD Internal Distribution Only] Hi, > -Original Message- > From: Jan Beulich > Sent: Wednesday, January 15, 2025 4:32 PM > To: Penny, Zheng > Cc: Stabellini, Stefano ; Huang, Ray > ; Ragiadakou, Xenia ; > Andryuk, Jason ; Andrew Co

RE: [PATCH v1 03/11] xen/x86: introduce "cpufreq=amd-pstate" xen cmdline

2025-01-15 Thread Penny, Zheng
[AMD Official Use Only - AMD Internal Distribution Only] Hi, > -Original Message- > From: Jan Beulich > Sent: Thursday, January 9, 2025 5:59 PM > To: Penny, Zheng > Cc: Stabellini, Stefano ; Huang, Ray > ; Ragiadakou, Xenia ; > Andryuk, Jason ; Andrew Cooper >

RE: [PATCH v1 02/11] xen/x86: introduce new sub-hypercall to get CPPC data

2025-01-14 Thread Penny, Zheng
[AMD Official Use Only - AMD Internal Distribution Only] Hi, > -Original Message- > From: Jan Beulich > Sent: Thursday, January 9, 2025 5:46 PM > To: Penny, Zheng > Cc: Stabellini, Stefano ; Huang, Ray > ; Ragiadakou, Xenia ; > Andryuk, Jason ; Andrew Coope

[PATCH v3 5/5] xen/cppc: introduce cppc data upload sub-hypercall

2025-03-15 Thread Penny Zheng
As Xen is uncapable of parsing the ACPI dynamic table, this commit introduces a new sub-hypercall XEN_PM_CPPC to deliver CPPC perf caps data. Signed-off-by: Penny Zheng --- v2 -> v3: - Adapt to the changes from new commit "xen: introduces XEN_PM_PSD sub-hypercall for solely delivery of _

RE: [PATCH v3 02/15] xen/x86: introduce new sub-hypercall to propagate CPPC data

2025-03-24 Thread Penny, Zheng
[Public] Hi, > -Original Message- > From: Jan Beulich > Sent: Monday, March 24, 2025 10:28 PM > To: Penny, Zheng > Cc: Huang, Ray ; Andrew Cooper > ; Roger Pau Monné ; > Anthony PERARD ; Orzel, Michal > ; Julien Grall ; Stefano Stabellini > ; xen-devel@lis

RE: [PATCH v1 03/19] xen/sysctl: wrap around XEN_SYSCTL_readconsole

2025-03-20 Thread Penny, Zheng
[Public] Hi, Sorry for the late reply, got side-tracked for a while > -Original Message- > From: Alejandro Vallejo > Sent: Thursday, March 13, 2025 8:03 PM > To: Penny, Zheng ; xen-devel@lists.xenproject.org > Cc: Huang, Ray ; Andrew Cooper > ; Anthony PERARD ; >

RE: [PATCH v3 01/15] xen/cpufreq: introduces XEN_PM_PSD for solely delivery of _PSD

2025-04-04 Thread Penny, Zheng
[Public] Hi, > -Original Message- > From: Jan Beulich > Sent: Monday, March 24, 2025 10:09 PM > To: Penny, Zheng > Cc: Huang, Ray ; Andrew Cooper > ; Roger Pau Monné ; > Anthony PERARD ; Orzel, Michal > ; Julien Grall ; Stefano Stabellini > ; xen-devel@lis

RE: [PATCH v3 03/15] xen/cpufreq: refactor cmdline "cpufreq=xxx"

2025-04-05 Thread Penny, Zheng
[Public] Hi > -Original Message- > From: Jan Beulich > Sent: Wednesday, March 26, 2025 6:43 PM > To: Penny, Zheng > Cc: Huang, Ray ; Andrew Cooper > ; Anthony PERARD ; > Orzel, Michal ; Julien Grall ; Roger > Pau Monné ; Stefano Stabellini ; > xen-devel@lis

[PATCH v2 03/19] xen/xsm: wrap around xsm_sysctl with CONFIG_SYSCTL

2025-04-05 Thread Penny Zheng
As function xsm_sysctl() is solely invoked in sysctl.c, we need to wrap around it with CONFIG_SYSCTL Signed-off-by: Penny Zheng --- v1 -> v2 - remove unnecessary redundancy in dummy handler - re-place #ifdef into function body --- xen/include/xsm/xsm.h | 4 xen/xsm/dummy.c

RE: [PATCH v1 03/19] xen/sysctl: wrap around XEN_SYSCTL_readconsole

2025-03-26 Thread Penny, Zheng
[Public] Hi, > -Original Message- > From: Jan Beulich > Sent: Thursday, March 20, 2025 4:47 PM > To: Penny, Zheng > Cc: Huang, Ray ; Andrew Cooper > ; Anthony PERARD ; > Orzel, Michal ; Julien Grall ; Roger Pau > Monné ; Stefano Stabellini ; > Daniel >

RE: [PATCH v3 03/15] xen/cpufreq: refactor cmdline "cpufreq=xxx"

2025-03-26 Thread Penny, Zheng
[Public] Hi, > -Original Message- > From: Jan Beulich > Sent: Monday, March 24, 2025 11:01 PM > To: Penny, Zheng > Cc: Huang, Ray ; Andrew Cooper > ; Anthony PERARD ; > Orzel, Michal ; Julien Grall ; Roger Pau > Monné ; Stefano Stabellini ; > xen- &

RE: [PATCH v3 12/15] xen/x86: implement EPP support for the amd-cppc driver in active mode

2025-03-27 Thread Penny, Zheng
[Public] Hi, > -Original Message- > From: Jan Beulich > Sent: Tuesday, March 25, 2025 6:49 PM > To: Penny, Zheng > Cc: Huang, Ray ; Andrew Cooper > ; Anthony PERARD ; > Orzel, Michal ; Julien Grall ; Roger > Pau Monné ; Stefano Stabellini ; > xen-devel@lis

[PATCH v2 07/19] xen/sysctl: wrap around XEN_SYSCTL_perfc_op

2025-03-25 Thread Penny Zheng
perfc_control() and perfc_copy_info() are responsible for providing control of perf counters via XEN_SYSCTL_perfc_op in DOM0, so they both shall be wrapped. Signed-off-by: Penny Zheng --- - add transient #ifdef in sysctl.c for correct compilation --- xen/common/perfc.c | 2 ++ xen/common

[PATCH v2 04/19] xen/sysctl: wrap around XEN_SYSCTL_readconsole

2025-03-25 Thread Penny Zheng
The following functions is to deal with XEN_SYSCTL_readconsole sub-op, and shall be wrapped: - xsm_readconsole - read_console_ring Signed-off-by: Penny Zheng --- v1 -> v2: - remove redundant dummy handle - add transient #ifdef in sysctl.c for correct compilation --- xen/common/sysct

[PATCH v2 00/19] xen: introduce CONFIG_SYSCTL

2025-03-25 Thread Penny Zheng
much as possible. It is based on Stefano Stabellini's commit "xen: introduce kconfig options to disable hypercalls"( https://lore.kernel.org/xen-devel/20241219092917.3006174-1-sergiy_kib...@epam.com) Penny Zheng (17): xen/x86: remove "depends on !PV_SHIM_EXCLUSIVE" xe

RE: [PATCH v3 07/15] xen/cpufreq: fix core frequency calculation for AMD Family 1Ah CPUs

2025-03-26 Thread Penny, Zheng
[Public] Hi, > -Original Message- > From: Jan Beulich > Sent: Monday, March 24, 2025 11:48 PM > To: Penny, Zheng > Cc: Huang, Ray ; Andrew Cooper > ; Roger Pau Monné ; xen- > de...@lists.xenproject.org; Nicola Vetrini > Subject: Re: [PATCH v3 07/15] xen/cpu

[PATCH v2 18/19] xen/sysctl: wrap around arch-specific arch_do_sysctl

2025-03-25 Thread Penny Zheng
put the guardian in Makefile for the whole file. Signed-off-by: Stefano Stabellini Signed-off-by: Sergiy Kibrik Signed-off-by: Penny Zheng --- - use "depends on" for config OVERLAY_DTB - no need to wrap declaration - add transient #ifdef in sysctl.c for correct compilation --- xe

RE: [PATCH v3 04/15] xen/cpufreq: move XEN_PROCESSOR_PM_xxx to internal header

2025-03-26 Thread Penny, Zheng
[Public] Hi > -Original Message- > From: Jan Beulich > Sent: Monday, March 24, 2025 11:12 PM > To: Penny, Zheng > Cc: Huang, Ray ; Andrew Cooper > ; Roger Pau Monné ; > Anthony PERARD ; Orzel, Michal > ; Julien Grall ; Stefano Stabellini > ; xen-devel@lists.x

[PATCH v2 01/19] xen/x86: remove "depends on !PV_SHIM_EXCLUSIVE"

2025-03-25 Thread Penny Zheng
[1] [1] https://lists.xen.org/archives/html/xen-devel/2023-03/msg00040.html Signed-off-by: Jan Beulich Signed-off-by: Penny Zheng --- xen/arch/x86/Kconfig | 6 ++ xen/arch/x86/hvm/Kconfig | 1 - xen/drivers/video/Kconfig | 4 ++-- 3 files changed, 4 insertions(+), 7 deletions(-) diff

[PATCH v2 05/19] xen/sysctl: make CONFIG_TRACEBUFFER depend on CONFIG_SYSCTL

2025-03-25 Thread Penny Zheng
Users could only access trace buffers via hypercal XEN_SYSCTL_tbuf_op, so this commit makes CONFIG_TRACEBUFFER depend on CONFIG_SYSCTL Signed-off-by: Penny Zheng Reviewed-by: Stefano Stabellini --- xen/common/Kconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/xen/common/Kconfig b/xen

RE: [PATCH v3 05/15] xen/x86: introduce "cpufreq=amd-cppc" xen cmdline

2025-03-26 Thread Penny, Zheng
[Public] Hi, > -Original Message- > From: Jan Beulich > Sent: Monday, March 24, 2025 11:26 PM > To: Penny, Zheng > Cc: Huang, Ray ; Andrew Cooper > ; Anthony PERARD ; > Orzel, Michal ; Julien Grall ; Roger Pau > Monné ; Stefano Stabellini ; > xen- &

[PATCH v2 06/19] xen/sysctl: wrap around XEN_SYSCTL_sched_id

2025-03-25 Thread Penny Zheng
The following function shall be wrapped: - scheduler_id Signed-off-by: Penny Zheng Reviewed-by: Stefano Stabellini --- xen/common/sched/core.c | 2 ++ xen/common/sysctl.c | 2 ++ 2 files changed, 4 insertions(+) diff --git a/xen/common/sched/core.c b/xen/common/sched/core.c index

[PATCH v2 10/19] xen/sysctl: introduce CONFIG_PM_STATS

2025-03-25 Thread Penny Zheng
CONFIG_SYSCTL Signed-off-by: Penny Zheng --- v1 -> v2: - rename to CONFIG_PM_STATS - fix indention and stray semicolon - make code movements into a new commit - No need to wrap inline functions and declarations --- xen/arch/x86/acpi/cpu_idle.c | 2 ++ xen/arch/x86/acpi/cpufreq/hw

[PATCH v2 14/19] xen: make avail_domheap_pages() static

2025-03-25 Thread Penny Zheng
Function avail_domheap_pages() is only invoked by get_outstanding_claims(), so it could be inlined into its sole caller. Move up avail_heap_pages() to avoid declaration before get_outstanding_claims(). Signed-off-by: Penny Zheng --- v1 -> v2: - let avail_domheap_pages() being inlined into

[PATCH v2 08/19] xen/sysctl: wrap around XEN_SYSCTL_lockprof_op

2025-03-25 Thread Penny Zheng
The following function is only to serve spinlock profiling via XEN_SYSCTL_lockprof_op, so it shall be wrapped: - spinlock_profile_control Signed-off-by: Penny Zheng --- v1 -> v2: - add transient #ifdef in sysctl.c for correct compilation --- xen/common/spinlock.c | 2 ++ xen/common/sysct

[PATCH v2 16/19] xen/sysctl: make CONFIG_COVERAGE depend on CONFIG_SYSCTL

2025-03-25 Thread Penny Zheng
All coverage-related op shall be wrapped around with CONFIG_SYSCTL, so this commit makes CONFIG_COVERAGE depend on CONFIG_SYSCTL. Signed-off-by: Penny Zheng Reviewed-by: Stefano Stabellini --- v1 -> v2: - commit message refactor --- --- xen/Kconfig.debug | 2 +- 1 file changed, 1 insert

[PATCH v2 02/19] xen: introduce CONFIG_SYSCTL

2025-03-25 Thread Penny Zheng
From: Stefano Stabellini We intend to introduces a new Kconfig CONFIG_SYSCTL, which shall only be disabled on some dom0less systems, to reduce Xen footprint. Signed-off-by: Stefano Stabellini Signed-off-by: Sergiy Kibrik Signed-off-by: Penny Zheng --- v1 -> v2: - complement missing com

[PATCH v2 13/19] xen/sysctl: wrap around XEN_SYSCTL_scheduler_op

2025-03-25 Thread Penny Zheng
Function sched_adjust_global is designed for XEN_SYSCTL_scheduler_op, so itself and its calling flow, like .adjust_global, shall all be wrapped. Signed-off-by: Penny Zheng Reviewed-by: Stefano Stabellini --- v1 -> v2: - no need to wrap declarations - add transient #ifdef in sysctl.c for corr

[PATCH v2 19/19] xen/sysctl: wrap around sysctl hypercall

2025-03-25 Thread Penny Zheng
From: Stefano Stabellini We intend to wrap around sysctl hypercall, and also correct the order alphabetically We also need to removes all transient "#ifdef CONFIG_SYSCTL"-s in sysctl.c. Signed-off-by: Stefano Stabellini Signed-off-by: Sergiy Kibrik Signed-off-by: Penny Zheng --

[PATCH v2 12/19] xen/sysctl: wrap around XEN_SYSCTL_cpupool_op

2025-03-25 Thread Penny Zheng
- cpupool_unassign_cpu Signed-off-by: Penny Zheng Reviewed-by: Stefano Stabellini --- v1 -> v2: - no need to wrap declaration - add transient #ifdef in sysctl.c for correct compilation --- xen/common/sched/cpupool.c | 8 xen/common/sysctl.c| 2 +- 2 files changed, 9 insertions(+), 1 delet

[PATCH v2 17/19] xen/sysctl: make CONFIG_LIVEPATCH depend on CONFIG_SYSCTL

2025-03-25 Thread Penny Zheng
LIVEPATCH mechanism relies on LIVEPATCH_SYSCTL hypercall, so CONFIG_LIVEPATCH shall depend on CONFIG_SYSCTL Signed-off-by: Penny Zheng Reviewed-by: Stefano Stabellini --- v1 -> v2: - commit message refactor --- xen/common/Kconfig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) d

[PATCH v2 09/19] xen/pmstat: clean up pmstat.c

2025-03-25 Thread Penny Zheng
the handler for sub-hypercall XEN_PM_PDC, and shall stay with the other handlers together in drivers/cpufreq/cpufreq.c. This commit also applies various style corrections while moving these functions Signed-off-by: Penny Zheng --- v1 -> v2: - new commit --- xen/drivers/acpi/pmsta

[PATCH v2 15/19] xen/sysctl: wrap around XEN_SYSCTL_physinfo

2025-03-25 Thread Penny Zheng
The following functions are only used to deal with XEN_SYSCTL_physinfo, then they shall be wrapped: - arch_do_physinfo - get_outstanding_claims Signed-off-by: Penny Zheng --- v1 -> v2: - no need to wrap declaration - add transient #ifdef in sysctl.c for correct compilation --- xen/arch/

[PATCH v2 11/19] xen/sysctl: wrap around XEN_SYSCTL_page_offline_op

2025-03-25 Thread Penny Zheng
The following functions are only to deal with XEN_SYSCTL_page_offline_op, then shall be wrapped: - xsm_page_offline - online_page - query_page_offline Signed-off-by: Penny Zheng Reviewed-by: Stefano Stabellini --- v1 -> v2: - add transient #ifdef in sysctl.c for correct compilation - no need

RE: [PATCH v3 08/15] xen/amd: export processor max frequency value

2025-03-27 Thread Penny, Zheng
[Public] Hi, > -Original Message- > From: Jan Beulich > Sent: Monday, March 24, 2025 11:52 PM > To: Penny, Zheng > Cc: Huang, Ray ; Andrew Cooper > ; Roger Pau Monné ; xen- > de...@lists.xenproject.org > Subject: Re: [PATCH v3 08/15] xen/amd: export processor ma

RE: [PATCH v3 05/15] xen/x86: introduce "cpufreq=amd-cppc" xen cmdline

2025-03-26 Thread Penny, Zheng
[Public] Hi, > -Original Message- > From: Jan Beulich > Sent: Wednesday, March 26, 2025 6:55 PM > To: Penny, Zheng > Cc: Huang, Ray ; Andrew Cooper > ; Anthony PERARD ; > Orzel, Michal ; Julien Grall ; Roger Pau > Monné ; Stefano Stabellini ; > xen- &

RE: [PATCH v3 05/15] xen/x86: introduce "cpufreq=amd-cppc" xen cmdline

2025-03-27 Thread Penny, Zheng
[Public] Hi, > -Original Message- > From: Jan Beulich > Sent: Thursday, March 27, 2025 3:48 PM > To: Penny, Zheng > Cc: Huang, Ray ; Andrew Cooper > ; Anthony PERARD ; > Orzel, Michal ; Julien Grall ; Roger > Pau Monné ; Stefano Stabellini ; > xen-devel@lis

RE: [PATCH v2 01/19] xen/x86: remove "depends on !PV_SHIM_EXCLUSIVE"

2025-04-01 Thread Penny, Zheng
[Public] > -Original Message- > From: Jan Beulich > Sent: Tuesday, April 1, 2025 5:02 PM > To: Penny, Zheng > Cc: xen-devel@lists.xenproject.org; Huang, Ray ; > Andrew Cooper ; Roger Pau Monné > ; Anthony PERARD ; Orzel, > Michal ; Julien Grall ; Stefano >

RE: [PATCH v3 03/15] xen/cpufreq: refactor cmdline "cpufreq=xxx"

2025-03-31 Thread Penny, Zheng
[Public] > -Original Message- > From: Jan Beulich > Sent: Tuesday, April 1, 2025 2:38 PM > To: Penny, Zheng > Cc: Huang, Ray ; Andrew Cooper > ; Anthony PERARD ; > Orzel, Michal ; Julien Grall ; Roger > Pau Monné ; Stefano Stabellini ; > xen-devel@lists.x

[PATCH v3 2/5] xen: introduces XEN_PM_PSD sub-hypercall for solely delivery of _PSD info

2025-03-15 Thread Penny Zheng
-off-by: Penny Zheng --- v2 -> v3: - new commit --- drivers/xen/xen-acpi-processor.c | 82 include/xen/interface/platform.h | 8 ++-- 2 files changed, 56 insertions(+), 34 deletions(-) diff --git a/drivers/xen/xen-acpi-processor.c b/drivers/xen/xen-a

RE: [PATCH v2 18/19] xen/sysctl: wrap around arch-specific arch_do_sysctl

2025-04-18 Thread Penny, Zheng
[Public] Hi, > -Original Message- > From: Jan Beulich > Sent: Tuesday, April 1, 2025 10:47 PM > To: Penny, Zheng > Cc: Huang, Ray ; Stefano Stabellini > ; Julien Grall ; Bertrand Marquis > ; Orzel, Michal ; > Volodymyr Babchuk ; Andrew Cooper > ; Anthony

<    3   4   5   6   7   8   9   10   11   12   >