aboutsummaryrefslogtreecommitdiff
path: root/cstart.S
diff options
context:
space:
mode:
authorPaolo Bonzini <pbonzini@redhat.com>2015-05-21 12:56:34 +0200
committerPaolo Bonzini <pbonzini@redhat.com>2015-05-21 13:20:00 +0200
commitf53af4778ede5b73f6af9951b655f387c5bc94ba (patch)
tree75185ab27527f6f05d6d344a412e5c89cd856310 /cstart.S
parent630ddf38a2a32179c87656d3e1b80f45ce52d57f (diff)
downloadqboot-f53af4778ede5b73f6af9951b655f387c5bc94ba.zip
qboot-f53af4778ede5b73f6af9951b655f387c5bc94ba.tar.gz
qboot-f53af4778ede5b73f6af9951b655f387c5bc94ba.tar.bz2
speed up KVM by avoiding invalid guest state emulation
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'cstart.S')
-rw-r--r--cstart.S4
1 files changed, 4 insertions, 0 deletions
diff --git a/cstart.S b/cstart.S
index cef3950..938139c 100644
--- a/cstart.S
+++ b/cstart.S
@@ -5,6 +5,8 @@ ENTRY(pm_entry)
xor %ax, %ax
mov %ax, %ds
mov %ax, %es
+ mov %ax, %fs
+ mov %ax, %gs
mov %ax, %ss
mov $0x7c00, %sp
@@ -18,6 +20,8 @@ ENTRY(pm_entry)
mov $16, %ax
mov %ax, %ds
mov %ax, %es
+ mov %ax, %fs
+ mov %ax, %gs
mov %ax, %ss
ljmp $8, $0xffff0000