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:
Ian.Campbell@xensource.com committed 2006-02-22 17:26:39 +00:00
1 parent 4720eab035
commit 30f174ca36
1 file changed
+6 -2
+6 -2
View File
@@ -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) )
Reference in new issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.