All of lore.kernel.org
 help / color / mirror / Atom feed
From: Christoph Egger <Christoph.Egger@amd.com>
To: Jan Beulich <JBeulich@suse.com>
Cc: xen-devel <xen-devel@lists.xen.org>
Subject: Re: RTC patch
Date: Wed, 22 Aug 2012 17:01:44 +0200	[thread overview]
Message-ID: <5034F458.2090609@amd.com> (raw)
In-Reply-To: <50350D1F0200007800096F9C@nat28.tlf.novell.com>

On 08/22/12 16:47, Jan Beulich wrote:

>>>> On 22.08.12 at 12:48, Christoph Egger <Christoph.Egger@amd.com> wrote:
>> On 08/21/12 15:57, Jan Beulich wrote:
>>
>>>>>> On 21.08.12 at 15:28, Christoph Egger <Christoph.Egger@amd.com> wrote:
>>>> On 08/20/12 13:06, Jan Beulich wrote:
>>>>
>>>>>>>> On 20.08.12 at 11:17, Ian Campbell <Ian.Campbell@citrix.com> wrote:
>>>>>>     * fix high change rate to CMOS RTC periodic interrupt causing
>>>>>>       guest wall clock time to lag (possible fix outlined, needs to be
>>>>>>       put in patch form and thoroughly reviewed/tested for unwanted
>>>>>>       side effects, Jan Beulich)
>>>>>
>>>>> Patch was posted, but no comments or approval to commit so far.
>>>>> Also, reportedly the patch only improves the situation, it doesn't
>>>>> completely eliminate the problem. For the moment I'm out of ideas,
>>>>> though, and hence would hope some others could help here.
>>>>
>>>>
>>>> Can you point me to the patch (or resend it to me), please?
>>>> I have some trouble with getting XP Mode in Windows 7 (nested
>>>> virtualization) booting and figured out it uses the RTC.
>>>> I want to give this patch a try.
>>>
>>> http://lists.xen.org/archives/html/xen-devel/2012-08/msg01303.html 
>>
>> When booting Windows 7 I get a crash due to a NULL pointer dereference
>> in xen/common/spinlock.c:45.
>> It looks like the spin lock is not initialized.
> 
> I rather think NULL gets passed from pt_update_irq() to
> rtc_periodic_interrupt(). Yet rtc.c's sole call to
> create_periodic_time() clearly passes non-NULL. Oh,
> hpet_set_timer() can pass a literal 8 (which I didn't spot
> grepping for RTC_IRQ) - could you refine the check in
> pt_update_irq()
> 
>     else if ( irq == RTC_IRQ )
> 
> to read
> 
>     else if ( irq == RTC_IRQ && pt_priv )

Yes, Windows 7 boots with this change.

Christoph


-- 
---to satisfy European Law for business letters:
Advanced Micro Devices GmbH
Einsteinring 24, 85689 Dornach b. Muenchen
Geschaeftsfuehrer: Alberto Bozzo
Sitz: Dornach, Gemeinde Aschheim, Landkreis Muenchen
Registergericht Muenchen, HRB Nr. 43632

  reply	other threads:[~2012-08-22 15:01 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-08-20  9:17 Xen 4.2 TODO / Release Plan Ian Campbell
2012-08-20 11:06 ` Jan Beulich
     [not found]   ` <50338D02.8050009@amd.com>
     [not found]     ` <5033B0070200007800096B4D@nat28.tlf.novell.com>
     [not found]       ` <5034B907.7020506@amd.com>
2012-08-22 14:47         ` RTC patch Jan Beulich
2012-08-22 15:01           ` Christoph Egger [this message]
2012-08-22 15:13             ` Jan Beulich
2012-08-21 15:14 ` Xen 4.2 TODO / Release Plan Ren, Yongjie
2012-08-21 15:27   ` Ian Campbell
2012-08-21 15:49     ` Ren, Yongjie
2012-08-21 15:39 ` Ben Guthro
2012-08-21 16:08   ` Jan Beulich

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=5034F458.2090609@amd.com \
    --to=christoph.egger@amd.com \
    --cc=JBeulich@suse.com \
    --cc=xen-devel@lists.xen.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.