• Duncan Sands's avatar
    KVM: Fix instruction size issue in pvclock scaling · 3b217116
    Duncan Sands authored
    Commit de2d1a52 ("KVM: Fix register corruption in pvclock_scale_delta")
    introduced a mul instruction that may have only a memory operand; the
    assembler therefore cannot select the correct size:
    
       pvclock.s:229: Error: no instruction mnemonic suffix given and no register
    operands; can't size instruction
    
    In this example the assembler is:
    
             #APP
             mul -48(%rbp) ; shrd $32, %rdx, %rax
             #NO_APP
    
    A simple solution is to use mulq.
    Signed-off-by: default avatarDuncan Sands <baldrick@free.fr>
    Signed-off-by: default avatarAvi Kivity <avi@redhat.com>
    3b217116
pvclock.h 1.35 KB