Wei Huang
2011-May-18 17:37 UTC
[Xen-devel] [PATCH] HVM/ASID: enable flush-by-ASID for HVM
Hi Keir and Tim, The attached file enables flush-by-ASID for HVM. The patch mainly touches asid.c file to minimize the impacts on other HVM components. We also keep ASID interface intact by adding core_id as part of ASID comparison. Please refer to the patch description for design details. This version was tested on real hardware successfully. Please review it. Thanks, -Wei arch/x86/hvm/asid.c | 55 ++++++++++++++++++++++++++++++++---------- arch/x86/hvm/svm/asid.c | 24 ++++++++++++++---- arch/x86/hvm/svm/svm.c | 6 ++-- arch/x86/hvm/vmx/vmcs.c | 1 arch/x86/hvm/vmx/vmx.c | 2 - include/asm-x86/hvm/asid.h | 14 +++++++++- include/asm-x86/hvm/svm/svm.h | 1 include/asm-x86/hvm/vcpu.h | 1 8 files changed, 81 insertions(+), 23 deletions(-) _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel
Keir Fraser
2011-May-18 23:05 UTC
[Xen-devel] Re: [PATCH] HVM/ASID: enable flush-by-ASID for HVM
On 18/05/2011 18:37, "Wei Huang" <wei.huang2@amd.com> wrote:> Hi Keir and Tim, > > The attached file enables flush-by-ASID for HVM. The patch mainly > touches asid.c file to minimize the impacts on other HVM components. We > also keep ASID interface intact by adding core_id as part of ASID > comparison. Please refer to the patch description for design details. > > This version was tested on real hardware successfully. Please review it.I wouldn''t want to spend my time on it before knowing: What''s the performance win? -- Keir> Thanks, > -Wei > > arch/x86/hvm/asid.c | 55 > ++++++++++++++++++++++++++++++++---------- > arch/x86/hvm/svm/asid.c | 24 ++++++++++++++---- > arch/x86/hvm/svm/svm.c | 6 ++-- > arch/x86/hvm/vmx/vmcs.c | 1 > arch/x86/hvm/vmx/vmx.c | 2 - > include/asm-x86/hvm/asid.h | 14 +++++++++- > include/asm-x86/hvm/svm/svm.h | 1 > include/asm-x86/hvm/vcpu.h | 1 > 8 files changed, 81 insertions(+), 23 deletions(-) > >_______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel