qemu-devel
[Top][All Lists]
Advanced

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

Re: [Qemu-devel] Re: [PATCH] pass info about hpets to seabios.


From: Gleb Natapov
Subject: Re: [Qemu-devel] Re: [PATCH] pass info about hpets to seabios.
Date: Mon, 14 Jun 2010 08:18:28 +0300

On Sun, Jun 13, 2010 at 08:55:23PM +0100, Paul Brook wrote:
> > > And I think we can move the capability setup into init. But this is not
> > > directly related to this patch, would just avoid adding this hunk to
> > > hpet_reset.
> > 
> > I actually did that initially and tried to init hpet_cfg there too, but
> > then noticed that mmio[0].addr below is not initialized at init time yet.
> > 
> > > > +    hpet_cfg.hpet.address = sysbus_from_qdev(d)->mmio[0].addr;
> 
> This is one of the reasons that you're not supposed to be messing with 
> DeviceState contents directly.
> 
Alternatives?

--
                        Gleb.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]