diff options
author | 2024-02-08 21:48:39 +0100 | |
---|---|---|
committer | 2024-02-28 20:58:05 +0000 | |
commit | 53a43dd48f8e5e9cc046f14506a11250efc46bf6 (patch) | |
tree | 43752a24331bbfb534b2fc73409f9d1e10e396dd /scripts/generate_rust_analyzer.py | |
parent | KVM: selftests: x86: sync_regs_test: Get regs structure before modifying it (diff) | |
download | linux-rng-53a43dd48f8e5e9cc046f14506a11250efc46bf6.tar.xz linux-rng-53a43dd48f8e5e9cc046f14506a11250efc46bf6.zip |
KVM: selftests: Move setting a vCPU's entry point to a dedicated API
Extract the code to set a vCPU's entry point out of vm_arch_vcpu_add() and
into a new API, vcpu_arch_set_entry_point(). Providing a separate API
will allow creating a KVM selftests hardness that can handle tests that
use different entry points for sub-tests, whereas *requiring* the entry
point to be specified at vCPU creation makes it difficult to create a
generic harness, e.g. the boilerplate setup/teardown can't easily create
and destroy the VM and vCPUs.
Signed-off-by: Thomas Huth <thuth@redhat.com>
Link: https://lore.kernel.org/r/20240208204844.119326-4-thuth@redhat.com
Signed-off-by: Sean Christopherson <seanjc@google.com>
Diffstat (limited to 'scripts/generate_rust_analyzer.py')
0 files changed, 0 insertions, 0 deletions