[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [PATCH v4 10/10] kvmvapic: Use optionrom helpers
From: |
Jan Kiszka |
Subject: |
[Qemu-devel] [PATCH v4 10/10] kvmvapic: Use optionrom helpers |
Date: |
Fri, 17 Feb 2012 18:31:22 +0100 |
Use OPTION_ROM_START/END from the common header file, add comment to
init code.
Signed-off-by: Jan Kiszka <address@hidden>
---
pc-bios/optionrom/kvmvapic.S | 18 ++++++++----------
1 files changed, 8 insertions(+), 10 deletions(-)
diff --git a/pc-bios/optionrom/kvmvapic.S b/pc-bios/optionrom/kvmvapic.S
index 856c1e5..aa17a40 100644
--- a/pc-bios/optionrom/kvmvapic.S
+++ b/pc-bios/optionrom/kvmvapic.S
@@ -9,12 +9,10 @@
# option) any later version. See the COPYING file in the top-level directory.
#
- .text 0
- .code16
-.global _start
-_start:
- .short 0xaa55
- .byte (_end - _start) / 512
+#include "optionrom.h"
+
+OPTION_ROM_START
+
# clear vapic area: firmware load using rep insb may cause
# stale tpr/isr/irr data to corrupt the vapic area.
push %es
@@ -26,8 +24,11 @@ _start:
cld
rep stosw
pop %es
+
+ # announce presence to the hypervisor
mov $vapic_base, %ax
out %ax, $0x7e
+
lret
.code32
@@ -331,7 +332,4 @@ up_set_tpr_poll_irq:
vapic:
. = . + vapic_size
-.byte 0 # reserve space for signature
-.align 512, 0
-
-_end:
+OPTION_ROM_END
--
1.7.3.4
- [Qemu-devel] [PATCH v4 00/10] uq/master: TPR access optimization for Windows guests, Jan Kiszka, 2012/02/17
- [Qemu-devel] [PATCH v4 03/10] Process pending work while waiting for initial kick-off in TCG mode, Jan Kiszka, 2012/02/17
- [Qemu-devel] [PATCH v4 09/10] optionsrom: Reserve space for checksum, Jan Kiszka, 2012/02/17
- [Qemu-devel] [PATCH v4 08/10] kvmvapic: Simplify mp/up_set_tpr, Jan Kiszka, 2012/02/17
- [Qemu-devel] [PATCH v4 02/10] Remove useless casts from cpu iterators, Jan Kiszka, 2012/02/17
- [Qemu-devel] [PATCH v4 05/10] target-i386: Add infrastructure for reporting TPR MMIO accesses, Jan Kiszka, 2012/02/17
- [Qemu-devel] [PATCH v4 06/10] kvmvapic: Add option ROM, Jan Kiszka, 2012/02/17
- [Qemu-devel] [PATCH v4 01/10] kvm: Set cpu_single_env only once, Jan Kiszka, 2012/02/17
- [Qemu-devel] [PATCH v4 04/10] Allow to use pause_all_vcpus from VCPU context, Jan Kiszka, 2012/02/17
- [Qemu-devel] [PATCH v4 10/10] kvmvapic: Use optionrom helpers,
Jan Kiszka <=
- [Qemu-devel] [PATCH v4 07/10] kvmvapic: Introduce TPR access optimization for Windows guests, Jan Kiszka, 2012/02/17
- Re: [Qemu-devel] [PATCH v4 00/10] uq/master: TPR access optimization for Windows guests, Avi Kivity, 2012/02/18