qemu with hax to log dma reads & writes jcs.org/2018/11/12/vfio

kvmvapic: Use optionrom helpers

Use OPTION_ROM_START/END from the common header file, add comment to
init code.

Signed-off-by: Jan Kiszka <jan.kiszka@siemens.com>
Signed-off-by: Avi Kivity <avi@redhat.com>

authored by

Jan Kiszka and committed by
Avi Kivity
50198112 209ca750

+8 -10
+8 -10
pc-bios/optionrom/kvmvapic.S
··· 9 9 # option) any later version. See the COPYING file in the top-level directory. 10 10 # 11 11 12 - .text 0 13 - .code16 14 - .global _start 15 - _start: 16 - .short 0xaa55 17 - .byte (_end - _start) / 512 12 + #include "optionrom.h" 13 + 14 + OPTION_ROM_START 15 + 18 16 # clear vapic area: firmware load using rep insb may cause 19 17 # stale tpr/isr/irr data to corrupt the vapic area. 20 18 push %es ··· 26 24 cld 27 25 rep stosw 28 26 pop %es 27 + 28 + # announce presence to the hypervisor 29 29 mov $vapic_base, %ax 30 30 out %ax, $0x7e 31 + 31 32 lret 32 33 33 34 .code32 ··· 331 332 vapic: 332 333 . = . + vapic_size 333 334 334 - .byte 0 # reserve space for signature 335 - .align 512, 0 336 - 337 - _end: 335 + OPTION_ROM_END