aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python
diff options
context:
space:
mode:
authorSean Christopherson <[email protected]>2020-01-26 16:41:12 -0800
committerPaolo Bonzini <[email protected]>2020-03-16 17:57:32 +0100
commit1a625056cc57c1fb6fe9b4500ef07215e942c9bf (patch)
tree96db00f0d631fb5a94d2df10fc259b710840d50b /tools/perf/scripts/python
parentd18b2f43b9147c8005ae0844fb445d8cc6a87e31 (diff)
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 <[email protected]> Reviewed-by: Vitaly Kuznetsov <[email protected]> Signed-off-by: Paolo Bonzini <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions