From: George Dunlap Date: Thu, 8 Mar 2012 09:10:32 +0000 (+0000) Subject: hvm: Add command line option to enable ASID support -- on by default X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=3a866da3e35ec264c963c6a7fd49f67e4d681e44;p=xen.git hvm: Add command line option to enable ASID support -- on by default Signed-off-by: George Dunlap Signed-off-by: Keir Fraser --- 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 #include +/* 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 ) {