x86/HVM: remove unnecessary indirection from hvm_get_mem_pinned_cacheattr()
authorJan Beulich <jbeulich@suse.com>
Fri, 4 Mar 2016 13:14:25 +0000 (14:14 +0100)
committerJan Beulich <jbeulich@suse.com>
Fri, 4 Mar 2016 13:14:25 +0000 (14:14 +0100)
commit96ade6f6971914d9dfd7c5a1ed4a5e8e306ba723
treeef7b4ed09fc68e073b64c0ac085742089be16f75
parent0acc7010ac226d384a4287bfd828894baf13ebe5
x86/HVM: remove unnecessary indirection from hvm_get_mem_pinned_cacheattr()

Its return value can easily serve the purpose. We cannot, however,
return unspecific "success" anymore for a domain of the wrong type -
since no caller exists that would call this for PV domains, simply add
an ASSERT().

Signed-off-by: Jan Beulich <jbeulich@suse.com>
Reviewed-by: Andrew Cooper <andrew.cooper3@citrix.com>
Acked-by: Tim Deegan <tim@xen.org>
xen/arch/x86/hvm/mtrr.c
xen/arch/x86/mm/shadow/multi.c
xen/include/asm-x86/hvm/cacheattr.h