kvm: extboot: properly set int 0x13 return value
commit67e1c2b13352914ebc06e4e8b14c0fee1e91011a
authorGlauber Costa <glommer@redhat.com>
Mon, 1 Dec 2008 20:01:32 +0000 (1 15:01 -0500)
committerAvi Kivity <avi@redhat.com>
Tue, 2 Dec 2008 12:13:15 +0000 (2 14:13 +0200)
treefdc6952977bf3a4ccb499aa4ee0e697dc9c1be17
parentc6ebc75f734613b6af2c45526fb61d723355fa7c
kvm: extboot: properly set int 0x13 return value

Callers of int 0x13 usually rely on the carry flag being
clear/set to indicate the status of the interrupt execution.

However, our current code clear or set the flags register,
which is totally useless. Whichever value it has, will
be overwritten by the flags value _before_ the interrupt, due to
the iret instruction.

This fixes a bug that prevents slackware (and possibly win2k, untested)
to boot.

Signed-off-by: Glauber Costa <glommer@redhat.com>
Acked-by: Anthony Liguori <aliguori@us.ibm.com>
Signed-off-by: Avi Kivity <avi@redhat.com>
kvm/extboot/extboot.S