target-i386: SVM: acknowledge interrupt only after it is taken

SVM specifies that the V_IRQ mask is only to be removed, if the
interrupt that is to be delivered actually is delivered.

As of the SVM rewrite, this mask is always unmasked when the main cpu
loop is processed, leaving a corner case where calling the interrupt
handler causes a #PF. In that case (booting Linux / starting gfxboot)
the current implementation tells the VMM the interrupt is taken, even
though it is not.

This patch modifies the VIRQ unmasking to occur after do_interrupt,
making gfxboot work again.

Signed-off-by: Alexander Graf <agraf@suse.de>
Signed-off-by: Aurelien Jarno <aurelien@aurel32.net>

git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@6008 c046a42c-6fe2-441c-8c8c-71466251a162
1 file changed
tree: 7e10f964080a73e631bb61d777917455ae7e5d1f
  1. audio/
  2. bsd-user/
  3. darwin-user/
  4. fpu/
  5. gdb-xml/
  6. hw/
  7. keymaps/
  8. linux-user/
  9. pc-bios/
  10. slirp/
  11. target-alpha/
  12. target-arm/
  13. target-cris/
  14. target-i386/
  15. target-m68k/
  16. target-mips/
  17. target-ppc/
  18. target-sh4/
  19. target-sparc/
  20. tcg/
  21. tests/
  22. .gitignore
  23. a.out.h
  24. aes.c
  25. aes.h
  26. aio.c
  27. alpha-dis.c
  28. alpha.ld
  29. arm-dis.c
  30. arm-semi.c
  31. arm.ld
  32. balloon.h
  33. block-bochs.c
  34. block-cloop.c
  35. block-cow.c
  36. block-dmg.c
  37. block-nbd.c
  38. block-parallels.c
  39. block-qcow.c
  40. block-qcow2.c
  41. block-raw-posix.c
  42. block-raw-win32.c
  43. block-vmdk.c
  44. block-vpc.c
  45. block-vvfat.c
  46. block.c
  47. block.h
  48. block_int.h
  49. bswap.h
  50. bt-host.c
  51. bt-vhci.c
  52. buffered_file.c
  53. buffered_file.h
  54. cache-utils.c
  55. cache-utils.h
  56. Changelog
  57. cocoa.m
  58. configure
  59. console.c
  60. console.h
  61. COPYING
  62. COPYING.LIB
  63. cpu-all.h
  64. cpu-defs.h
  65. cpu-exec.c
  66. cris-dis.c
  67. curses.c
  68. curses_keys.h
  69. cutils.c
  70. d3des.c
  71. d3des.h
  72. def-helper.h
  73. dis-asm.h
  74. disas.c
  75. disas.h
  76. dyngen-exec.h
  77. elf.h
  78. elf_ops.h
  79. exec-all.h
  80. exec.c
  81. feature_to_c.sh
  82. gdbstub.c
  83. gdbstub.h
  84. gen-icount.h
  85. host-utils.c
  86. host-utils.h
  87. hostregs_helper.h
  88. hpet.h
  89. hppa-dis.c
  90. hppa.ld
  91. i386-dis.c
  92. i386.ld
  93. ia64.ld
  94. keymaps.c
  95. kqemu.c
  96. kqemu.h
  97. kvm-all.c
  98. kvm.h
  99. LICENSE
  100. loader.c
  101. m68k-dis.c
  102. m68k-semi.c
  103. m68k.ld
  104. MAINTAINERS
  105. Makefile
  106. Makefile.target
  107. migration-exec.c
  108. migration-tcp.c
  109. migration.c
  110. migration.h
  111. mips-dis.c
  112. mips.ld
  113. mipsel.ld
  114. monitor.c
  115. nbd.c
  116. nbd.h
  117. net-checksum.c
  118. net.c
  119. net.h
  120. osdep.c
  121. osdep.h
  122. posix-aio-compat.c
  123. posix-aio-compat.h
  124. ppc-dis.c
  125. ppc.ld
  126. ppc64.ld
  127. qemu-aio.h
  128. qemu-binfmt-conf.sh
  129. qemu-char.c
  130. qemu-char.h
  131. qemu-common.h
  132. qemu-doc.texi
  133. qemu-img.c
  134. qemu-img.texi
  135. qemu-lock.h
  136. qemu-log.h
  137. qemu-malloc.c
  138. qemu-nbd.c
  139. qemu-nbd.texi
  140. qemu-sockets.c
  141. qemu-tech.texi
  142. qemu-timer.h
  143. qemu-tool.c
  144. qemu_socket.h
  145. readline.c
  146. README
  147. s390-dis.c
  148. s390.ld
  149. savevm.c
  150. sdl.c
  151. sdl_keysym.h
  152. sh4-dis.c
  153. softmmu-semi.h
  154. softmmu_defs.h
  155. softmmu_exec.h
  156. softmmu_header.h
  157. softmmu_template.h
  158. sparc-dis.c
  159. sparc.ld
  160. sparc64.ld
  161. sys-queue.h
  162. sysemu.h
  163. tap-win32.c
  164. texi2pod.pl
  165. thunk.c
  166. thunk.h
  167. TODO
  168. translate-all.c
  169. uboot_image.h
  170. usb-bsd.c
  171. usb-linux.c
  172. usb-stub.c
  173. VERSION
  174. vgafont.h
  175. vl.c
  176. vnc.c
  177. vnc_keysym.h
  178. vnchextile.h
  179. x86_64.ld
  180. x_keymap.c