Paravirtualization on VMware's Platform [VMI].
Subsystems (3)
Hi,
We ran a few experiments to compare performance of VMware's paravirtualization technique (VMI) and hardware MMU technologies (HWMMU) on VMware's hypervisor.
To give some background, VMI is VMware's paravirtualization specification which tries to optimize CPU and MMU operations of the guest operating system. For more information take a look at this
http://www.vmware.com/interfaces/paravirtualization.html
In most of the benchmarks, EPT/NPT (hwmmu) technologies are at par or provide better performance compared to VMI.
The experiments included comparing performance across various micro and real world like benchmarks.
Host configuration used for testing.
* Dell PowerEdge 2970
* 2 x quad-core AMD Opteron 2384 2.7GHz (Shanghai C2), RVI capable.
* 8 GB (4 x 2GB) memory, NUMA enabled
* 2 x 300GB RAID 0 storage
* 2 x embedded 1Gb NICs (Braodcom NetXtreme II BCM5708 1000Base-T)
* Running developement build of ESX.
The guest VM was a SLES 10 SP2 based VM for both the VMI and non-VMI case. kernel version: 2.6.16.60-0.37_f594963d-vmipae.
Below is a short summary of performance results between HWMMU and VMI. These results are averaged over 9 runs. The memory was sized at 512MB per VCPU in all experiments.
For the ratio results comparing hwmmu technologies to vmi, higher than 1 means hwmmu is better than vmi.
compile workloads - 4-way : 1.02, i.e. about 2% better. compile workloads - 8-way : 1.14, i,e. 14% better. oracle swingbench - 4-way (small pages) : 1.34, i.e. 34% better. oracle swingbench - 4-way (large pages) : 1.03, i.e. 3% better.
specjbb (large pages) : 0.99, i.e. 1% degradation.
Please note that specjbb is the worst case benchmark for hwmmu, due to the higher TLB miss latency, so it's a good result that the worst case benchmark has a degradation of only 1%.
VMware expects that these hardware virtualization features will be ubiquitous by 2011.
Apart from the performance benefit, VMI was important for Linux on VMware's platform, from timekeeping point of view, but with the tickless kernels and TSC improvements that were done for the mainline tree, we think VMI has outlived those requirements too.
In light of these results and availability of such hardware, we have decided to stop supporting VMI in our future products.
Given this new development, I wanted to discuss how should we go about retiring the VMI code from mainline Linux, i.e. the vmi_32.c and vmiclock_32.c bits.
One of the options that I am contemplating is to drop the code from the tip tree in this release cycle, and given that this should be a low risk change we can remove it from Linus's tree later in the merge cycle.
Let me know your views on this or if you think we should do this some other way.
Thanks,
Alok
Quoted 31 lines · * Alok Kataria ([email protected]) wrote:
We ran a few experiments to compare performance of VMware's paravirtualization technique (VMI) and hardware MMU technologies (HWMMU) on VMware's hypervisor.
To give some background, VMI is VMware's paravirtualization specification which tries to optimize CPU and MMU operations of the guest operating system. For more information take a look at this
http://www.vmware.com/interfaces/paravirtualization.htmlIn most of the benchmarks, EPT/NPT (hwmmu) technologies are at par or provide better performance compared to VMI.
The experiments included comparing performance across various micro and real world like benchmarks.Host configuration used for testing.
* Dell PowerEdge 2970
* 2 x quad-core AMD Opteron 2384 2.7GHz (Shanghai C2), RVI capable.
* 8 GB (4 x 2GB) memory, NUMA enabled
* 2 x 300GB RAID 0 storage
* 2 x embedded 1Gb NICs (Braodcom NetXtreme II BCM5708 1000Base-T)
* Running developement build of ESX.The guest VM was a SLES 10 SP2 based VM for both the VMI and non-VMI case. kernel version: 2.6.16.60-0.37_f594963d-vmipae.
Below is a short summary of performance results between HWMMU and VMI. These results are averaged over 9 runs. The memory was sized at 512MB per VCPU in all experiments.
For the ratio results comparing hwmmu technologies to vmi, higher than 1 means hwmmu is better than vmi.
Quoted 5 lines
compile workloads - 4-way : 1.02, i.e. about 2% better. compile workloads - 8-way : 1.14, i,e. 14% better. oracle swingbench - 4-way (small pages) : 1.34, i.e. 34% better. oracle swingbench - 4-way (large pages) : 1.03, i.e. 3% better.
specjbb (large pages) : 0.99, i.e. 1% degradation.
Not entirely surprising. Curious if you ran specjbb w/ small pages too?
Quoted 19 lines
Please note that specjbb is the worst case benchmark for hwmmu, due to the higher TLB miss latency, so it's a good result that the worst case benchmark has a degradation of only 1%.
VMware expects that these hardware virtualization features will be ubiquitous by 2011.
Apart from the performance benefit, VMI was important for Linux on VMware's platform, from timekeeping point of view, but with the tickless kernels and TSC improvements that were done for the mainline tree, we think VMI has outlived those requirements too.
In light of these results and availability of such hardware, we have decided to stop supporting VMI in our future products.
Given this new development, I wanted to discuss how should we go about retiring the VMI code from mainline Linux, i.e. the
vmi_32.candvmiclock_32.cbits.
Quoted 6 lines
One of the options that I am contemplating is to drop the code from the tip tree in this release cycle, and given that this should be a low risk change we can remove it from Linus's tree later in the merge cycle.
Let me know your views on this or if you think we should do this some other way.
Typically we give time measured in multiple release cycles before deprecating a feature. This means placing an entry in Documentation/feature-removal-schedule.txt, and potentially adding some noise to warn users they are using a deprecated feature.
thanks,
-chris
Quoted 4 lines · Chris Wright
Quoted 4 lines
One of the options that I am contemplating is to drop the code from the tip tree in this release cycle, and given that this should be a low risk change we can remove it from Linus's tree later in the merge cycle.
Quoted 9 lines
Quoted 3 lines
Let me know your views on this or if you think we should do this some other way.
Typically we give time measured in multiple release cycles before deprecating a feature. This means placing an entry in
Documentation/feature-removal-schedule.txt, and potentially adding some noise to warn users they are using a deprecated feature.
That's true if the feature has some functional effect on users. But at first sight, VMI is really just an optimisation, and a non-VMI-equipped kernel would be completely functionally equivalent, right?
On the other hand, there could well be a performance regression which could affect users. However they're taking the explicit step of withdrawing support for VMI, so I guess they can just take that in their stride.
J
Quoted 14 lines · * Jeremy Fitzhardinge ([email protected]) wrote:
Quoted 4 lines · Chris Wright
Quoted 4 lines
One of the options that I am contemplating is to drop the code from the tip tree in this release cycle, and given that this should be a low risk change we can remove it from Linus's tree later in the merge cycle.
Quoted 8 lines
Quoted 3 lines
Let me know your views on this or if you think we should do this some other way.
Typically we give time measured in multiple release cycles before deprecating a feature. This means placing an entry in
Documentation/feature-removal-schedule.txt, and potentially adding some noise to warn users they are using a deprecated feature.
Quoted 3 lines
That's true if the feature has some functional effect on users. But at first sight, VMI is really just an optimisation, and a non-VMI-equipped kernel would be completely functionally equivalent, right?
True. I'm all for removing code that's got no planned maintenance and no place to run ;-)
Quoted 4 lines
On the other hand, there could well be a performance regression which could affect users. However they're taking the explicit step of withdrawing support for VMI, so I guess they can just take that in their stride.
Yeah. Different than normal deprecation since it's atop VMware's HV which is all in their domain.
thanks,
-chris
Quoted 15 lines · Chris Wright
Quoted 14 lines · * Jeremy Fitzhardinge ([email protected]) wrote:
Quoted 12 lines · Chris Wright
Quoted 7 lines
One of the options that I am contemplating is to drop the code from the tip tree in this release cycle, and given that this should be a low risk change we can remove it from Linus's tree later in the merge cycle.
Let me know your views on this or if you think we should do this some other way.
Typically we give time measured in multiple release cycles before deprecating a feature. This means placing an entry in
Documentation/feature-removal-schedule.txt, and potentially adding some noise to warn users they are using a deprecated feature.
Quoted 6 lines
Quoted 3 lines
That's true if the feature has some functional effect on users. But at first sight, VMI is really just an optimisation, and a non-VMI-equipped kernel would be completely functionally equivalent, right?
True. I'm all for removing code that's got no planned maintenance and no place to run ;-)
That's correct, Jeremy put it as well as I could, VMI was always a optimization, and we expect that new HW features bridge that performance gap too. So a generic kernel will run just as well on VMware's platform.
Having said that, I would like to clarify that existing products which support VMI will still carry on supporting it for the current customer base. Its only the new products which will stop supporting this feature.
Quoted 8 lines
Quoted 5 lines
On the other hand, there could well be a performance regression which could affect users. However they're taking the explicit step of withdrawing support for VMI, so I guess they can just take that in their stride.
Yeah. Different than normal deprecation since it's atop VMware's HV which is all in their domain.
Yep that's true.
Thanks,
Alok
Quoted 11 lines · Alok Kataria
Hi,
We ran a few experiments to compare performance of VMware's paravirtualization technique (VMI) and hardware MMU technologies (HWMMU) on VMware's hypervisor.
To give some background, VMI is VMware's paravirtualization specification which tries to optimize CPU and MMU operations of the guest operating system. For more information take a look at this
http://www.vmware.com/interfaces/paravirtualization.html
Quoted 5 lines
In most of the benchmarks, EPT/NPT (hwmmu) technologies are at par or provide better performance compared to VMI.
The experiments included comparing performance across various micro and real world like benchmarks.
We've reached a similar conclusion for kvm pvmmu vs ept/npt.
Signature · 1 line
Do not meddle in the internals of kernels, for they are subtle and quick to panic.
Quoted 7 lines · Alok Kataria
Given this new development, I wanted to discuss how should we go about retiring the VMI code from mainline Linux, i.e. the
vmi_32.candvmiclock_32.cbits.One of the options that I am contemplating is to drop the code from the tip tree in this release cycle, and given that this should be a low risk change we can remove it from Linus's tree later in the merge cycle.
That sounds good to me, how intrusive are the patches to do this? Is it going to be tricky to get everything merged properly in -tip for it?
thanks,
greg k-h
Quoted 2 lines · Greg KH
That sounds good to me, how intrusive are the patches to do this? Is it going to be tricky to get everything merged properly in -tip for it?
They should be very local - just a matter of removing a couple of files and dropping some config options.
J
Quoted 10 lines · Greg KH
Quoted 7 lines · Alok Kataria
Given this new development, I wanted to discuss how should we go about retiring the VMI code from mainline Linux, i.e. the
vmi_32.candvmiclock_32.cbits.One of the options that I am contemplating is to drop the code from the tip tree in this release cycle, and given that this should be a low risk change we can remove it from Linus's tree later in the merge cycle.
That sounds good to me, how intrusive are the patches to do this?
It's a single patch, and the changes are pretty much self contained, meat of the patch comprises of removing the vmi_32.c and vmiclock_32.c file. I don't think we may want to break the changes down.
Below are the diffstats, let me post the patch in a separate mail.
====
Documentation/kernel-parameters.txt | 2 arch/x86/Kconfig | 10 arch/x86/include/asm/vmi.h | 269 ---------- arch/x86/include/asm/vmi_time.h | 98 ---- arch/x86/kernel/Makefile | 1 arch/x86/kernel/setup.c | 7 arch/x86/kernel/smpboot.c | 9 arch/x86/kernel/vmi_32.c | 913 ----------------------------------- arch/x86/kernel/vmiclock_32.c | 321 ------------ 9 files changed, 1 insertions(+), 1629 deletions(-) delete mode 100644 arch/x86/include/asm/vmi.h delete mode 100644 arch/x86/include/asm/vmi_time.h delete mode 100644 arch/x86/kernel/vmi_32.c delete mode 100644 arch/x86/kernel/vmiclock_32.c
====
Quoted 2 lines
Is it going to be tricky to get everything merged properly in -tip
for it?
IMO, shouldn't be a problem.
Thanks,
Alok
Here is the patch which actually removes the vmi code.
---
Documentation/kernel-parameters.txt | 2 arch/x86/Kconfig | 10 arch/x86/include/asm/vmi.h | 269 ---------- arch/x86/include/asm/vmi_time.h | 98 ---- arch/x86/kernel/Makefile | 1 arch/x86/kernel/setup.c | 7 arch/x86/kernel/smpboot.c | 9 arch/x86/kernel/vmi_32.c | 913 ----------------------------------- arch/x86/kernel/vmiclock_32.c | 321 ------------ 9 files changed, 1 insertions(+), 1629 deletions(-) delete mode 100644 arch/x86/include/asm/vmi.h delete mode 100644 arch/x86/include/asm/vmi_time.h delete mode 100644 arch/x86/kernel/vmi_32.c delete mode 100644 arch/x86/kernel/vmiclock_32.c
Documentation/kernel-parameters.txt +1 -1
@@ -463,7 +463,7 @@ and is between 256 and 4096 characters. It is defined in the file [ARM] imx_timer1,OSTS,netx_timer,mpu_timer2, pxa_timer,timer3,32k_counter,timer0_1 [AVR32] avr32 - [X86-32] pit,hpet,tsc,vmi-timer; + [X86-32] pit,hpet,tsc; scx200_hrt on Geode; cyclone on IBM x440 [MIPS] MIPS [PARISC] cr16
arch/x86/Kconfig +0 -10
@@ -484,16 +484,6 @@ if PARAVIRT_GUEST source "arch/x86/xen/Kconfig" -config VMI - bool "VMI Guest support" - select PARAVIRT - depends on X86_32 - ---help--- - VMI provides a paravirtualized interface to the VMware ESX server - (it could be used by other hypervisors in theory too, but is not - at the moment), by linking the kernel to a GPL-ed ROM module - provided by the hypervisor. - config KVM_CLOCK bool "KVM paravirtualized clock" select PARAVIRT
arch/x86/include/asm/vmi.h deleted +0 -269
269 lines not on this page · raw message
arch/x86/include/asm/vmi_time.h deleted +0 -98
98 lines not on this page · raw message
arch/x86/kernel/Makefile +0 -1
@@ -92,7 +92,6 @@ obj-$(CONFIG_MGEODE_LX) += geode_32.o mfgpt_32.o obj-$(CONFIG_DEBUG_RODATA_TEST) += test_rodata.o obj-$(CONFIG_DEBUG_NX_TEST) += test_nx.o -obj-$(CONFIG_VMI) += vmi_32.o vmiclock_32.o obj-$(CONFIG_KVM_GUEST) += kvm.o obj-$(CONFIG_KVM_CLOCK) += kvmclock.o obj-$(CONFIG_PARAVIRT) += paravirt.o paravirt_patch_$(BITS).o
arch/x86/kernel/setup.c +0 -7
@@ -82,7 +82,6 @@#include <asm/dmi.h> #include <asm/io_apic.h> #include <asm/ist.h> -#include <asm/vmi.h> #include <asm/setup_arch.h> #include <asm/bios_ebda.h> #include <asm/cacheflush.h>
@@ -697,9 +696,6 @@ void __init setup_arch(char **cmdline_p)printk (KERN_INFO "Command line: %s\n" , boot_command_line);#endif -/* VMI may relocate the fixmap; do this before touching ioremap area */ -vmi_init (); -early_cpu_init ();early_ioremap_init ();
@@ -798,9 +794,6 @@ void __init setup_arch(char **cmdline_p)check_efer ();#endif -/* Must be before kernel pagetables are setup */ -vmi_activate (); -/* after early param, so could get panic from serial */ reserve_early_setup_data ();
arch/x86/kernel/smpboot.c +0 -9
@@ -60,7 +60,6 @@#include <asm/pgtable.h> #include <asm/tlbflush.h> #include <asm/mtrr.h> -#include <asm/vmi.h> #include <asm/apic.h> #include <asm/setup.h> #include <asm/uv/uv.h>
@@ -274,7 +273,6 @@ notrace static void __cpuinit start_secondary(void *unused)* fragile that we want to limit the things done here to the * most necessary things. */ -vmi_bringup ();cpu_init ();preempt_disable ();smp_callin ();
@@ -599,13 +597,6 @@ wakeup_secondary_cpu_via_init(int phys_apicid, unsigned long start_eip) num_starts =0 ;/* -* Paravirt / VMI wants a startup IPI hook here to set up the -* target processor state. -*/ -startup_ipi_hook (phys_apicid, (unsigned long ) start_secondary, - (unsigned long )stack_start.sp); - -/* * Run STARTUP IPI loop. */ pr_debug ("#startup loops: %d.\n" , num_starts);
arch/x86/kernel/vmi_32.c deleted +0 -913
913 lines not on this page · raw message
arch/x86/kernel/vmiclock_32.c deleted +0 -321
321 lines not on this page · raw message
Quoted 5 lines · Alok Kataria
Here is the patch which actually removes the vmi code.
Signed-off-by Alok N Kataria <[email protected]>---
Quoted 14 lines
Documentation/kernel-parameters.txt | 2 arch/x86/Kconfig | 10 arch/x86/include/asm/vmi.h | 269 ---------- arch/x86/include/asm/vmi_time.h | 98 ---- arch/x86/kernel/Makefile | 1 arch/x86/kernel/setup.c | 7 arch/x86/kernel/smpboot.c | 9 arch/x86/kernel/vmi_32.c | 913 ----------------------------------- arch/x86/kernel/vmiclock_32.c | 321 ------------ 9 files changed, 1 insertions(+), 1629 deletions(-) delete mode 100644 arch/x86/include/asm/vmi.h delete mode 100644 arch/x86/include/asm/vmi_time.h delete mode 100644 arch/x86/kernel/vmi_32.c delete mode 100644 arch/x86/kernel/vmiclock_32.c
The thing is, the overwhelming majority of vmware users dont benefit from hardware features like nested page tables yet. So this needs to be done _way_ more carefully, with a proper sunset period of a couple of kernel cycles.
This is as if Intel had sent a patch to desupport say Core2 optimizations, now that Nehalem is out.
'Virtual hardware' is no different in this respect: until users benefit from something we want to keep it, even if the vendor would like to sell new hardware and would like the new hardware to have an edge over the installed base.
If we were able to rip out all (or most) of paravirt from arch/x86 it would be tempting for other technical reasons - but the patch above is well localized.
Ingo
Quoted 3 lines · On Sun, 20 Sep 2009 09:42:47 +0200 Ingo Molnar <[email protected]> wrote:
If we were able to rip out all (or most) of paravirt from
arch/x86it would be tempting for other technical reasons - but the patch above is well localized.
interesting question is if this would allow us to remove a few of the paravirt hooks....
Signature · 3 lines
Arjan van de Ven Intel Open Source Technology Centre For development, discussion and tips for power savings, visit http://www.lesswatts.org
Quoted 11 lines · Arjan van de Ven
Quoted 4 lines · On Sun, 20 Sep 2009 09:42:47 +0200 Ingo Molnar<[email protected]> wrote:
If we were able to rip out all (or most) of paravirt from
arch/x86it would be tempting for other technical reasons - but the patch above is well localized.interesting question is if this would allow us to remove a few of the paravirt hooks....
kvm will be removing the pvmmu support soon; and Xen is talking about running paravirtualized guests in a vmx/svm container where they don't need most of the hooks.
Signature · 1 line
Do not meddle in the internals of kernels, for they are subtle and quick to panic.
Quoted 9 lines · Avi Kivity
Quoted 8 lines · Arjan van de Ven
Quoted 4 lines · On Sun, 20 Sep 2009 09:42:47 +0200 Ingo Molnar<[email protected]> wrote:
If we were able to rip out all (or most) of paravirt from
arch/x86it would be tempting for other technical reasons - but the patch above is well localized.
Quoted 8 lines
Quoted 3 lines
interesting question is if this would allow us to remove a few of the paravirt hooks....
kvm will be removing the pvmmu support soon; and Xen is talking about running paravirtualized guests in a vmx/svm container where they don't need most of the hooks.
We have no plans to drop support for non-vmx/svm capable processors, let alone require ept/npt.
J
Quoted 8 lines · Jeremy Fitzhardinge
Quoted 5 lines
kvm will be removing the pvmmu support soon; and Xen is talking about running paravirtualized guests in a vmx/svm container where they don't need most of the hooks.
We have no plans to drop support for non-vmx/svm capable processors, let alone require ept/npt.
Today, certainly; similarly kvm will host-side pvmmu support for a while to support live migration from older hosts.
But in a few years it may make sense to run everything in a vmx/svm container even for Xen; we can then drop x86 pv_ops for good.
Signature · 1 line
Do not meddle in the internals of kernels, for they are subtle and quick to panic.
Quoted 9 lines · Avi Kivity
Quoted 8 lines · Arjan van de Ven
Quoted 4 lines · On Sun, 20 Sep 2009 09:42:47 +0200 Ingo Molnar<[email protected]> wrote:
If we were able to rip out all (or most) of paravirt from
arch/x86it would be tempting for other technical reasons - but the patch above is well localized.
Quoted 7 lines
Quoted 3 lines
interesting question is if this would allow us to remove a few of the paravirt hooks....
kvm will be removing the pvmmu support soon; and Xen is talking about running paravirtualized guests in a vmx/svm container where they don't need most of the hooks.
When they're all gone, even I don't think lguest is sufficient excuse to keep CONFIG_PARAVIRT. Oh well. But that will probably be a while.
Cheers,
Rusty.
Quoted 14 lines · Jeremy Fitzhardinge
Quoted 13 lines · Avi Kivity
Quoted 11 lines · Arjan van de Ven
Quoted 4 lines · On Sun, 20 Sep 2009 09:42:47 +0200 Ingo Molnar<[email protected]> wrote:
If we were able to rip out all (or most) of paravirt from
arch/x86it would be tempting for other technical reasons - but the patch above is well localized.interesting question is if this would allow us to remove a few of the paravirt hooks....
Quoted 6 lines
Quoted 3 lines
kvm will be removing the pvmmu support soon; and Xen is talking about running paravirtualized guests in a vmx/svm container where they don't need most of the hooks.
We have no plans to drop support for non-vmx/svm capable processors, let alone require ept/npt.
But, just to map out our plans for the future, do you concur with the statements and numbers offered here by the VMware and KVM folks that on sufficiently recent hardware, hardware-assisted virtualization outperforms paravirt_ops in many (most?) workloads?
I.e. paravirt_ops becomes a legacy hardware thing, not a core component of the design of arch/x86/.
(with a long obsoletion period, of course.)
Thanks,
Ingo
Quoted 4 lines · Ingo Molnar
Quoted 4 lines
Quoted 4 lines
kvm will be removing the pvmmu support soon; and Xen is talking about running paravirtualized guests in a vmx/svm container where they don't need most of the hooks.
Quoted 8 lines
Quoted 3 lines
We have no plans to drop support for non-vmx/svm capable processors, let alone require ept/npt.
But, just to map out our plans for the future, do you concur with the statements and numbers offered here by the VMware and KVM folks that on sufficiently recent hardware, hardware-assisted virtualization outperforms
paravirt_opsin many (most?) workloads?
Well, what Avi is referring to here is some discussions about a hybrid paravirtualized mode, in which Xen runs a normal Xen PV guest within a hardware container in order to get some immediate optimisations, and allow further optimisations like using hardware assisted paging extensions.
For KVM and VMI, which always use a shadow pagetable scheme, hardware paging is now unambigiously better than shadow pagetables, but for Xen PV guests the picture is mixed since they don't use shadow pagetables. The NPT/EPT extensions make updating the pagetable more efficent, but actual access is more expensive because of the higher load on the TLB and the increased expense of a TLB miss, so the actual performance effects are very workload dependent.
Quoted 5 lines
I.e.
paravirt_opsbecomes a legacy hardware thing, not a core component of the design ofarch/x86/.(with a long obsoletion period, of course.)
I expect we'll eventually get to the point that the performance delta and the installed userbase will no longer justify the effort in maintaining the full set of pvops hooks. But I don't have a good feeling for when that might be.
J
Quoted 3 lines · Rusty Russell
When they're all gone, even I don't think lguest is sufficient excuse to keep
CONFIG_PARAVIRT. Oh well. But that will probably be a while.
/Solidarność/!
J
Quoted 19 lines · Jeremy Fitzhardinge
Quoted 11 lines · Ingo Molnar
Quoted 6 lines
Quoted 4 lines
kvm will be removing the pvmmu support soon; and Xen is talking about running paravirtualized guests in a vmx/svm container where they don't need most of the hooks.
We have no plans to drop support for non-vmx/svm capable processors, let alone require ept/npt.
But, just to map out our plans for the future, do you concur with the statements and numbers offered here by the VMware and KVM folks that on sufficiently recent hardware, hardware-assisted virtualization outperforms
paravirt_opsin many (most?) workloads?Well, what Avi is referring to here is some discussions about a hybrid paravirtualized mode, in which Xen runs a normal Xen PV guest within a hardware container in order to get some immediate optimisations, and allow further optimisations like using hardware assisted paging extensions.
Quoted 7 lines
For KVM and VMI, which always use a shadow pagetable scheme, hardware paging is now unambigiously better than shadow pagetables, but for Xen PV guests the picture is mixed since they don't use shadow pagetables. The NPT/EPT extensions make updating the pagetable more efficent, but actual access is more expensive because of the higher load on the TLB and the increased expense of a TLB miss, so the actual performance effects are very workload dependent.
obviously they are workload dependent - that's why numbers were posted in this thread with various workloads. Do you concur with those conclusions that they are generally a speedup over paravirt? If not, which are the workloads where paravirt offers significant speedup over hardware acceleration?
Ingo
Quoted 6 lines · Ingo Molnar
obviously they are workload dependent - that's why numbers were posted in this thread with various workloads. Do you concur with those conclusions that they are generally a speedup over paravirt? If not, which are the workloads where paravirt offers significant speedup over hardware acceleration?
We're not in a position to do any useful measurements yet.
J
Quoted 9 lines · Jeremy Fitzhardinge
Quoted 5 lines · Ingo Molnar
obviously they are workload dependent - that's why numbers were posted in this thread with various workloads. Do you concur with those conclusions that they are generally a speedup over paravirt? If not, which are the workloads where paravirt offers significant speedup over hardware acceleration?
We're not in a position to do any useful measurements yet.
Sorry for being dense, but what does that mean precisely? No available hardware? Xen doesnt run?
Ingo
Quoted 2 lines · Ingo Molnar
Sorry for being dense, but what does that mean precisely? No available hardware? Xen doesnt run?
Nobody has implemented hybrid PV mode yet, so we haven't got anything to measure.
Also, I don't think there have been very many measurements of Linux HVM (full virtualization) Xen guests, because Linux is typically run paravirtualized and HVM support is primarily tuned for Windows guests.
J
Hi Ingo,
Quoted 5 lines · Ingo Molnar
The thing is, the overwhelming majority of vmware users dont benefit from hardware features like nested page tables yet. So this needs to be done _way_ more carefully, with a proper sunset period of a couple of kernel cycles.
I am fine with that too. Below is a patch which adds notes in feature-removal-schedule.txt, I have marked it for removal from 2.6.34. Please consider this patch for 2.6.32.
Quoted 3 lines
If we were able to rip out all (or most) of paravirt from
arch/x86it would be tempting for other technical reasons - but the patch above is well localized.
We can certainly look at removing some paravirt-hooks which are only used by VMI. Not sure if there are any but will take a look when we actually remove VMI.
Thanks,
Alok
--
Mark VMI for deprecation in feature-removal-schedule.txt.
From: Alok N Kataria <[email protected]>
Add text in feature-removal.txt and also modify Kconfig to disable vmi by default.
Patch on top of tip/master.
Details about VMware's plan about retiring VMI can be found here
http://blogs.vmware.com/guestosguide/2009/09/vmi-retirement.html
---
Documentation/feature-removal-schedule.txt | 24 ++++++++++++++++++++++++ arch/x86/Kconfig | 8 +++++--- 2 files changed, 29 insertions(+), 3 deletions(-)
Documentation/feature-removal-schedule.txt +24 -0
@@ -459,3 +459,27 @@ Why: OSS sound_core grabs all legacy minors (0-255) of SOUND_MAJOR will also allow making ALSA OSS emulation independent of sound_core. The dependency will be broken then too. Who: Tejun Heo <[email protected]> + +---------------------------- + +What: Support for VMware's guest paravirtuliazation technique [VMI] will be + dropped. +When: 2.6.34 +Why: With the recent innovations in CPU hardware acceleration technologies + from Intel and AMD, VMware ran a few experiments to compare these + techniques to guest paravirtulization technique on VMware's platform. + These hardware assisted virtualization techniques have outperformed the + performance benefits provided by VMI in most of the workloads. VMware + expects that these hardware features will be ubiquitous in a couple of + years, as a result, VMware has started a phased retirement of this + feature from the hypervisor. We will be removing this feature from the + Kernel too, in a couple of releases. + Please note that VMI has always been an optimization and non-VMI kernels + still work fine on VMware's platform. + + For more details about VMI retirement take a look at this, + http://blogs.vmware.com/guestosguide/2009/09/vmi-retirement.html + +Who: Alok N Kataria <[email protected]> + +----------------------------
arch/x86/Kconfig +5 -3
@@ -485,14 +485,16 @@ if PARAVIRT_GUEST source "arch/x86/xen/Kconfig" config VMI - bool "VMI Guest support" - select PARAVIRT - depends on X86_32 + bool "VMI Guest support [will be deprecated soon]" + default n + depends on X86_32 && PARAVIRT ---help--- VMI provides a paravirtualized interface to the VMware ESX server (it could be used by other hypervisors in theory too, but is not at the moment), by linking the kernel to a GPL-ed ROM module provided by the hypervisor. + VMware has started a phased retirement of this feature from there + products. Please see feature-removal-schedule.txt for details. config KVM_CLOCK bool "KVM paravirtualized clock"
Quoted 4 lines · Alok Kataria
We can certainly look at removing some paravirt-hooks which are only used by VMI. Not sure if there are any but will take a look when we actually remove VMI.
There are a couple:
* pte_update_defer
* alloc_pmd_clone
lguest appears to still use pte_update(), but I suspect its two callsites could be recast in the form of other existing pvops.
J
H. Peter Anvin
reviewerQuoted 10 lines · Alok Kataria
Hi Ingo,
Quoted 1 line · Ingo Molnar
The thing is, the overwhelming majority of vmware users dont benefit from hardware features like nested page tables yet. So this needs to be done _way_ more carefully, with a proper sunset period of a couple of kernel cycles.
I am fine with that too. Below is a patch which adds notes in feature-removal-schedule.txt, I have marked it for removal from 2.6.34. Please consider this patch for 2.6.32.
This seems way, way too early still.
-hpa
Quoted 10 lines · H. Peter Anvin
Quoted 9 lines · Alok Kataria
Hi Ingo,
Quoted 4 lines · Ingo Molnar
The thing is, the overwhelming majority of vmware users dont benefit from hardware features like nested page tables yet. So this needs to be done _way_ more carefully, with a proper sunset period of a couple of kernel cycles.
Quoted 6 lines
Quoted 4 lines
I am fine with that too. Below is a patch which adds notes in feature-removal-schedule.txt, I have marked it for removal from 2.6.34. Please consider this patch for 2.6.32.
This seems way, way too early still.
What do you suggest would be the right time ?
Please note that the next major release of VMware's product will not have this supported. Also that, most of our customers will actually be running some distro's enterprise release, rather than running the cutting edge kernel. So IMO there is still a window of around 1-1.5 years, until a customer actually sees a kernel which has dropped VMI support.
Thanks,
Alok
H. Peter Anvin
reviewerQuoted 10 lines · Alok Kataria
What do you suggest would be the right time ?
Please note that the next major release of VMware's product will not have this supported. Also that, most of our customers will actually be running some distro's enterprise release, rather than running the cutting edge kernel. So IMO there is still a window of around 1-1.5 years, until a customer actually sees a kernel which has dropped VMI support.
I would say it might make sense pulling it out around the end of 2010, which would be about 6 kernel releases from now -- 2.6.37.
-hpa
Quoted 5 lines · Alok Kataria
Hi Ingo,
Quoted 1 line · Ingo Molnar
Quoted 8 lines
Quoted 4 lines
The thing is, the overwhelming majority of vmware users dont benefit from hardware features like nested page tables yet. So this needs to be done _way_ more carefully, with a proper sunset period of a couple of kernel cycles.
I am fine with that too. Below is a patch which adds notes in feature-removal-schedule.txt, I have marked it for removal from 2.6.34. Please consider this patch for 2.6.32.
Hmm. Given that you are talking about vmi not being supported any more in *future* products, there is a huge installed base with vmi support available, right? I don't think we should zap the code that quickly.
Quoted 4 lines
config VMI
arch/x86/Kconfig +0
-3- bool "VMI Guest support" - select PARAVIRT - depends on X86_32
arch/x86/Kconfig if PARAVIRT_GUEST · line 497
Quoted 10 lines
arch/x86/Kconfig +5
-0+ bool "VMI Guest support [will be deprecated soon]" + default n + depends on X86_32&& PARAVIRT ---help--- VMI provides a paravirtualized interface to the VMware ESX server (it could be used by other hypervisors in theory too, but is not at the moment), by linking the kernel to a GPL-ed ROM module provided by the hypervisor. + VMware has started a phased retirement of this feature from there + products. Please see feature-removal-schedule.txt for details.
How about adding version numbers here? i.e. latest versions with vmi support are workstation x.y, ...
So people can easily figure whenever it makes sense to turn this on for their environment.
cheers
Gerd
Quoted 11 lines · Gerd Hoffmann
Quoted 10 lines · Alok Kataria
Hi Ingo,
Quoted 5 lines · Ingo Molnar
The thing is, the overwhelming majority of vmware users dont benefit from hardware features like nested page tables yet. So this needs to be done _way_ more carefully, with a proper sunset period of a couple of kernel cycles.
Quoted 7 lines
Quoted 3 lines
I am fine with that too. Below is a patch which adds notes in feature-removal-schedule.txt, I have marked it for removal from 2.6.34. Please consider this patch for 2.6.32.
Hmm. Given that you are talking about vmi not being supported any more in *future* products, there is a huge installed base with vmi support available, right? I don't think we should zap the code that quickly.
Yep, hpa too raised the same issue, I spoke to him during LPC and we decided that 2.6.37 will be the right time frame for removal of this code.
For now I have just added some text in the feature-removal file and disabled VMI by default in the Kconfig, the reason that needs to be done is because "Live Migration" of a VMI enabled VM to future products which don't support VMI will not work, so its important that newer distros keep this disabled, if they want seamless migration that is.
Quoted 19 lines
Quoted 5 lines
config VMI
(quoted diff) +0
-3- bool "VMI Guest support" - select PARAVIRT - depends on X86_32Review
Quoted 10 lines
(quoted diff) +5
-0+ bool "VMI Guest support [will be deprecated soon]" + default n + depends on X86_32&& PARAVIRT ---help--- VMI provides a paravirtualized interface to the VMware ESX server (it could be used by other hypervisors in theory too, but is not at the moment), by linking the kernel to a GPL-ed ROM module provided by the hypervisor. + VMware has started a phased retirement of this feature from there + products. Please see feature-removal-schedule.txt for details.How about adding version numbers here? i.e. latest versions with vmi support are workstation x.y, ...
Quoted 2 lines
So people can easily figure whenever it makes sense to turn this on for their environment.
Okay, have added that text too.
Thanks for your comments.
Ingo/hpa, please consider the patch below for tip.
--
Mark VMI for deprecation in feature-removal-schedule.txt.
From: Alok N Kataria <[email protected]>
Add text in feature-removal.txt and also modify Kconfig to disable vmi by default.
---
Documentation/feature-removal-schedule.txt | 30 ++++++++++++++++++++++++++++ arch/x86/Kconfig | 13 +++++++++--- 2 files changed, 40 insertions(+), 3 deletions(-)
Documentation/feature-removal-schedule.txt +30 -0
@@ -459,3 +459,33 @@ Why: OSS sound_core grabs all legacy minors (0-255) of SOUND_MAJOR will also allow making ALSA OSS emulation independent of sound_core. The dependency will be broken then too. Who: Tejun Heo <[email protected]> + +---------------------------- + +What: Support for VMware's guest paravirtuliazation technique [VMI] will be + dropped. +When: 2.6.37 or earlier. +Why: With the recent innovations in CPU hardware acceleration technologies + from Intel and AMD, VMware ran a few experiments to compare these + techniques to guest paravirtualization technique on VMware's platform. + These hardware assisted virtualization techniques have outperformed the + performance benefits provided by VMI in most of the workloads. VMware + expects that these hardware features will be ubiquitous in a couple of + years, as a result, VMware has started a phased retirement of this + feature from the hypervisor. We will be removing this feature from the + Kernel too. Right now we are targeting 2.6.37 but can retire earlier if + technical reasons ( read opportunity to remove major chunk of pvops) + arise. + + Please note that VMI has always been an optimization and non-VMI kernels + still work fine on VMware's platform. + Latest versions of VMware's product which support VMI are, + Workstation 7.0 and VSphere 4.0 on ESX side, future maintainence + releases for these products will continue supporting VMI. + + For more details about VMI retirement take a look at this, + http://blogs.vmware.com/guestosguide/2009/09/vmi-retirement.html + +Who: Alok N Kataria <[email protected]> + +----------------------------
arch/x86/Kconfig +10 -3
@@ -485,14 +485,21 @@ if PARAVIRT_GUEST source "arch/x86/xen/Kconfig" config VMI - bool "VMI Guest support" - select PARAVIRT - depends on X86_32 + bool "VMI Guest support [will be deprecated soon]" + default n + depends on X86_32 && PARAVIRT ---help--- VMI provides a paravirtualized interface to the VMware ESX server (it could be used by other hypervisors in theory too, but is not at the moment), by linking the kernel to a GPL-ed ROM module provided by the hypervisor. + As of September 2009, VMware has started a phased retirement of this + feature from VMware's products. Please see + feature-removal-schedule.txt for details. + If you are planning to enable this option, please note that you + cannot live migrate a VMI enabled VM to a future VMware product, + which doesn't support VMI. So if you expect your kernel to seamlessly + migrate to newer VMware products, keep this disabled. config KVM_CLOCK bool "KVM paravirtualized clock"
H. Peter Anvin
reviewerarch/x86/Kconfig if PARAVIRT_GUEST · line 489
Quoted 2 lines · Alok Kataria
arch/x86/Kconfig +2
-0+ bool "VMI Guest support [will be deprecated soon]" + default n
This is incorrect use of the word "deprecated"... it's *already* deprecated (a word which pretty much means the opposite of "recommended".)
As far as "default n" is concerned... this is usually not necessary; "n" is the default unless anything else is specified.
-hpa
Signature · 2 lines
H. Peter Anvin, Intel Open Source Technology Center I work for Intel. I don't speak on their behalf.
Quoted 9 lines · H. Peter Anvin
Review
Quoted 2 lines · Alok Kataria
(quoted diff) +2
-0+ bool "VMI Guest support [will be deprecated soon]" + default nThis is incorrect use of the word "deprecated"... it's *already* deprecated (a word which pretty much means the opposite of "recommended".)
As far as "default n" is concerned... this is usually not necessary; "n" is the default unless anything else is specified.
How about this ? Thanks.
--
Mark VMI for removal in feature-removal-schedule.txt.
From: Alok N Kataria <[email protected]>
Add text in feature-removal.txt and also modify Kconfig to disable vmi by default.
---
Documentation/feature-removal-schedule.txt | 30 ++++++++++++++++++++++++++++ arch/x86/Kconfig | 12 ++++++++--- 2 files changed, 39 insertions(+), 3 deletions(-)
Documentation/feature-removal-schedule.txt +30 -0
@@ -451,3 +451,33 @@ Why: OSS sound_core grabs all legacy minors (0-255) of SOUND_MAJOR will also allow making ALSA OSS emulation independent of sound_core. The dependency will be broken then too. Who: Tejun Heo <[email protected]> + +---------------------------- + +What: Support for VMware's guest paravirtuliazation technique [VMI] will be + dropped. +When: 2.6.37 or earlier. +Why: With the recent innovations in CPU hardware acceleration technologies + from Intel and AMD, VMware ran a few experiments to compare these + techniques to guest paravirtualization technique on VMware's platform. + These hardware assisted virtualization techniques have outperformed the + performance benefits provided by VMI in most of the workloads. VMware + expects that these hardware features will be ubiquitous in a couple of + years, as a result, VMware has started a phased retirement of this + feature from the hypervisor. We will be removing this feature from the + Kernel too. Right now we are targeting 2.6.37 but can retire earlier if + technical reasons ( read opportunity to remove major chunk of pvops) + arise. + + Please note that VMI has always been an optimization and non-VMI kernels + still work fine on VMware's platform. + Latest versions of VMware's product which support VMI are, + Workstation 7.0 and VSphere 4.0 on ESX side, future maintainence + releases for these products will continue supporting VMI. + + For more details about VMI retirement take a look at this, + http://blogs.vmware.com/guestosguide/2009/09/vmi-retirement.html + +Who: Alok N Kataria <[email protected]> + +----------------------------
arch/x86/Kconfig +9 -3
@@ -496,14 +496,20 @@ if PARAVIRT_GUEST source "arch/x86/xen/Kconfig" config VMI - bool "VMI Guest support" - select PARAVIRT - depends on X86_32 + bool "VMI Guest support [deprecated]" + depends on X86_32 && PARAVIRT ---help--- VMI provides a paravirtualized interface to the VMware ESX server (it could be used by other hypervisors in theory too, but is not at the moment), by linking the kernel to a GPL-ed ROM module provided by the hypervisor. + As of September 2009, VMware has started a phased retirement of this + feature from VMware's products. Please see + feature-removal-schedule.txt for details. + If you are planning to enable this option, please note that you + cannot live migrate a VMI enabled VM to a future VMware product, + which doesn't support VMI. So if you expect your kernel to seamlessly + migrate to newer VMware products, keep this disabled. config KVM_CLOCK bool "KVM paravirtualized clock"
Quoted 6 lines
For now I have just added some text in the feature-removal file and disabled VMI by default in the
Kconfig, the reason that needs to be done is because "Live Migration" of a VMI enabled VM to future products which don't support VMI will not work, so its important that newer distros keep this disabled, if they want seamless migration that is.
btw the "default" in KConfig tends to be totally ignored by distro kernel maintainers... please don't assume that just because some default is set in KConfig it has ANY impact on what shows up in distributions.
Quoted 9 lines · * Alok Kataria ([email protected]) wrote:
Quoted 7 lines · H. Peter Anvin
Review
Quoted 2 lines · Alok Kataria
(quoted diff) +2
-0+ bool "VMI Guest support [will be deprecated soon]" + default nThis is incorrect use of the word "deprecated"... it's *already* deprecated (a word which pretty much means the opposite of "recommended".)
Quoted 4 lines
Quoted 2 lines
As far as "default n" is concerned... this is usually not necessary; "n" is the default unless anything else is specified.
How about this ? Thanks.
Looks good to me (missing Signed-off-by). I think it's also useful to generate some runtime noise saying it's a deprecated option.
Even something as simple as:
- pv_info.name = "vmi"
+ pv_info.name = "vmi [deprecated]";
Quoted 10 lines · Arjan van de Ven
Quoted 6 lines
For now I have just added some text in the feature-removal file and disabled VMI by default in the
Kconfig, the reason that needs to be done is because "Live Migration" of a VMI enabled VM to future products which don't support VMI will not work, so its important that newer distros keep this disabled, if they want seamless migration that is.btw the "default" in KConfig tends to be totally ignored by distro kernel maintainers... please don't assume that just because some default is set in KConfig it has ANY impact on what shows up in distributions.
So, are you saying that we should be doing something else along with toggling it off in the Kconfig ?
We have already informed most of the distro folks about this deprecation so I think we should be okay there, but if there is something else that should be done, do let me know.
Thanks,
Alok
H. Peter Anvin
reviewerQuoted 7 lines · Alok Kataria
So, are you saying that we should be doing something else along with toggling it off in the
Kconfig?
We have already informed most of the distro folks about this deprecation so I think we should be okay there, but if there is something else that should be done, do let me know.
I don't see it ever having been anything than off by default in Kconfig.
-hpa
Signature · 2 lines
H. Peter Anvin, Intel Open Source Technology Center I work for Intel. I don't speak on their behalf.
Quoted 21 lines · Chris Wright
Quoted 9 lines · * Alok Kataria ([email protected]) wrote:
Quoted 7 lines · H. Peter Anvin
Review
Quoted 2 lines · Alok Kataria
(quoted diff) +2
-0+ bool "VMI Guest support [will be deprecated soon]" + default nThis is incorrect use of the word "deprecated"... it's *already* deprecated (a word which pretty much means the opposite of "recommended".)
Quoted 4 lines
Quoted 2 lines
As far as "default n" is concerned... this is usually not necessary; "n" is the default unless anything else is specified.
How about this ? Thanks.
Looks good to me (missing Signed-off-by). I think it's also useful to generate some runtime noise saying it's a deprecated option.
Even something as simple as:
Review
Quoted 2 lines
(quoted diff) +1
-1- pv_info.name = "vmi" + pv_info.name = "vmi [deprecated]";
Yep, I was thinking of adding KERN_WARN's in vmi_init, though I like your suggestion better. Also added SOB line. Thanks.
--
Mark VMI for removal in feature-removal-schedule.txt.
From: Alok N Kataria <[email protected]>
Add text in feature-removal.txt and also modify Kconfig to disable vmi by default.
---
Documentation/feature-removal-schedule.txt | 30 ++++++++++++++++++++++++++++ arch/x86/Kconfig | 12 ++++++++--- arch/x86/kernel/vmi_32.c | 2 +- 3 files changed, 40 insertions(+), 4 deletions(-)
Documentation/feature-removal-schedule.txt +30 -0
@@ -451,3 +451,33 @@ Why: OSS sound_core grabs all legacy minors (0-255) of SOUND_MAJOR will also allow making ALSA OSS emulation independent of sound_core. The dependency will be broken then too. Who: Tejun Heo <[email protected]> + +---------------------------- + +What: Support for VMware's guest paravirtuliazation technique [VMI] will be + dropped. +When: 2.6.37 or earlier. +Why: With the recent innovations in CPU hardware acceleration technologies + from Intel and AMD, VMware ran a few experiments to compare these + techniques to guest paravirtualization technique on VMware's platform. + These hardware assisted virtualization techniques have outperformed the + performance benefits provided by VMI in most of the workloads. VMware + expects that these hardware features will be ubiquitous in a couple of + years, as a result, VMware has started a phased retirement of this + feature from the hypervisor. We will be removing this feature from the + Kernel too. Right now we are targeting 2.6.37 but can retire earlier if + technical reasons (read opportunity to remove major chunk of pvops) + arise. + + Please note that VMI has always been an optimization and non-VMI kernels + still work fine on VMware's platform. + Latest versions of VMware's product which support VMI are, + Workstation 7.0 and VSphere 4.0 on ESX side, future maintainence + releases for these products will continue supporting VMI. + + For more details about VMI retirement take a look at this, + http://blogs.vmware.com/guestosguide/2009/09/vmi-retirement.html + +Who: Alok N Kataria <[email protected]> + +----------------------------
arch/x86/Kconfig +9 -3
@@ -496,14 +496,20 @@ if PARAVIRT_GUEST source "arch/x86/xen/Kconfig" config VMI - bool "VMI Guest support" - select PARAVIRT - depends on X86_32 + bool "VMI Guest support [deprecated]" + depends on X86_32 && PARAVIRT ---help--- VMI provides a paravirtualized interface to the VMware ESX server (it could be used by other hypervisors in theory too, but is not at the moment), by linking the kernel to a GPL-ed ROM module provided by the hypervisor. + As of September 2009, VMware has started a phased retirement of this + feature from VMware's products. Please see + feature-removal-schedule.txt for details. + If you are planning to enable this option, please note that you + cannot live migrate a VMI enabled VM to a future VMware product, + which doesn't support VMI. So if you expect your kernel to seamlessly + migrate to newer VMware products, keep this disabled. config KVM_CLOCK bool "KVM paravirtualized clock"
arch/x86/kernel/vmi_32.c +1 -1
@@ -648,7 +648,7 @@ static inline int __init activate_vmi(void) pv_info.paravirt_enabled =1 ; pv_info.kernel_rpl = kernel_cs &SEGMENT_RPL_MASK ; - pv_info.name ="vmi" ; + pv_info.name ="vmi [deprecated]" ; pv_init_ops.patch = vmi_patch;
H. Peter Anvin
reviewerQuoted 7 lines · Alok Kataria
arch/x86/kernel/vmi_32.c +0
-0
arch/x86/kernel/vmi_32.c static inline int __init activate_vmi(void) · line 654
Quoted 8 lines
arch/x86/kernel/vmi_32.c +1
-1@@ -648,7 +648,7 @@ static inline int __init activate_vmi(void) pv_info.paravirt_enabled =1 ; pv_info.kernel_rpl = kernel_cs &SEGMENT_RPL_MASK ; - pv_info.name ="vmi" ; + pv_info.name ="vmi [deprecated]" ; pv_init_ops.patch = vmi_patch;
Where is this string used, and could this break something?
-hpa
Quoted 12 lines · H. Peter Anvin
Quoted 11 lines · Alok Kataria
arch/x86/kernel/vmi_32.c +1
-1@@ -648,7 +648,7 @@ static inline int __init activate_vmi(void) pv_info.paravirt_enabled =1 ; pv_info.kernel_rpl = kernel_cs &SEGMENT_RPL_MASK ; - pv_info.name ="vmi" ; + pv_info.name ="vmi [deprecated]" ;
Quoted 6 lines
arch/x86/kernel/vmi_32.c static inline int __init activate_vmi(void) · line 654
Quoted 4 lines
arch/x86/kernel/vmi_32.c +0
-0pv_init_ops.patch = vmi_patch;Where is this string used, and could this break something?
It is used by default_banner in "arch/x86/kernel/paravirt.c", IMO this just prints some info for users, shouldn't break anything.
Alok
Quoted 3 lines
-hpa
Learning question regarding virtio and partvirt_ops
In reply to Alok KatariaGreetings all,
I guess this is my official first port on the virtualization mailing list.
So any errors in posting and the correctness of asking questions in the present And future are mine alone :)
I am one of the Microsoft developers responsible for Hyper-V support for Linux.
I had the pleasure of meeting Anthony Liguori and Chris Wright last week at the Linux Plumbers Conference in Portland.
The discussion was around virtio and possibly using some virtio for the Hyper-V work. Since I am still much a novice with virtio, I wanted to ask the general wisdom on the list.
There is also paravirt_ops, and I am trying to understand the relationship of paravirt_ops And the kernel, virtio and the kernel and possible relation between paravirt_ops and virtio.
Is there a place somebody can point me towards that gives me a better understanding of These two systems, how they compliment/do not compliment, are the same or are not the same. And what is the general direction of the people on the list regarding these systems.
Why you would use one over the other, or if they can be combined in some way.
I know this might be a loaded question, but there you have it :)
Anthony and Chris can only be blamed for telling me that this is a good list to have These discussions on. Everything else is my fault :)
Thanks,
Hank.
Chris Wright
Acked-byQuoted 8 lines · * Alok Kataria ([email protected]) wrote:
Mark VMI for removal in feature-removal-schedule.txt.
From: Alok N Kataria <[email protected]>
Add text in feature-removal.txt and also modify
Kconfigto disable vmi by default.Signed-off-by Alok N Kataria <[email protected]>
Re: Learning question regarding virtio and partvirt_ops
In reply to Hank JanssenQuoted 13 lines · Hank Janssen
Greetings all,
I guess this is my official first port on the virtualization mailing list.
So any errors in posting and the correctness of asking questions in the
present And future are mine alone :)I am one of the Microsoft developers responsible for Hyper-V support for
Linux.I had the pleasure of meeting Anthony Liguori and Chris Wright last week at
the Linux Plumbers Conference in Portland.
Quoted 7 lines
The discussion was around virtio and possibly using some virtio for the
Hyper-V work. Since I am still much a novice with virtio, I wanted to ask the general wisdom on the list.There is also
paravirt_ops, and I am trying to understand the relationship
ofparavirt_opsAnd the kernel, virtio and the kernel and possible relation betweenparavirt_opsand virtio.
PV_ops is about optimizing things like time, cpu, irq, mmu, apic, locking, and other similar functions.
Virtio is about optimizing I/O. There are currently drivers for networking, block devices, rng, memory ballooning, console, and maybe others that I don't remember offhand.
Quoted 5 lines
Is there a place somebody can point me towards that gives me a better
understanding of These two systems, how they compliment/do not compliment, are the same or are not the same. And what is the general direction of the people on the list regarding these systems.
The source as usual. Namely arch/x86/include/asm/paravirt_types.h for pv_ops. Pointing out specific places to look for virtio is hard since the drivers are spread all over the kernel tree in the directories they belong. A quick find on the kernel source tree should help.
Quoted 3 lines
Why you would use one over the other, or if they can be combined in some
way.
Lguest uses both. Xen uses pv_ops. KVM uses both.
Quoted 9 lines
I know this might be a loaded question, but there you have it :)
Anthony and Chris can only be blamed for telling me that this is a good
list to have These discussions on. Everything else is my fault :)Thanks,
Hank.
Quoted 12 lines · Alok Kataria
Quoted 10 lines · Arjan van de Ven
Quoted 6 lines
For now I have just added some text in the feature-removal file and disabled VMI by default in the
Kconfig, the reason that needs to be done is because "Live Migration" of a VMI enabled VM to future products which don't support VMI will not work, so its important that newer distros keep this disabled, if they want seamless migration that is.btw the "default" in KConfig tends to be totally ignored by distro kernel maintainers... please don't assume that just because some default is set in KConfig it has ANY impact on what shows up in distributions.
Quoted 5 lines
So, are you saying that we should be doing something else along with toggling it off in the
Kconfig?
We have already informed most of the distro folks about this deprecation so I think we should be okay there, but if there is something else that should be done, do let me know.
Perhaps log a message when it is first used?
I do that for sysctl right now.
Eric
Quoted 11 lines · Eric W. Biederman
Quoted 9 lines
Quoted 3 lines
btw the "default" in KConfig tends to be totally ignored by distro kernel maintainers... please don't assume that just because some default is set in KConfig it has ANY impact on what shows up in distributions.
So, are you saying that we should be doing something else along with toggling it off in the
Kconfig?
We have already informed most of the distro folks about this deprecation so I think we should be okay there, but if there is something else that should be done, do let me know.Perhaps log a message when it is first used?
Yeah, Chris' suggestion about adding "deprecated" string in pv_info.name does just that.
Thanks,
Alok
[tip:x86/urgent] x86, vmi: Mark VMI deprecated and schedule it for remval
In reply to Alok KatariaCommit-ID: 6c42ffab4dc0e21f9c6adc906368e7e7c12df47f Gitweb: http://git.kernel.org/tip/6c42ffab4dc0e21f9c6adc906368e7e7c12df47f Author: Alok Kataria <[email protected]> AuthorDate: Tue, 29 Sep 2009 10:25:24 -0700 Committer: H. Peter Anvin <[email protected]> CommitDate: Thu, 8 Oct 2009 13:21:04 -0700
x86, vmi: Mark VMI deprecated and schedule it for remval
Add text in feature-removal.txt indicating that VMI will be removed in the 2.6.37 timeframe, and modify Kconfig to disable VMI by default.
[ hpa: removed a bogus Kconfig change, marked (DEPRECATED) in Kconfig ]
LKML-Reference: <[email protected]>
--- Documentation/feature-removal-schedule.txt | 30 ++++++++++++++++++++++++++++ arch/x86/Kconfig | 11 +++++++++- arch/x86/kernel/vmi_32.c | 2 +- 3 files changed, 41 insertions(+), 2 deletions(-)
Documentation/feature-removal-schedule.txt +30 -0
@@ -451,3 +451,33 @@ Why: OSS sound_core grabs all legacy minors (0-255) of SOUND_MAJOR will also allow making ALSA OSS emulation independent of sound_core. The dependency will be broken then too. Who: Tejun Heo <[email protected]> + +---------------------------- + +What: Support for VMware's guest paravirtuliazation technique [VMI] will be + dropped. +When: 2.6.37 or earlier. +Why: With the recent innovations in CPU hardware acceleration technologies + from Intel and AMD, VMware ran a few experiments to compare these + techniques to guest paravirtualization technique on VMware's platform. + These hardware assisted virtualization techniques have outperformed the + performance benefits provided by VMI in most of the workloads. VMware + expects that these hardware features will be ubiquitous in a couple of + years, as a result, VMware has started a phased retirement of this + feature from the hypervisor. We will be removing this feature from the + Kernel too. Right now we are targeting 2.6.37 but can retire earlier if + technical reasons (read opportunity to remove major chunk of pvops) + arise. + + Please note that VMI has always been an optimization and non-VMI kernels + still work fine on VMware's platform. + Latest versions of VMware's product which support VMI are, + Workstation 7.0 and VSphere 4.0 on ESX side, future maintainence + releases for these products will continue supporting VMI. + + For more details about VMI retirement take a look at this, + http://blogs.vmware.com/guestosguide/2009/09/vmi-retirement.html + +Who: Alok N Kataria <[email protected]> + +----------------------------
arch/x86/Kconfig +10 -1
@@ -491,7 +491,7 @@ if PARAVIRT_GUEST source "arch/x86/xen/Kconfig" config VMI - bool "VMI Guest support" + bool "VMI Guest support (DEPRECATED)" select PARAVIRT depends on X86_32 ---help---
@@ -500,6 +500,15 @@ config VMI at the moment), by linking the kernel to a GPL-ed ROM module provided by the hypervisor. + As of September 2009, VMware has started a phased retirement + of this feature from VMware's products. Please see + feature-removal-schedule.txt for details. If you are + planning to enable this option, please note that you cannot + live migrate a VMI enabled VM to a future VMware product, + which doesn't support VMI. So if you expect your kernel to + seamlessly migrate to newer VMware products, keep this + disabled. + config KVM_CLOCK bool "KVM paravirtualized clock" select PARAVIRT
arch/x86/kernel/vmi_32.c +1 -1
@@ -648,7 +648,7 @@ static inline int __init activate_vmi(void) pv_info.paravirt_enabled =1 ; pv_info.kernel_rpl = kernel_cs &SEGMENT_RPL_MASK ; - pv_info.name ="vmi" ; + pv_info.name ="vmi [deprecated]" ; pv_init_ops.patch = vmi_patch;
[tip:x86/urgent] x86, vmi: Mark VMI deprecated and schedule it for removal
In reply to Alok KatariaCommit-ID: d0153ca35d344d9b640dc305031b0703ba3f30f0 Gitweb: http://git.kernel.org/tip/d0153ca35d344d9b640dc305031b0703ba3f30f0 Author: Alok Kataria <[email protected]> AuthorDate: Tue, 29 Sep 2009 10:25:24 -0700 Committer: Ingo Molnar <[email protected]> CommitDate: Thu, 8 Oct 2009 22:27:55 +0200
x86, vmi: Mark VMI deprecated and schedule it for removal
Add text in feature-removal.txt indicating that VMI will be removed in the 2.6.37 timeframe.
LKML-Reference: <[email protected]>
--- Documentation/feature-removal-schedule.txt | 30 ++++++++++++++++++++++++++++ arch/x86/Kconfig | 11 +++++++++- arch/x86/kernel/vmi_32.c | 2 +- 3 files changed, 41 insertions(+), 2 deletions(-)
Documentation/feature-removal-schedule.txt +30 -0
@@ -451,3 +451,33 @@ Why: OSS sound_core grabs all legacy minors (0-255) of SOUND_MAJOR will also allow making ALSA OSS emulation independent of sound_core. The dependency will be broken then too. Who: Tejun Heo <[email protected]> + +---------------------------- + +What: Support for VMware's guest paravirtuliazation technique [VMI] will be + dropped. +When: 2.6.37 or earlier. +Why: With the recent innovations in CPU hardware acceleration technologies + from Intel and AMD, VMware ran a few experiments to compare these + techniques to guest paravirtualization technique on VMware's platform. + These hardware assisted virtualization techniques have outperformed the + performance benefits provided by VMI in most of the workloads. VMware + expects that these hardware features will be ubiquitous in a couple of + years, as a result, VMware has started a phased retirement of this + feature from the hypervisor. We will be removing this feature from the + Kernel too. Right now we are targeting 2.6.37 but can retire earlier if + technical reasons (read opportunity to remove major chunk of pvops) + arise. + + Please note that VMI has always been an optimization and non-VMI kernels + still work fine on VMware's platform. + Latest versions of VMware's product which support VMI are, + Workstation 7.0 and VSphere 4.0 on ESX side, future maintainence + releases for these products will continue supporting VMI. + + For more details about VMI retirement take a look at this, + http://blogs.vmware.com/guestosguide/2009/09/vmi-retirement.html + +Who: Alok N Kataria <[email protected]> + +----------------------------
arch/x86/Kconfig +10 -1
@@ -491,7 +491,7 @@ if PARAVIRT_GUEST source "arch/x86/xen/Kconfig" config VMI - bool "VMI Guest support" + bool "VMI Guest support (DEPRECATED)" select PARAVIRT depends on X86_32 ---help---
@@ -500,6 +500,15 @@ config VMI at the moment), by linking the kernel to a GPL-ed ROM module provided by the hypervisor. + As of September 2009, VMware has started a phased retirement + of this feature from VMware's products. Please see + feature-removal-schedule.txt for details. If you are + planning to enable this option, please note that you cannot + live migrate a VMI enabled VM to a future VMware product, + which doesn't support VMI. So if you expect your kernel to + seamlessly migrate to newer VMware products, keep this + disabled. + config KVM_CLOCK bool "KVM paravirtualized clock" select PARAVIRT
arch/x86/kernel/vmi_32.c +1 -1
@@ -648,7 +648,7 @@ static inline int __init activate_vmi(void) pv_info.paravirt_enabled =1 ; pv_info.kernel_rpl = kernel_cs &SEGMENT_RPL_MASK ; - pv_info.name ="vmi" ; + pv_info.name ="vmi [deprecated]" ; pv_init_ops.patch = vmi_patch;