diff options
| author | Sean Christopherson <seanjc@google.com> | 2021-12-06 20:54:34 +0100 |
|---|---|---|
| committer | Paolo Bonzini <pbonzini@redhat.com> | 2021-12-08 04:24:37 -0500 |
| commit | 0f9bdef3d933ba10d577b446c703a901fa5fdc30 (patch) | |
| tree | b0df65fd9dd3c2c94f5519017ff5c5d44c70be2f /arch | |
| parent | KVM: Optimize overlapping memslots check (diff) | |
| download | linux-0f9bdef3d933ba10d577b446c703a901fa5fdc30.tar.gz linux-0f9bdef3d933ba10d577b446c703a901fa5fdc30.zip | |
KVM: Wait 'til the bitter end to initialize the "new" memslot
Initialize the "new" memslot in the !DELETE path only after the various
sanity checks have passed. This will allow a future commit to allocate
@new dynamically without having to copy a memslot, and without having to
deal with freeing @new in error paths and in the "nothing to change" path
that's hiding in the sanity checks.
No functional change intended.
Signed-off-by: Sean Christopherson <seanjc@google.com>
Reviewed-by: Maciej S. Szmigiero <maciej.szmigiero@oracle.com>
Signed-off-by: Maciej S. Szmigiero <maciej.szmigiero@oracle.com>
Message-Id: <a084d0531ca3a826a7f861eb2b08b5d1c06ef265.1638817641.git.maciej.szmigiero@oracle.com>
Diffstat (limited to 'arch')
0 files changed, 0 insertions, 0 deletions
