aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAvi Kivity <avi@redhat.com>2009-12-13 17:51:10 +0200
committerAvi Kivity <avi@redhat.com>2009-12-13 17:51:10 +0200
commit5585fd117db539e35b6cca57de3cc1f97ee3a538 (patch)
tree022a4ea3be0cf766f016d73728f00c960e0c94ee /pc-bios
parenttpr patching: defer post-migration load to vcpu context (diff)
downloadqemu-kvm-5585fd117db539e35b6cca57de3cc1f97ee3a538.tar.gz
qemu-kvm-5585fd117db539e35b6cca57de3cc1f97ee3a538.tar.bz2
qemu-kvm-5585fd117db539e35b6cca57de3cc1f97ee3a538.zip
vapic: fix alignment
Align the bios descriptor to 16 bytes (cosmetic) and the vptr to 128 bytes (worst case cache line). Signed-off-by: Avi Kivity <avi@redhat.com>
Diffstat (limited to 'pc-bios')
-rw-r--r--pc-bios/optionrom/vapic.S6
1 files changed, 5 insertions, 1 deletions
diff --git a/pc-bios/optionrom/vapic.S b/pc-bios/optionrom/vapic.S
index 1924eebde..afe98a9ca 100644
--- a/pc-bios/optionrom/vapic.S
+++ b/pc-bios/optionrom/vapic.S
@@ -26,6 +26,8 @@ vapic_size = 2*4096
fixup_start = .
.text 0
+.align 16
+
vapic_base:
.ascii "kvm aPiC"
@@ -296,7 +298,6 @@ up_set_tpr_poll_irq:
fixup_end = .
.text 0
-.align 128
/*
* vapic format:
* per-vcpu records of size 2^vcpu shift.
@@ -306,6 +307,9 @@ up_set_tpr_poll_irq:
* byte 3: highest pending interrupt (irr) (r/o)
*/
.text 2
+
+.align 128
+
vapic:
. = . + vapic_size
_end: