Message ID | 20231205181119.207204-20-ajones@ventanamicro.com (mailing list archive) |
---|---|
State | Superseded |
Headers | show |
Series | RISC-V: Add steal-time support | expand |
Context | Check | Description |
---|---|---|
conchuod/vmtest-fixes-PR | fail | merge-conflict |
On Tue, Dec 05, 2023 at 07:11:24PM +0100, Andrew Jones wrote: > Now that we can support steal-time accounting, add the kconfig > knobs allowing it to be enabled. > > Signed-off-by: Andrew Jones <ajones@ventanamicro.com> > Reviewed-by: Conor Dooley <conor.dooley@microchip.com> In hindsight, should this be squashed with the code actually adding the support?
On Thu, Dec 07, 2023 at 02:07:28PM +0000, Conor Dooley wrote: > On Tue, Dec 05, 2023 at 07:11:24PM +0100, Andrew Jones wrote: > > Now that we can support steal-time accounting, add the kconfig > > knobs allowing it to be enabled. > > > > Signed-off-by: Andrew Jones <ajones@ventanamicro.com> > > Reviewed-by: Conor Dooley <conor.dooley@microchip.com> > > In hindsight, should this be squashed with the code actually adding the > support? Yeah, this can be squashed, particularly because the configs are off by default anyway. Will do. Thanks, drew
diff --git a/arch/riscv/Kconfig b/arch/riscv/Kconfig index 29f0f8fcb5c2..caf6f5ea578b 100644 --- a/arch/riscv/Kconfig +++ b/arch/riscv/Kconfig @@ -726,6 +726,25 @@ config COMPAT If you want to execute 32-bit userspace applications, say Y. +config PARAVIRT + bool "Enable paravirtualization code" + depends on RISCV_SBI + help + This changes the kernel so it can modify itself when it is run + under a hypervisor, potentially improving performance significantly + over full virtualization. + +config PARAVIRT_TIME_ACCOUNTING + bool "Paravirtual steal time accounting" + depends on PARAVIRT + help + Select this option to enable fine granularity task steal time + accounting. Time spent executing other tasks in parallel with + the current vCPU is discounted from the vCPU power. To account for + that, there can be a small performance impact. + + If in doubt, say N here. + config RELOCATABLE bool "Build a relocatable kernel" depends on MMU && 64BIT && !XIP_KERNEL