• Peter Xu's avatar
    kvm: selftest: unify the guest port macros · 4e18bccc
    Peter Xu authored
    Most of the tests are using the same way to do guest to host sync but
    the code is mostly duplicated.  Generalize the guest port macros into
    the common header file and use it in different tests.
    
    Meanwhile provide "struct guest_args" and a helper "guest_args_read()"
    to hide the register details when playing with these port operations on
    RDI and RSI.
    Signed-off-by: default avatarPeter Xu <peterx@redhat.com>
    Signed-off-by: default avatarPaolo Bonzini <pbonzini@redhat.com>
    4e18bccc
state_test.c 4.94 KB