diff options
author | Sean Christopherson <seanjc@google.com> | 2022-11-30 23:08:47 +0000 |
---|---|---|
committer | Paolo Bonzini <pbonzini@redhat.com> | 2022-12-29 15:40:45 -0500 |
commit | c9650228efbad65c1b9681198f3502de08a42944 (patch) | |
tree | bcdec3299d43b6ac6975d1f90f397aa0f14f9425 /Documentation/s390 | |
parent | 5910ccf03de4fd6d321cf30cab7a06f1436a2053 (diff) | |
download | lwn-c9650228efbad65c1b9681198f3502de08a42944.tar.gz lwn-c9650228efbad65c1b9681198f3502de08a42944.zip |
KVM: Allocate cpus_hardware_enabled after arch hardware setup
Allocate cpus_hardware_enabled after arch hardware setup so that arch
"init" and "hardware setup" are called back-to-back and thus can be
combined in a future patch. cpus_hardware_enabled is never used before
kvm_create_vm(), i.e. doesn't have a dependency with hardware setup and
only needs to be allocated before /dev/kvm is exposed to userspace.
Free the object before the arch hooks are invoked to maintain symmetry,
and so that arch code can move away from the hooks without having to
worry about ordering changes.
Signed-off-by: Sean Christopherson <seanjc@google.com>
Reviewed-by: Yuan Yao <yuan.yao@intel.com>
Message-Id: <20221130230934.1014142-4-seanjc@google.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'Documentation/s390')
0 files changed, 0 insertions, 0 deletions