Login
[x]
Log in using an account from:
Fedora Account System
Red Hat Associate
Red Hat Customer
Or login using a Red Hat Bugzilla account
Forgot Password
Login:
Hide Forgot
Create an Account
Red Hat Bugzilla – Attachment 302775 Details for
Bug 437358
F-10 pv_ops xen: Add ia32 emulation
[?]
New
Simple Search
Advanced Search
My Links
Browse
Requests
Reports
Current State
Search
Tabular reports
Graphical reports
Duplicates
Other Reports
User Changes
Plotly Reports
Bug Status
Bug Severity
Non-Defaults
|
Product Dashboard
Help
Page Help!
Bug Writing Guidelines
What's new
Browser Support Policy
5.0.4.rh83 Release notes
FAQ
Guides index
User guide
Web Services
Contact
Legal
This site requires JavaScript to be enabled to function correctly, please enable it.
[patch]
0002-Introduce-xen_ia32_syscall.patch
0002-Introduce-xen_ia32_syscall.patch (text/plain), 1.80 KB, created by
Mark McLoughlin
on 2008-04-17 17:50:25 UTC
(
hide
)
Description:
0002-Introduce-xen_ia32_syscall.patch
Filename:
MIME Type:
Creator:
Mark McLoughlin
Created:
2008-04-17 17:50:25 UTC
Size:
1.80 KB
patch
obsolete
>From 24e2b220bdf922559053add49a61d020bb6a463b Mon Sep 17 00:00:00 2001 >From: Eduardo Habkost <ehabkost@redhat.com> >Date: Thu, 20 Mar 2008 18:45:57 -0300 >Subject: [PATCH] Introduce xen_ia32_syscall() > >Used for ia32 emulation under Xen. > >Signed-off-by: Eduardo Habkost <ehabkost@redhat.com> >--- > arch/x86/ia32/ia32entry.S | 23 +++++++++++++++++++++++ > include/asm-x86/proto.h | 1 + > 2 files changed, 24 insertions(+), 0 deletions(-) > >diff --git a/arch/x86/ia32/ia32entry.S b/arch/x86/ia32/ia32entry.S >index 376b7ba..22ad66f 100644 >--- a/arch/x86/ia32/ia32entry.S >+++ b/arch/x86/ia32/ia32entry.S >@@ -276,6 +276,27 @@ ia32_badarg: > jmp ia32_sysret > CFI_ENDPROC > >+ >+#ifdef CONFIG_XEN >+ >+/* The entry point for Xen IA32 syscall >+ * >+ * The stack format is a bit different under Xen, so we restore >+ * RCX and R11 from the stack and then continue on the standard >+ * path. >+ */ >+ENTRY(xen_ia32_syscall) >+ /* Restore rcx and r11 from stack */ >+ movq (%rsp),%rcx >+ movq 8(%rsp),%r11 >+ addq $0x10,%rsp /* skip rcx and r11 */ >+ >+ /* Continue on the normal path */ >+ jmp ia32_syscall_after_swapgs >+ >+#endif >+ >+ > /* > * Emulated IA32 system calls via int 0x80. > * >@@ -307,6 +328,8 @@ ENTRY(ia32_syscall) > /*CFI_REL_OFFSET cs,CS-RIP*/ > CFI_REL_OFFSET rip,RIP-RIP > swapgs >+ >+ia32_syscall_after_swapgs: > /* > * No need to follow this irqs on/off section: the syscall > * disabled irqs and here we enable it straight after entry: >diff --git a/include/asm-x86/proto.h b/include/asm-x86/proto.h >index b562df5..6bee0b7 100644 >--- a/include/asm-x86/proto.h >+++ b/include/asm-x86/proto.h >@@ -14,6 +14,7 @@ extern void system_call_after_swapgs(void); > extern void syscall_init(void); > > extern void ia32_syscall(void); >+extern void xen_ia32_syscall(void); > extern void ia32_cstar_target(void); > extern void ia32_sysenter_target(void); > >-- >1.5.4.1 >
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 437358
:
302774
| 302775 |
302776
|
302777
|
302778