mirror of
https://github.com/xen-project/xen.git
synced 2026-10-29 10:40:03 +01:00
Fix x86_64 Xen build.
event_callback_cs and failsafe_callback_cs are x86_32 only. Signed-off-by: Ian Campbell <Ian.Campbell@XenSource.com>
This commit is contained in:
1 parent
4720eab035
commit
30f174ca36
1 file changed
+6
-2
@@ -357,10 +357,14 @@ int arch_set_info_guest(
|
||||
if ( !(c->flags & VGCF_HVM_GUEST) )
|
||||
{
|
||||
if ( ((c->user_regs.ss & 3) == 0) ||
|
||||
!VALID_CODESEL(c->user_regs.cs) ||
|
||||
!VALID_CODESEL(c->event_callback_cs) ||
|
||||
!VALID_CODESEL(c->user_regs.cs) )
|
||||
return -EINVAL;
|
||||
|
||||
#ifdef __i386__
|
||||
if ( !VALID_CODESEL(c->event_callback_cs) ||
|
||||
!VALID_CODESEL(c->failsafe_callback_cs) )
|
||||
return -EINVAL;
|
||||
#endif
|
||||
|
||||
for ( i = 0; i < 256; i++ )
|
||||
if ( !VALID_CODESEL(c->trap_ctxt[i].cs) )
|
||||
|
||||