• Christian Borntraeger's avatar
    KVM: provide synchronous registers in kvm_run · b9e5dc8d
    Christian Borntraeger authored
    On some cpus the overhead for virtualization instructions is in the same
    range as a system call. Having to call multiple ioctls to get set registers
    will make certain userspace handled exits more expensive than necessary.
    Lets provide a section in kvm_run that works as a shared save area
    for guest registers.
    We also provide two 64bit flags fields (architecture specific), that will
    specify
    1. which parts of these fields are valid.
    2. which registers were modified by userspace
    
    Each bit for these flag fields will define a group of registers (like
    general purpose) or a single register.
    Signed-off-by: default avatarChristian Borntraeger <borntraeger@de.ibm.com>
    Signed-off-by: default avatarMarcelo Tosatti <mtosatti@redhat.com>
    Signed-off-by: default avatarAvi Kivity <avi@redhat.com>
    b9e5dc8d
kvm.h 6.15 KB