diff options
author | Sean Christopherson <[email protected]> | 2022-12-09 12:55:44 -0800 |
---|---|---|
committer | Paolo Bonzini <[email protected]> | 2022-12-27 06:00:49 -0500 |
commit | 2f5213b8fc311eaa8fc78de7ecbd27ead027993c (patch) | |
tree | 60701f5f9e1cc956a56bd51dd0969c498b9f037d /scripts/generate_rust_analyzer.py | |
parent | db7b780dab6742a8358ae7ecb1d0e972ccea8737 (diff) |
KVM: selftests: Use magic value to signal ucall_alloc() failure
Use a magic value to signal a ucall_alloc() failure instead of simply
doing GUEST_ASSERT(). GUEST_ASSERT() relies on ucall_alloc() and so a
failure puts the guest into an infinite loop.
Use -1 as the magic value, as a real ucall struct should never wrap.
Reported-by: Oliver Upton <[email protected]>
Signed-off-by: Sean Christopherson <[email protected]>
Signed-off-by: Paolo Bonzini <[email protected]>
Diffstat (limited to 'scripts/generate_rust_analyzer.py')
0 files changed, 0 insertions, 0 deletions