KVM: x86: VM alloc bug fix and cleanup
Status from this message: Queued, thanks. Might as well make vm_size a field instead of a pointer
Get series with b4
b4 am [email protected]Versions newest first
Patches in v1 Applied
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/3 | KVM: x86: Gracefully handle __vmalloc() failure during VM allocationarch/ arch/ | +8 | 0 replies | |
| 2/3 | KVM: x86: Directly return __vmalloc() result in ->vm_alloc()arch/ arch/ | +8 | 0 replies | |
| 3/3 | KVM: x86: Consolidate VM allocation and free for VMX and SVMarch/ arch/ arch/ +1 more | +17 | 1 reply |
Reviews trailers per patch
None of the 3 patches has a Reviewed-by or Acked-by of their own; the series has one for all of them.
| Patch | Vitaly Kuznetsov |
|---|---|
| Series | R-b |
| 1/3 | |
| 2/3 | |
| 3/3 |
Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.
Cover letter [PATCH 0/3] KVM: x86: VM alloc bug fix and cleanup
Fix a (fairly) long standing NULL pointer dereference if VM allocation fails, and do a bit of clean up on top.
I would have preferred to omit patch 01, i.e. fix the bug via patch 02, but unfortunately (long term support) kernel 4.19 doesn't have the accounting changes, which would make backporting the fix extra annoying for no real benefit.
Sean Christopherson (3):
KVM: x86: Gracefully handle __vmalloc() failure during VM allocation
KVM: x86: Directly return __vmalloc() result in ->vm_alloc()
KVM: x86: Consolidate VM allocation and free for VMX and SVM
arch/x86/include/asm/kvm_host.h | 12 ++++-------- arch/x86/kvm/svm.c | 15 ++++----------- arch/x86/kvm/vmx/vmx.c | 16 ++++------------ arch/x86/kvm/x86.c | 7 +++++++ 4 files changed, 19 insertions(+), 31 deletions(-)
Signature · 1 line
2.24.1