x86, amd, xen: Avoid NULL pointer paravirt references
authorKonrad Rzeszutek Wilk <konrad@darnok.org>
Wed, 30 May 2012 22:23:56 +0000 (18:23 -0400)
committerBen Hutchings <ben@decadent.org.uk>
Sun, 10 Jun 2012 13:41:48 +0000 (14:41 +0100)
commitaf36d8c1604a720b299bf6d6d47da6375e3da37b
tree44812bd49c33c7cf0bbed9f9a56edbad67a9993e
parentb7b2e9a76804a3ae4c3e9a99b8c56c48b4bc6a50
x86, amd, xen: Avoid NULL pointer paravirt references

commit 1ab46fd319bcf1fcd9fb6311727d532b580e4eba upstream.

Stub out MSR methods that aren't actually needed.  This fixes a crash
as Xen Dom0 on AMD Trinity systems.  A bigger patch should be added to
remove the paravirt machinery completely for the methods which
apparently have no users!

Reported-by: Andre Przywara <andre.przywara@amd.com>
Link: http://lkml.kernel.org/r/20120530222356.GA28417@andromeda.dapyr.net
Signed-off-by: H. Peter Anvin <hpa@zytor.com>
Signed-off-by: Ben Hutchings <ben@decadent.org.uk>
arch/x86/xen/enlighten.c