diff options
author | George Dunlap <george.dunlap@eu.citrix.com> | 2012-03-08 09:10:32 +0000 |
---|---|---|
committer | George Dunlap <george.dunlap@eu.citrix.com> | 2012-03-08 09:10:32 +0000 |
commit | 3a866da3e35ec264c963c6a7fd49f67e4d681e44 (patch) | |
tree | 232c5335ad09b634e00dfdad36b21c274ac87abb /xen | |
parent | c812282081bbb08f2a2d5e3dedc532502de41cb9 (diff) | |
download | xen-3a866da3e35ec264c963c6a7fd49f67e4d681e44.tar.gz xen-3a866da3e35ec264c963c6a7fd49f67e4d681e44.tar.bz2 xen-3a866da3e35ec264c963c6a7fd49f67e4d681e44.zip |
hvm: Add command line option to enable ASID support -- on by default
Signed-off-by: George Dunlap <george.dunlap@eu.citrix.com>
Signed-off-by: Keir Fraser <keir@xen.org>
Diffstat (limited to 'xen')
-rw-r--r-- | xen/arch/x86/hvm/asid.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/xen/arch/x86/hvm/asid.c b/xen/arch/x86/hvm/asid.c index bfbf0d174e..f69b27efcb 100644 --- a/xen/arch/x86/hvm/asid.c +++ b/xen/arch/x86/hvm/asid.c @@ -25,6 +25,10 @@ #include <xen/percpu.h> #include <asm/hvm/asid.h> +/* Xen command-line option to enable ASIDs */ +static int opt_asid_enabled = 1; +boolean_param("asid", opt_asid_enabled); + /* * ASIDs partition the physical TLB. In the current implementation ASIDs are * introduced to reduce the number of TLB flushes. Each time the guest's @@ -62,7 +66,7 @@ void hvm_asid_init(int nasids) struct hvm_asid_data *data = &this_cpu(hvm_asid_data); data->max_asid = nasids - 1; - data->disabled = (nasids <= 1); + data->disabled = !opt_asid_enabled || (nasids <= 1); if ( g_disabled != data->disabled ) { |