summaryrefslogtreecommitdiff
path: root/virt
diff options
context:
space:
mode:
authorSean Christopherson <sean.j.christopherson@intel.com>2020-01-27 03:41:12 +0300
committerPaolo Bonzini <pbonzini@redhat.com>2020-03-16 19:57:32 +0300
commit1a625056cc57c1fb6fe9b4500ef07215e942c9bf (patch)
tree96db00f0d631fb5a94d2df10fc259b710840d50b /virt
parentd18b2f43b9147c8005ae0844fb445d8cc6a87e31 (diff)
downloadlinux-1a625056cc57c1fb6fe9b4500ef07215e942c9bf.tar.xz
KVM: x86: Directly return __vmalloc() result in ->vm_alloc()
Directly return the __vmalloc() result in {svm,vmx}_vm_alloc() to pave the way for handling VM alloc/free in common x86 code, and to obviate the need to check the result of __vmalloc() in vendor specific code. Add a build-time assertion to ensure each structs' "kvm" field stays at offset 0, which allows interpreting a "struct kvm_{svm,vmx}" as a "struct kvm". Signed-off-by: Sean Christopherson <sean.j.christopherson@intel.com> Reviewed-by: Vitaly Kuznetsov <vkuznets@redhat.com> Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'virt')
0 files changed, 0 insertions, 0 deletions