x86/svm: Drop svm_vm{load,save}() helpers
authorAndrew Cooper <andrew.cooper3@citrix.com>
Thu, 20 Jun 2019 12:04:14 +0000 (13:04 +0100)
committerAndrew Cooper <andrew.cooper3@citrix.com>
Fri, 28 Jun 2019 16:12:37 +0000 (17:12 +0100)
commit282015930f040cbbc6e187ca7cf288bca18d5fa7
tree3566cbfe42b010a3276fdd3057a50d8dedee47cd
parent902888922e6feda2c485cc4bdeffd0d6e6c26e14
x86/svm: Drop svm_vm{load,save}() helpers

Following on from c/s 7d161f6537 "x86/svm: Fix svm_vmcb_dump() when used in
current context", there is now only a single user of svm_vmsave() remaining in
the tree, with all users moved to svm_vm{load,save}_pa().

nv->nv_n1vmcx has a matching nv->nv_n1vmcx_pa which is always correct, and
avoids a redundant __pa() translation behind the scenes.

With this gone, all VM{LOAD,SAVE} operations are using paddr_t's which is more
efficient, so drop the svm_vm{load,save}() helpers to avoid uses of them
reappearing in the future.

Signed-off-by: Andrew Cooper <andrew.cooper3@citrix.com>
Reviewed-by: Jan Beulich <jbeulich@suse.com>
Acked-by: Brian Woods <brian.woods@amd.com>
xen/arch/x86/hvm/svm/nestedsvm.c
xen/include/asm-x86/hvm/svm/svm.h