• David Hildenbrand's avatar
    KVM: s390: filter space-switch events when PER is enforced · 0df30abc
    David Hildenbrand authored
    When guest debugging is active, space-switch events might be enforced
    by PER. While the PER events are correctly filtered out,
    space-switch-events could be forwarded to the guest, although from a
    guest point of view, they should not have been reported.
    
    Therefore we have to filter out space-switch events being concurrently
    reported with a PER event, if the PER event got filtered out. To do so,
    we theoretically have to know which instruction was responsible for the
    event. As the applicable instructions modify the PSW address, the
    address space set in the PSW and even the address space in cr1, we
    can't figure out the instruction that way.
    
    For this reason, we have to rely on the information about the old and
    new address space, in order to guess the responsible instruction type
    and do appropriate checks for space-switch events.
    Signed-off-by: default avatarDavid Hildenbrand <dahi@linux.vnet.ibm.com>
    Signed-off-by: default avatarChristian Borntraeger <borntraeger@de.ibm.com>
    0df30abc
guestdbg.c 13.3 KB