mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/herbert/cryptodev-2.6.git
synced 2026-04-28 21:46:02 -04:00
KVM: selftests: Purge vm+vcpu_id == vcpu silliness
Take a vCPU directly instead of a VM+vcpu pair in all vCPU-scoped helpers and ioctls. Signed-off-by: Sean Christopherson <seanjc@google.com> Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
This commit is contained in:
committed by
Paolo Bonzini
parent
5260db3eb8
commit
768e9a6185
@@ -187,8 +187,8 @@ static void guest_code(void)
|
||||
struct ucall uc; \
|
||||
int __stage = (stage); \
|
||||
\
|
||||
vcpu_run(__vcpu->vm, __vcpu->id); \
|
||||
get_ucall(__vcpu->vm, __vcpu->id, &uc); \
|
||||
vcpu_run(__vcpu); \
|
||||
get_ucall(__vcpu, &uc); \
|
||||
if (uc.cmd == UCALL_ABORT) { \
|
||||
TEST_FAIL("line %lu: %s, hints: %lu, %lu", uc.args[1], \
|
||||
(const char *)uc.args[0], uc.args[2], uc.args[3]); \
|
||||
|
||||
Reference in New Issue
Block a user