All of lore.kernel.org
 help / color / mirror / Atom feed
* A question about SYSENTER/SYSEXIT in HVM guest
@ 2009-04-06 13:11 Guofu Xiang
  2009-04-06 13:45 ` Christoph Egger
  0 siblings, 1 reply; 3+ messages in thread
From: Guofu Xiang @ 2009-04-06 13:11 UTC (permalink / raw)
  To: Xen-devel


[-- Attachment #1.1: Type: text/plain, Size: 1080 bytes --]

The CPU type of our server is Intel Xeon E5310, and the OS is Fedora 8. Xen
3.2 is installed by compilation. When the HVM guest is x86_32 Fedora 8, the
system call is implemented by instruction - *int $80h*. Our debug result by
gdb is as follow.

Dump of assembler code for function __kernel_vsyscall:
0xb7f87400 <__kernel_vsyscall+0>:       int    $0x80
0xb7f87402 <__kernel_vsyscall+2>:       ret
End of assembler dump.

However, when the HVM guest is x86_64 Fedora 8, the system call is
implemented by instruction - *syscall*. The debug result is as fellow:

Dump of assembler code for function getuid:
0x00000036e7296220 <getuid+0>:  mov    $0x66,%eax
0x00000036e7296225 <getuid+5>:  syscall
0x00000036e7296227 <getuid+7>:  retq

As far as I know, fast system call is implemented by *sysenter* on Intel
CPU, and *syscall* on AMD CPU. Why the debug result is *syscall*, rather
than *sysenter*?
If the HVM guest is x86_32 Fedora 8, can we set the system call
implementation by *sysenter*? In x86_64 OS, is all system call implemented
by *syscall*?

Thank you for your response!

[-- Attachment #1.2: Type: text/html, Size: 1371 bytes --]

[-- Attachment #2: Type: text/plain, Size: 138 bytes --]

_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xensource.com
http://lists.xensource.com/xen-devel

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2009-04-06 15:34 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-04-06 13:11 A question about SYSENTER/SYSEXIT in HVM guest Guofu Xiang
2009-04-06 13:45 ` Christoph Egger
     [not found]   ` <d15b2c7b0904060711o1200844bof20e6eddc37f019a@mail.gmail.com>
2009-04-06 15:34     ` Christoph Egger

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.