x86/svm: Minor cleanup to start_svm()
authorAndrew Cooper <andrew.cooper3@citrix.com>
Mon, 25 Nov 2019 13:29:20 +0000 (13:29 +0000)
committerAndrew Cooper <andrew.cooper3@citrix.com>
Thu, 5 Dec 2019 13:19:28 +0000 (13:19 +0000)
commitefff60f8be79790a6b195d2b8008da7e6e7716b1
treeb04961797647827d3bb4ebbe39fe230e4e317fc5
parent79cf0989175c16994efc1f152eef07bb48cb98df
x86/svm: Minor cleanup to start_svm()

The function is init, so can use boot_cpu_data directly.

There is no need to write 0 to svm_feature_flags in the case of a CPUID
mismatch (not least because this is dead code on real hardware), and no need
to use locked bit operations.

Signed-off-by: Andrew Cooper <andrew.cooper3@citrix.com>
Reviewed-by: Jan Beulich <jbeulich@suse.com>
xen/arch/x86/hvm/svm/svm.c