KVM: Fix instruction size issue in pvclock scaling
authorDuncan Sands <baldrick@free.fr>
Tue, 30 Aug 2011 08:58:22 +0000 (10:58 +0200)
committerAvi Kivity <avi@redhat.com>
Tue, 30 Aug 2011 11:42:30 +0000 (14:42 +0300)
commit3b217116edaac634bf31e85c35708298059a8171
treed16ebe3a5ea3cc8b279e60f54e2df804cb754a1c
parentb4ca46e4e82a0a5976fe5eab85be585d75f8202f
KVM: Fix instruction size issue in pvclock scaling

Commit de2d1a524e94 ("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: Duncan Sands <baldrick@free.fr>
Signed-off-by: Avi Kivity <avi@redhat.com>
arch/x86/include/asm/pvclock.h