Re: [ANNOUNCE] kvm-49 release

Sheng Yang
2007-11-02T01:36:41Z

[-- Attachment #1: Type: text/plain, Size: 2107 bytes --]

On Friday 02 November 2007 09:10:31 Haydn Solomon wrote:
> How can I tell that my cpu has flexpriority?
>
> (Resending this as didn't cc list last time.)

Oops, forgot the patch...

>
> On Nov 1, 2007 7:12 PM, Avi Kivity <avi-atKUWr5tajBWk0Htik3J/w@public.gmane.org> wrote:
> > Today's big change is FlexPriority, which drastically improves Windows
> > SMP and/or ACPI performance on newer Intel processors.
> >
> > Changes from kvm-49:
> > - fix smp_call_function_mask() emulation on preemptible kernels
> > - move libkvm into own directory (Hollis Blanchard)
> > - fix save/restore/migrate for new memory slot management (Uri Lublin)
> > - compile fixes (Uri Lublin, me)
> > - fix recursive locking on mmap() (Anthony Liguori)
> > - remove some cr2 dependencies from x86 emulator
> > - further simplify x86 emulator
> > - more portability work (Carsten Otte, Hollis Blanchard)
> > - Intel FlexPriority support (Sheng Yang)
> > - fix dirty page tracking on aliased pages (Uri Lublin)
> >
> > Notes:
> > If you use the modules bundled with kvm-50, you can use any version
> > of Linux from 2.6.9 upwards.
> > If you use the modules bundled with Linux 2.6.20, you need to use
> > kvm-12.
> > If you use the modules bundled with Linux 2.6.21, you need to use
> > kvm-17.
> > Modules from Linux 2.6.22 and up will work with any kvm version from
> > kvm-22. Some features may only be available in newer releases.
> > For best performance, use Linux 2.6.23-rc2 or later as the host.
> >
> > http://kvm.qumranet.com
> >
> >
> > -------------------------------------------------------------------------
> > This SF.net email is sponsored by: Splunk Inc.
> > Still grepping through log files to find problems? Stop.
> > Now Search log events and configuration files using AJAX and a browser.
> > Download your FREE copy of Splunk now >> http://get.splunk.com/
> > _______________________________________________
> > kvm-devel mailing list
> > kvm-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org
> > https://lists.sourceforge.net/lists/listinfo/kvm-devel

--
Thanks
Yang, Sheng

[-- Attachment #2: printk_flexpriority.patch --]
[-- Type: text/x-diff, Size: 637 bytes --]

diff --git a/drivers/kvm/vmx.c b/drivers/kvm/vmx.c
index 42e7fad..8f01c8d 100644
--- a/drivers/kvm/vmx.c
+++ b/drivers/kvm/vmx.c
@@ -1684,9 +1684,12 @@ static int vmx_vcpu_reset(struct kvm_vcpu *vcpu)
vmcs_write32(TPR_THRESHOLD, 0);
}

- if (vm_need_virtualize_apic_accesses(vmx->vcpu.kvm))
+ if (vm_need_virtualize_apic_accesses(vmx->vcpu.kvm)) {
vmcs_write64(APIC_ACCESS_ADDR,
page_to_phys(vmx->vcpu.kvm->apic_access_page));
+ if (vm_need_tpr_shadow(vmx->vcpu.kvm))
+ printk(KERN_INFO "kvm: FlexPriority enabled!\n");
+ }

vmx->vcpu.cr0 = 0x60000010;
vmx_set_cr0(&vmx->vcpu, vmx->vcpu.cr0); /* enter rmode */

[-- Attachment #3: Type: text/plain, Size: 314 bytes --]

-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems? Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/

[-- Attachment #4: Type: text/plain, Size: 186 bytes --]