From: Steven Smith Subject: Re: Re: BSOD "A clock interrupt was not recevied onasecondary processor within the allocated time interval" Date: Tue, 6 Jan 2009 10:39:09 +0000 Message-ID: <20090106103909.GA23206@weybridge.uk.xensource.com> References: <49627C6B.7000900@virtualiron.com> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============0084099300==" Return-path: In-Reply-To: List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: Keir Fraser Cc: "Xen-Devel (E-mail)" , Andrew Lyon , Steve Prochniak , Ben Guthro , xen-users@lists.xensource.com List-Id: xen-devel@lists.xenproject.org --===============0084099300== Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="LZvS9be/3tNcYl/X" Content-Disposition: inline --LZvS9be/3tNcYl/X Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable > Alternative Viridian interface support was checked in. When enabled, it > ought to be sufficient to disable these bugchecks. =8Cviridian=3D1=B9 nee= ds to be > specified in the domain config file. Hmm... In order for the Viridian stuff to actually solve this problem, you need to set the relaxed-timers bit. It doesn't look like the xen-unstable implementation does so. Something like this might help: diff -r f6b92526e916 xen/arch/x86/hvm/viridian.c --- a/xen/arch/x86/hvm/viridian.c Tue Jan 06 09:14:39 2009 +0000 +++ b/xen/arch/x86/hvm/viridian.c Tue Jan 06 10:32:26 2009 +0000 @@ -37,6 +37,7 @@ =20 /* Viridian CPUID 4000004, Implementation Recommendations. */ #define CPUID4A_MSR_BASED_APIC (1 << 3) +#define CPUID4A_RELAX_TIMER_INT_HANDLING (1 << 5) =20 int cpuid_viridian_leaves(unsigned int leaf, unsigned int *eax, unsigned int *ebx, unsigned int *ecx, @@ -84,7 +85,7 @@ if ( (d->arch.hvm_domain.viridian.guest_os_id.raw =3D=3D 0) || (d->arch.hvm_domain.viridian.guest_os_id.fields.os < 4) ) break; - *eax =3D CPUID4A_MSR_BASED_APIC; + *eax =3D CPUID4A_MSR_BASED_APIC | CPUID4A_RELAX_TIMER_INT_HANDLING; *ebx =3D 2047; /* long spin count */ break; } But note that I haven't tested this *at all*. Steven. > On 05/01/2009 21:32, "Ben Guthro" wrote: >=20 > > This was never accepted by upstream Xen, as originally submitted by Ky = =66rom > > Novell: > >=20 > > original submission: > > http://lists.xensource.com/archives/html/xen-devel/2008-02/msg00630.html > >=20 > >=20 > >=20 > > Steve Prochniak wrote on 01/05/2009 03:55 PM: > >> =20 > >> Andrew - you can run the "Novell Shim" which makes the hypervisor > >> conform to the Microsoft spec enough that the guest OSs will turn off > >> watchdog timeouts (0x101 BSoDs)... > >>=20 > >> Steve > >>=20 > >> -----Original Message----- > >> From: Andrew Lyon [mailto:andrew.lyon@gmail.com] > >> Sent: Monday, January 05, 2009 3:24 PM > >> To: Steve Prochniak; Xen-Devel (E-mail); xen-users@lists.xensource.com > >> Subject: Re: [Xen-devel] Re: BSOD "A clock interrupt was not recevied > >> onasecondary processor within the allocated time interval" > >>=20 > >> On Mon, Jan 5, 2009 at 7:25 PM, Steve Prochniak > >> wrot= e: > >> =20 > >> =20 > >>> =20 > >>> All Microsoft 6.0 and beyond Operating Systems have a sense of > >>> 'enlightment' which means they try to talk to the underlying > >>> =20 > >>> =20 > >> =20 > >> hypervisor > >> =20 > >> =20 > >>> =20 > >>> - and if there is one, they do certain things like turn off 101 > >>> bugchecks. The only real way to get Vista and beyond to work > >>> =20 > >>> =20 > >> =20 > >> correctly > >> =20 > >> =20 > >>> =20 > >>> with SMP is to make Xen conform to Microsoft's hypervisor spec. > >>> =20 > >>> =20 > >> =20 > >>=20 > >> I vaguely recall there being a way to make xen "lie" to the OS about > >> the type of hypervisor, it might only be a feature on the commercial > >> citrix xenserver? > >>=20 > >> So basically there is no way to run Windows Vista or 2008 on Xen > >> without risk of a 101 BSOD under load? > >>=20 > >> If that is true then its a severe problem and Xen is useless for newer > >> MS OS's :( > >>=20 > >> Has anybody else had this problem and found a solution? > >>=20 > >> Andy > >>=20 > >>=20 > >> =20 > >> =20 > >>> =20 > >>> -----Original Message----- > >>> From: xen-devel-bounces@lists.xensource.com > >>> [mailto:xen-devel-bounces@lists.xensource.com] On Behalf Of Andrew > >>> =20 > >>> =20 > >> =20 > >> Lyon > >> =20 > >> =20 > >>> =20 > >>> Sent: Friday, January 02, 2009 1:34 PM > >>> To: xen-users@lists.xensource.com; Xen-Devel (E-mail) > >>> Subject: [Xen-devel] Re: BSOD "A clock interrupt was not recevied > >>> onasecondary processor within the allocated time interval" > >>>=20 > >>> On Mon, Dec 29, 2008 at 9:32 AM, Andrew Lyon > >>> > >>> wrote: > >>> =20 > >>> =20 > >>>> =20 > >>>> Hi, > >>>>=20 > >>>> When dom0 is under heavy load any Vista or Windows 2008 HVM's that > >>>> =20 > >>>> =20 > >>> =20 > >> =20 > >> are > >> =20 > >> =20 > >>> =20 > >>>> =20 > >>>> running and have multiple cpu's assigned often BSOD with code > >>>> 0x00000101 "A clock interrupt was not recevied ona secondary > >>>> processor within the allocated time interval" > >>>>=20 > >>>> It only happens if the load in dom0 is high enough to make the mouse > >>>> pointer lagged, once the mouse fails to track in realtime the hvm's > >>>> start to bsod within a few seconds. > >>>>=20 > >>>> I have tried several versions of Xen including 3.2, 3.3 and 3.3.1 > >>>> =20 > >>>> =20 > >>> =20 > >> =20 > >> rc4, > >> =20 > >> =20 > >>> =20 > >>>> =20 > >>>> and various kernels including the 2.6.18 xensource and 2.6.27-xen.hg. > >>>>=20 > >>>> Here is a example config from one of my vista hvms, is there a > >>>> timer/rtc setting that I need to add to avoid this problem? > >>>>=20 > >>>> import os, re > >>>> arch =3D os.uname()[4] > >>>> if re.search('64', arch): > >>>> arch_libdir =3D 'lib64' > >>>> else: > >>>> arch_libdir =3D 'lib' > >>>> kernel =3D "/usr/lib/xen/boot/hvmloader" > >>>> builder=3D'hvm' > >>>> memory =3D 2048 > >>>> name =3D "Vistax86" > >>>> uuid =3D "b7bd2f2f-169f-4789-8aee-eaa77c543c99" > >>>> vcpus=3D8 > >>>> vif =3D [ 'mac=3D00:16:3e:7d:bc:b1' ] > >>>> disk =3D [ 'phy:/dev/vg_raptor/lv_vistax86,hda,w', ',hdc:cdrom,r' ] > >>>> device_model =3D '/usr/' + arch_libdir + '/xen/bin/qemu-dm' > >>>> boot=3D"d" > >>>> sdl=3D0 > >>>> vnc=3D1 > >>>> vnclisten=3D"127.0.0.1" > >>>> vncdisplay=3D11 > >>>> vncpasswd=3D'vv8176a' > >>>> stdvga=3D0 > >>>> serial=3D'pty' > >>>> usbdevice=3D'tablet' > >>>>=20 > >>>> =20 > >>>> =20 > >>> =20 > >> =20 > >> cpuid=3D['1:edx=3Dxxx1xxxxxxxxxxxxxxxxxxxxxxxxxxxx,ebx=3Dxxxxxxxx00010= 000xxxxx > >> =20 > >> =20 > >>> =20 > >>> xxxxxxxxxxx','4,0:eax=3D001111xxxxxxxxxxxxxxxxxxxxxxxxxx'] > >>> =20 > >>> =20 > >>>> =20 > >>>> keymap=3D'en-gb' > >>>>=20 > >>>> Andy > >>>>=20 > >>>> =20 > >>>> =20 > >>> =20 > >>> I think this is a known issue which has incorrectly been marked as > >>> FIXED in bugzilla: > >>>=20 > >>> http://bugzilla.xensource.com/bugzilla/show_bug.cgi?id=3D1117 > >>>=20 > >>> there is a second bug report of the same problem, this time with more > >>> details: > >>>=20 > >>> http://bugzilla.xensource.com/bugzilla/show_bug.cgi?id=3D1065 > >>>=20 > >>> Is there a fix? > >>>=20 > >>> Andy > >>>=20 > >>> _______________________________________________ > >>> Xen-devel mailing list > >>> Xen-devel@lists.xensource.com > >>> http://lists.xensource.com/xen-devel > >>>=20 > >>> =20 > >>> =20 > >> =20 > >>=20 > >> _______________________________________________ > >> Xen-devel mailing list > >> Xen-devel@lists.xensource.com > >> http://lists.xensource.com/xen-devel > >> =20 > >=20 > >=20 > > _______________________________________________ > > Xen-devel mailing list > > Xen-devel@lists.xensource.com > > http://lists.xensource.com/xen-devel >=20 > _______________________________________________ > Xen-devel mailing list > Xen-devel@lists.xensource.com > http://lists.xensource.com/xen-devel --LZvS9be/3tNcYl/X Content-Type: application/pgp-signature; name="signature.asc" Content-Description: Digital signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.6 (GNU/Linux) iD8DBQFJYzTNSSW8CTLdF2kRAv+IAJ9XbX17cdPbGDj7fjzV/yR6uys0BgCfQXoS qUITTqROCs+lHV0/JOmdOmU= =Ufuz -----END PGP SIGNATURE----- --LZvS9be/3tNcYl/X-- --===============0084099300== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel --===============0084099300==--