[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [BUG] Xen BUG at mce_amd.c:100 (mc_ec2type) on Zen 3; host left wedged, no reboot


  • To: Jan Beulich <jbeulich@xxxxxxxx>, Peter Deggendorfer <pd@xxxxxxxxxxxxxxx>
  • From: Andrew Cooper <andrew.cooper3@xxxxxxxxxx>
  • Date: Mon, 30 Nov 2026 12:41:27 +0000
  • Arc-authentication-results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=citrix.com; dmarc=pass action=none header.from=citrix.com; dkim=pass header.d=citrix.com; arc=none
  • Arc-message-signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector10001; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=N794WP1KokV3rPSf/0UWivs716nBiXJP3Ddq+0WDDoU=; b=V2AAeOx1o9IlqdahDCGAJk6xPjf+S71gyXbqmAVI4/DtqQAOfglwh4Afayv719COXryhYsEotPl0GtiUBmpkVvbM/Y5X8DrY447wgtWXEn2Bn7G/srhi1JhqDN5DJj4upPTeT3LPhykLCudJAwr+wd9Rh8XTLXLdV9ZYrPtDHTe83OZ3zXI39+YSqDlWtUDoyqgM8OdE05UjhYYhSt/PRt7ITPlkPBEJlSOQ4si1/Gs7YVaeiLKSxv9/hA4SA3sRlBxy73yXFs/mrAISFOMQdI5kuC+MjYHlAbJY2cuktP1FEtUd+hjN8lZMTSff/V83snjeJwMd4A47WwrvReozqg==
  • Arc-seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=iAjtqj/wtBGaGg7U80L18LvUbgJdFfIiSdNRVwUe2POa9g35yfSEAVI2SkWruNuPRaWAaMSfmzVHmnps3HEKoj9c4Z6DT28g9wcvg8YGMRiM1gPHZC332vt7w9vvbH6PLsl3Q5uCXkKXVZdtiMfHwOAEEXAZk7HbtKcHm2VwqZOKr0gYnP8zgrZC0luArPYFtLpbmacxMg07O5XEcLcK3V6xcmizghDSaA3YHBerKnhTzv9UzgNFaOiryKc2RsTtLjRQ6a0p15AXApCYNQKuxys2agL4l+EJQXIfsxXos8isdANJYGZuSNbivHMKjbD7ongXXtzNa/QxsbVF68BMxg==
  • Authentication-results: eu.smtp.expurgate.cloud; dkim=pass header.s=selector1 header.d=citrix.com header.i="@citrix.com" header.h="From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck"
  • Authentication-results: mx.microsoft.com 1; dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=citrix.com;
  • Autocrypt: addr=andrew.cooper3@xxxxxxxxxx; keydata= xsFNBFLhNn8BEADVhE+Hb8i0GV6mihnnr/uiQQdPF8kUoFzCOPXkf7jQ5sLYeJa0cQi6Penp VtiFYznTairnVsN5J+ujSTIb+OlMSJUWV4opS7WVNnxHbFTPYZVQ3erv7NKc2iVizCRZ2Kxn srM1oPXWRic8BIAdYOKOloF2300SL/bIpeD+x7h3w9B/qez7nOin5NzkxgFoaUeIal12pXSR Q354FKFoy6Vh96gc4VRqte3jw8mPuJQpfws+Pb+swvSf/i1q1+1I4jsRQQh2m6OTADHIqg2E ofTYAEh7R5HfPx0EXoEDMdRjOeKn8+vvkAwhviWXTHlG3R1QkbE5M/oywnZ83udJmi+lxjJ5 YhQ5IzomvJ16H0Bq+TLyVLO/VRksp1VR9HxCzItLNCS8PdpYYz5TC204ViycobYU65WMpzWe LFAGn8jSS25XIpqv0Y9k87dLbctKKA14Ifw2kq5OIVu2FuX+3i446JOa2vpCI9GcjCzi3oHV e00bzYiHMIl0FICrNJU0Kjho8pdo0m2uxkn6SYEpogAy9pnatUlO+erL4LqFUO7GXSdBRbw5 gNt25XTLdSFuZtMxkY3tq8MFss5QnjhehCVPEpE6y9ZjI4XB8ad1G4oBHVGK5LMsvg22PfMJ ISWFSHoF/B5+lHkCKWkFxZ0gZn33ju5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LsjYnHwn27hmxTC/7tvG3euCklmkn9Sl9IAKFu29RSo d5bD8kMSCYsTqtTfT6W4A3qHGvIDta3ptLYpIAOD2sY3GYq2nf3Bbzx81wZK14JdDDHUX2Rs 6+ahAA==
  • Cc: Andrew Cooper <andrew.cooper3@xxxxxxxxxx>, Roger Pau Monné <roger@xxxxxxxxxxxxxx>, Teddy Astie <teddy.astie@xxxxxxxxxx>, Jason Andryuk <jason.andryuk@xxxxxxx>, Soham Dandapat <soham.dandapat@xxxxxxx>, xen-devel@xxxxxxxxxxxxx
  • Delivery-date: Mon, 30 Nov 2026 12:41:43 +0000
  • List-id: Xen developer discussion <xen-devel.lists.xenproject.org>

On 30/11/2026 12:30 pm, Jan Beulich wrote:
> On 30.11.2026 13:09, Peter Deggendorfer wrote:
>> Am 30.11.2026 um 13:00 schrieb Peter Deggendorfer:
>>> Am 16.11.2026 um 16:41 schrieb Jan Beulich:
>>>> On 13.11.2026 08:08, Peter Deggendorfer wrote:
>>>>> Am 11.11.2026 um 08:41 schrieb Jan Beulich:
>>>>>> On 10.11.2026 10:59, Peter Deggendorfer wrote:
>>>>>>> Am 02.11.2026 um 13:54 schrieb Jan Beulich:
>>>>>>>> On 31.10.2026 14:44, Peter Deggendorfer wrote:
>>>>>>>>> As requested, I added a printk to mcheck_mca_logout(), and the 
>>>>>>>>> BUG() in
>>>>>>>>> mc_ec2type() is still replaced. These are the only changes 
>>>>>>>>> against the
>>>>>>>>> Debian package:
>>>>>>>>>
>>>>>>>>> --- a/xen/arch/x86/cpu/mcheck/mce_amd.c
>>>>>>>>> +++ b/xen/arch/x86/cpu/mcheck/mce_amd.c
>>>>>>>>> @@ -97,7 +97,7 @@
>>>>>>>>>          if ( errorcode & MC_EC_TLB_TYPE )
>>>>>>>>>              return MC_EC_TLB_TYPE;
>>>>>>>>>          /* Unreached */
>>>>>>>>> -    BUG();
>>>>>>>>> +    printk(XENLOG_WARNING "MCE: unknown AMD error code %#x\n", 
>>>>>>>>> errorcode);
>>>>>>>>>          return 0;
>>>>>>>>>      }
>>>>>>>>>
>>>>>>>>> --- a/xen/arch/x86/cpu/mcheck/mce.c
>>>>>>>>> +++ b/xen/arch/x86/cpu/mcheck/mce.c
>>>>>>>>> @@ -304,3 +304,6 @@
>>>>>>>>>              if ( !(status & MCi_STATUS_VAL) )
>>>>>>>>>                  continue; /* this bank has no valid telemetry */
>>>>>>>>>
>>>>>>>>> +        if ( who == MCA_POLLER )
>>>>>>>>> +            printk(XENLOG_WARNING "MCE: CPU%u bank %d status 
>>>>>>>>> %#"PRIx64"\n",
>>>>>>>>> +                   smp_processor_id(), i, status);
>>>>>>>>>
>>>>>>>>>
>>>>>>>>> We now have some data points:
>>>>>>>>>
>>>>>>>>> (XEN) [2026-10-27 13:42:10.588] MCE: CPU2 bank 23 status 
>>>>>>>>> 0x830824448b48ffff
>>>>>>>>> (XEN) [2026-10-27 18:19:55.593] MCE: CPU2 bank 23 status 
>>>>>>>>> 0xffffffffffffffff
>>>>>>>>> (XEN) [2026-10-27 22:11:10.596] MCE: CPU2 bank 17 status 
>>>>>>>>> 0xffff832036a40048
>>>>>>>>> (XEN) [2026-10-27 22:11:10.596] MCE: unknown AMD error code 0x48
>>>>>>>>> (XEN) [2026-10-28 00:33:55.597] MCE: CPU2 bank 10 status 
>>>>>>>>> 0xffff82d04022a8af
>>>>>>>>> (XEN) [2026-10-28 05:26:40.599] MCE: CPU2 bank 17 status 
>>>>>>>>> 0xffff82d0402408e3
>>>>>>>>> (XEN) [2026-10-29 23:17:25.618] MCE: CPU2 bank 17 status 
>>>>>>>>> 0xffff82d04022a8af
>>>>>>>>> (XEN) [2026-10-30 03:25:10.622] MCE: CPU2 bank 23 status 
>>>>>>>>> 0xffffffffffffffff
>>>>>>>>> (XEN) [2026-10-30 10:05:55.625] MCE: CPU2 bank 10 status 
>>>>>>>>> 0xffffffffffffffff
>>>>>>>>> (XEN) [2026-10-31 00:58:10.625] MCE: CPU2 bank 17 status 
>>>>>>>>> 0xffff888100b872e8
>>>>>>>>> (XEN) [2026-10-31 00:58:10.625] MCE: unknown AMD error code 0x72e8
>>>>>>>>> (XEN) [2026-10-31 04:17:55.632] MCE: CPU2 bank 23 status 
>>>>>>>>> 0xffff831f00006000
>>>>>>>>> (XEN) [2026-10-31 04:17:55.632] MCE: unknown AMD error code 0x6000
>>>>>>>>>
>>>>>>>>> Only 3 of these would have hit the BUG(); the others have UC 
>>>>>>>>> clear or
>>>>>>>>> an error code that happens to contain a type bit.
>>>>>>>>>
>>>>>>>>> The values look like pointers rather than status registers:
>>>>>>>>>
>>>>>>>>>       ffff82d040......  Xen text/data -- the prefix of every RIP 
>>>>>>>>> in my
>>>>>>>>>                         earlier panic dumps
>>>>>>>>>       ffff831f........ / ffff8320........  same range as rsp in 
>>>>>>>>> those
>>>>>>>>>                         dumps (e.g. ffff831fe6b3fc38, 
>>>>>>>>> ffff832036a87c38)
>>>>>>>>>       ffff888100b872e8  dom0 Linux range?
>>>>>>>> Plus the very first of the entries above is a pointer value 
>>>>>>>> rotated by 16 bits.
>>>>>>>>
>>>>>>>>> Two things that make me doubt these are real status values at all:
>>>>>>>>> 0xffff82d04022a8af appears twice, 47 hours apart, for two different
>>>>>>>>> banks (10 and 17). And all timestamps are congruent mod 15 seconds,
>>>>>>>>> i.e. this is the poller hitting it on a small fraction of passes.
>>>>>>>> There's no question that the values are garbage. We just need to 
>>>>>>>> find out why
>>>>>>>> that is. As we have to explore all (remote) possibilities, first 
>>>>>>>> of all - you
>>>>>>>> don't play any games involving the XEN_MC_msrinject hypercall, do 
>>>>>>>> you? For
>>>>>>>> the immediate purpose here, and since ...
>>>>>>> No, I never used XEN_MC_msrinject hypercall on this host; it's a
>>>>>>> plain Debian trixie installation.
>>>>>>>
>>>>>>>
>>>>>>>>> I don't know where the read goes wrong.
>>>>>>>> ... I can't make sense of the behavior either, I'm inclined to 
>>>>>>>> suggest that
>>>>>>>> you add this hunk to your debugging patch:
>>>>>>>>
>>>>>>>> --- a/xen/arch/x86/cpu/mcheck/mce.h
>>>>>>>> +++ b/xen/arch/x86/cpu/mcheck/mce.h
>>>>>>>> @@ -79,7 +79,6 @@
>>>>>>>>     static inline uint64_t mca_rdmsr(unsigned int msr)
>>>>>>>>     {
>>>>>>>>         uint64_t val;
>>>>>>>> -    if (intpose_lookup(smp_processor_id(), msr, &val) == NULL)
>>>>>>>>             rdmsrl(msr, val);
>>>>>>>>         return val;
>>>>>>>>     }
>>>>>> Can you please replace this by
>>>>>>
>>>>>> --- a/xen/arch/x86/cpu/mcheck/mce.h
>>>>>> +++ b/xen/arch/x86/cpu/mcheck/mce.h
>>>>>> @@ -79,8 +79,18 @@ extern bool intpose_inval(unsigned int c
>>>>>>    static inline uint64_t mca_rdmsr(unsigned int msr)
>>>>>>    {
>>>>>>        uint64_t val;
>>>>>> -    if (intpose_lookup(smp_processor_id(), msr, &val) == NULL)
>>>>>> -        rdmsrl(msr, val);
>>>>>> +
>>>>>> +    if ( !intpose_lookup(smp_processor_id(), msr, &val) )
>>>>>> +    {
>>>>>> +        unsigned long lo = 0x555555555555UL, hi = 0xaaaaaaaaU;
>>>>>> +
>>>>>> +        asm volatile ( "rdmsr"
>>>>>> +                       : "+a" (lo), "+d" (hi)
>>>>>> +                       : "c" (msr) );
>>>>>> +
>>>>>> +        val = (hi << 32) | lo;
>>>>>> +    }
>>>>>> +
>>>>>>        return val;
>>>>>>    }
>>>>> (XEN) [2026-11-12 17:31:32.982] MCE: CPU2 bank 10 status 
>>>>> 0xffff82d0402409a3
>>>>> (XEN) [2026-11-12 17:31:32.982] MCE: CPU2 bank 10 -> 0
>>>>> (XEN) [2026-11-12 20:37:02.988] MCE: CPU2 bank 23 status 
>>>>> 0xffff82d0402409a3
>>>>> (XEN) [2026-11-12 20:37:02.988] MCE: CPU2 bank 23 -> 0
>>>>> (XEN) [2026-11-13 05:18:02.990] MCE: CPU2 bank 10 status 
>>>>> 0xffff8315c0010000
>>>>> (XEN) [2026-11-13 05:18:02.990] MCE: CPU2 bank 10 -> 0
>>>>>
>>>>> The sentinel values never show up; RAX/RDX do get overwritten, just not
>>>>> with the MSR contents. Against this build's xen-syms.map,
>>>>> 0xffff82d0402409a3 is softirq.c#__do_softirq+0x73.
>>>> We've discussed this again among maintainers, and despite ...
>>>>
>>>>>>>>> /dev/mcelog records match the log lines one-to-one (same banks,
>>>>>>>>> same order, all CPU 2), but carry status zero in every case. The 
>>>>>>>>> record's
>>>>>>>>> status comes from the second read in mca_init_bank(), before
>>>>>>>>> mcabank_clear(), so that second read returned 0.
>>>>>>>> Based on this observation, another thing you may want to try is 
>>>>>>>> extend the
>>>>>>>> existing hunk you have to
>>>>>>>>
>>>>>>>> --- a/xen/arch/x86/cpu/mcheck/mce.c
>>>>>>>> +++ b/xen/arch/x86/cpu/mcheck/mce.c
>>>>>>>> @@ -304,6 +304,17 @@
>>>>>>>>              if ( !(status & MCi_STATUS_VAL) )
>>>>>>>>                  continue; /* this bank has no valid telemetry */
>>>>>>>>
>>>>>>>> +        if ( who == MCA_POLLER )
>>>>>>>> +        {
>>>>>>>> +            printk("MCE: CPU%u bank %d status %#"PRIx64"\n",
>>>>>>>> +                   smp_processor_id(), i, status);
>>>>>>>> +            status = mca_rdmsr(MSR_IA32_MCx_STATUS(i));
>>>>>>>> +            printk("MCE: CPU%u bank %d -> %#"PRIx64"\n",
>>>>>>>> +                   smp_processor_id(), i, status);
>>>>>>>> +            if ( !(status & MCi_STATUS_VAL) )
>>>>>>>> +                continue;
>>>>>>>> +        }
>>>>>>>> +
>>>>>>>>             /*
>>>>>>>>              * For Intel Latest CPU CMCI/MCE Handler caller, we 
>>>>>>>> need to
>>>>>>>>              * decide whether to clear bank by MCi_STATUS bit 
>>>>>>>> value such as
>>>>>>>>
>>>>>>> Since 2026-11-03 the host runs Xen 4.20.5-pre (Debian
>>>>>>> 4.20.4+39-gf1e1321c87-0+deb13u1) with your two debugging hunks
>>>>>>> (intpose_lookup() removed from mca_rdmsr(), re-read in the poller) 
>>>>>>> and
>>>>>>> your "x86/MCE: reduce redundant code" series (both patches). In 7 
>>>>>>> days:
>>>>>>>
>>>>>>>
>>>>>>> (XEN) [2026-11-03 13:54:50.378] MCE: CPU2 bank 25 status 
>>>>>>> 0x8000001fe67e1163
>>>>>>> (XEN) [2026-11-03 13:54:50.378] MCE: CPU2 bank 25 -> 0
>>>>>>> (XEN) [2026-11-03 14:52:20.360] MCE: CPU2 bank 7 status 
>>>>>>> 0x8000000080000000
>>>>>>> (XEN) [2026-11-03 14:52:20.360] MCE: CPU2 bank 7 -> 0
>>>>>>> (XEN) [2026-11-03 20:01:20.264] MCE: CPU2 bank 25 status 
>>>>>>> 0xffff82d04022a8ef
>>>>>>> (XEN) [2026-11-03 20:01:20.264] MCE: CPU2 bank 25 -> 0
>>>>>>> (XEN) [2026-11-05 14:31:19.276] MCE: CPU2 bank 25 status 
>>>>>>> 0x8000001fe67e1163
>>>>>>> (XEN) [2026-11-05 14:31:19.276] MCE: CPU2 bank 25 -> 0
>>>>>>> (XEN) [2026-11-06 11:27:18.812] MCE: CPU2 bank 24 status 
>>>>>>> 0xffff832036a754c0
>>>>>>> (XEN) [2026-11-06 11:27:18.812] MCE: CPU2 bank 24 -> 0
>>>>>>> (XEN) [2026-11-06 18:26:48.671] MCE: CPU2 bank 7 status 
>>>>>>> 0xffff831fe6b154c0
>>>>>>> (XEN) [2026-11-06 18:26:48.671] MCE: CPU2 bank 7 -> 0
>>>>>>> (XEN) [2026-11-07 06:31:48.345] MCE: CPU2 bank 16 status 
>>>>>>> 0xffff8313f11d2010
>>>>>>> (XEN) [2026-11-07 06:31:48.345] MCE: CPU2 bank 16 -> 0
>>>>>>> (XEN) [2026-11-07 09:41:48.243] MCE: CPU2 bank 16 status 
>>>>>>> 0xffffffffffffffff
>>>>>>> (XEN) [2026-11-07 09:41:48.243] MCE: CPU2 bank 16 -> 0
>>>>>>> (XEN) [2026-11-07 21:32:17.875] MCE: CPU2 bank 7 status 
>>>>>>> 0xffff83203a5ea2d0
>>>>>>> (XEN) [2026-11-07 21:32:17.875] MCE: CPU2 bank 7 -> 0
>>>>>>> (XEN) [2026-11-08 06:25:47.633] MCE: CPU2 bank 16 status 
>>>>>>> 0xffffffffffffffff
>>>>>>> (XEN) [2026-11-08 06:25:47.633] MCE: CPU2 bank 16 -> 0
>>>>>>> (XEN) [2026-11-08 15:11:17.390] MCE: CPU2 bank 16 status 
>>>>>>> 0xffff82d040588f80
>>>>>>> (XEN) [2026-11-08 15:11:17.390] MCE: CPU2 bank 16 -> 0
>>>>>>> (XEN) [2026-11-09 07:29:46.980] MCE: CPU2 bank 16 status 
>>>>>>> 0xffffffffffffffff
>>>>>>> (XEN) [2026-11-09 07:29:46.980] MCE: CPU2 bank 16 -> 0
>>>>>>> (XEN) [2026-11-09 10:49:46.880] MCE: CPU2 bank 7 status 
>>>>>>> 0xffffffffffffffff
>>>>>>> (XEN) [2026-11-09 10:49:46.880] MCE: CPU2 bank 7 -> 0
>>>>>>> (XEN) [2026-11-09 13:09:16.822] MCE: CPU2 bank 7 status 
>>>>>>> 0xffffffffffffffff
>>>>>>> (XEN) [2026-11-09 13:09:16.822] MCE: CPU2 bank 7 -> 0
>>>>>> ... this it almost looks as if the first RDMSR is "skipped" 
>>>>>> altogether. The
>>>>>> changed debugging hunk might further confirm that, at which point I 
>>>>>> think
>>>>>> we need to assume that there is some issue with the hardware here 
>>>>>> (which is
>>>>>> already suggested by all instances being confined to CPU2).
>>>>> So the first RDMSR isn't being skipped after all.
>>>>>
>>>>> Still puzzles me that the full hardware replacement in October changed
>>>>> nothing, if this is CPU-specific.
>>>> ... this being pretty much inexplicable (albeit aiui it's still only 
>>>> a single
>>>> system where you observe this), we don't really see what else we can 
>>>> do on
>>>> the software side. You may now want to talk to AMD.
>>>>
>>>> One further thought was raised for the software side, though: Did you 
>>>> ever
>>>> run plain Linux (under comparable load) on this hardware? If not, 
>>>> could you
>>>> maybe try to, to see whether similar artifacts appear there?
>>>
>>> Thank you, Jan -- and thanks to the other maintainers for discussing
>>> this. I really appreciate the time you've put into looking at it.
>>>
>>> Two updates:
>>>
>>> We have now upgraded a second host to 4.20 and see exactly the same
>>> behaviour there: garbage values on the first read, 0 on the re-read,
>>> CPU 2. So it is no longer a single system.
>>>
>>> While searching around, I found several reports that look closely
>>> related, all on Zen 3:
>>>
>>> https://forum.proxmox.com/threads/184025/
>>>   Ryzen 9 5950X, same cpuid (0x00a20f12), same mcgcap (0x11c),
>>>   status values such as 0xffffffffffffffff and 0xffffffff980d9d10,
>>>   with the kernel reporting "Bank 27 is reserved" / "Bank 18 is
>>>   reserved".
>>>
>>> https://github.com/8do-abehn/lab/issues/435
>>>   Three Ryzen 9 5900X hosts. Five events on five different banks, all
>>>   reported as reserved, four of them carrying the identical status
>>>   value 0xffffffff89c0b000, with Error Addr, IPID and Syndrome all
>>>   zero.
>>>
>>> That last one matches what I saw with 0xffff82d04022a8af appearing for
>>> two different banks. In all those cases Linux recognises the bank as
>>> reserved and logs it; it doesn't act on it.
>>>
>>> On your question: we have run plain Debian on this hardware and never
>>> saw any problems there.
>>>
>>> One practical question. Would you consider the re-read hunk acceptable
>>> to keep running in production for now?
> I wouldn't call doing so outright risky, but anything like this cannot
> really be answered without first understanding what's going on. Which ...
>
>>> Peter
>> Right after sending that, I came across a patch on linux-edac from
>> 2026-11-07 that explains the mechanism:
>>
>>    [PATCH] x86/mce/amd: Don't poll unpopulated SMCA banks
>> https://lore.kernel.org/linux-edac/20261107111211.578991-1-zakbrightonknight@xxxxxxxxx/
>>  
> ... we're now a fair bit closer to. Albeit I still don't see why it would
> only ever be CPU2 where this issue is seen. From the description there,
> (at least) all secondary threads should exhibit the same behavior.

I can't find an erratum matching this description in the Revision
Guide.  But that doesn't mean much; AMD are rather slow at keeping their
docs up to date.

It looks suspiciously like the STATUS regs are wired into a bus they
shouldn't be on.  There's clearly some other trigger seeing as it
started after an update.

The fun part is that this is probably a vulnerability.  Your system,
Vermeer, supports encrypted VMs, and we're clearly getting instruction
stream contents amongst other things.

~Andrew



 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.