diff options
author | Jan Kiszka <jan.kiszka@siemens.com> | 2012-01-25 18:14:15 +0100 |
---|---|---|
committer | Marcelo Tosatti <mtosatti@redhat.com> | 2012-02-08 15:57:50 -0200 |
commit | 39d6960aabfd90bf0bf7ba38d69e918962b70b16 (patch) | |
tree | 5bd0698b7cb7fe62efc169dc886d3584bee3b9b9 /qemu-config.c | |
parent | cf4dc461a4cfc3e056ee24edb26154f4d34a6278 (diff) |
kvm: Allow to set shadow MMU size
Introduce the KVM-specific machine option kvm_shadow_mem. It allows to
set a custom shadow MMU size for the virtual machine. This is useful for
stress testing e.g.
Only x86 supports this for now, but it is in principle a generic
concept for all targets with shadow MMUs.
Signed-off-by: Jan Kiszka <jan.kiszka@siemens.com>
Signed-off-by: Marcelo Tosatti <mtosatti@redhat.com>
Diffstat (limited to 'qemu-config.c')
-rw-r--r-- | qemu-config.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/qemu-config.c b/qemu-config.c index b030205e23..95bf5e5202 100644 --- a/qemu-config.c +++ b/qemu-config.c @@ -535,6 +535,10 @@ static QemuOptsList qemu_machine_opts = { .name = "kernel_irqchip", .type = QEMU_OPT_BOOL, .help = "use KVM in-kernel irqchip", + }, { + .name = "kvm_shadow_mem", + .type = QEMU_OPT_SIZE, + .help = "KVM shadow MMU size", }, { /* End of list */ } }, |