WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-devel

[Xen-devel] RE: [Xen-staging] [xen-unstable] [ioemu] Update to qemu 0.90

To: "Alex Williamson" <alex.williamson@xxxxxx>, <xen-devel@xxxxxxxxxxxxxxxxxxx>
Subject: [Xen-devel] RE: [Xen-staging] [xen-unstable] [ioemu] Update to qemu 0.90.
From: "Christian Limpach" <Christian.Limpach@xxxxxxxxxxxxx>
Date: Wed, 9 May 2007 14:16:23 -0700
Delivery-date: Wed, 09 May 2007 14:15:21 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
In-reply-to: <1178730798.6512.14.camel@lappy>
List-help: <mailto:xen-devel-request@lists.xensource.com?subject=help>
List-id: Xen developer discussion <xen-devel.lists.xensource.com>
List-post: <mailto:xen-devel@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=unsubscribe>
References: <200705091318.l49DINUx021283@xxxxxxxxxxxxxxxxxxxxxxx> <1178730798.6512.14.camel@lappy>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
Thread-index: AceSXVwQ0BehVYLdSTKIRUJhTZGIfQAIVBaw
Thread-topic: [Xen-staging] [xen-unstable] [ioemu] Update to qemu 0.90.
> This chunk doesn't build:

Fixed.  Sorry about that.

I'll probably remove all the -timeoffset stuff in the next couple of
days since it doesn't really work, at least not on x86.  And there's
rtc/timeoffset in xenstore which is more flexible, does that work for
ia64?  Or do you need to change timeoffset_get to change the rtc state
in qemu instead of using xc_domain_set_time_offset?

    christian

> 
> > --- a/tools/ioemu/hw/mc146818rtc.c  Wed Jul 12 19:16:10 2006 +0100
> > +++ b/tools/ioemu/hw/mc146818rtc.c  Wed May 09 14:17:15 2007 +0100
> > @@ -403,6 +403,30 @@ void rtc_set_date(RTCState *s, const str
> >      rtc_copy_date(s);
> >  }
> >  
> > +/* PC cmos mappings */
> > +#define REG_IBM_CENTURY_BYTE        0x32
> > +#define REG_IBM_PS2_CENTURY_BYTE    0x37
> > +
> > +void rtc_set_date_from_host(RTCState *s)
> > +{
> > +    time_t ti;
> > +    struct tm *tm;
> > +    int val;
> > +
> > +    /* set the CMOS date */
> > +    time(&ti);
> > +    ti += timeoffset;
> > +    if (rtc_utc)
> > +        tm = gmtime(&ti);
> 
> /home/xenbuild/xen-staging-build/tmp-xen-unstable.hg/tools/ioe
> mu/hw/mc146818rtc.c:418: error: 'timeoffset' undeclared 
> (first use in this function)
> 
> I think the following patch is needed:
> 
> Signed-off-by: Alex Williamson <alex.williamson@xxxxxx>
> ---
> 
> diff -r 8df600f56acd tools/ioemu/hw/mc146818rtc.c
> --- a/tools/ioemu/hw/mc146818rtc.c    Wed May 09 15:31:37 2007 +0100
> +++ b/tools/ioemu/hw/mc146818rtc.c    Wed May 09 10:55:30 2007 -0600
> @@ -412,6 +412,7 @@ void rtc_set_date_from_host(RTCState *s)
>      time_t ti;
>      struct tm *tm;
>      int val;
> +    extern time_t timeoffset;
>  
>      /* set the CMOS date */
>      time(&ti);
> 
> 
> 

_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel

<Prev in Thread] Current Thread [Next in Thread>