qemu-devel
[Top][All Lists]
Advanced

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

Re: [Qemu-devel] [PATCH v2 1/2] pvpanic: initialization cleanup


From: Laszlo Ersek
Subject: Re: [Qemu-devel] [PATCH v2 1/2] pvpanic: initialization cleanup
Date: Wed, 19 Jun 2013 16:07:27 +0200
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/20130513 Thunderbird/17.0.6

On 06/18/13 15:01, Michael S. Tsirkin wrote:
> Avoid use of static variables: PC systems
> initialize pvpanic device through pvpanic_init,
> so we can simply create the fw_cfg file at that point.
> This also makes it possible to assert if fw_cfg is not there
> rather than skipping the device silently.
> 
> Reviewed-by:  Laszlo Ersek <address@hidden>
> Signed-off-by: Michael S. Tsirkin <address@hidden>
> ---
> 
> Changes from v1:
>     don't assert if !fw_cfg, simply skip fwcfg
> 
>  hw/misc/pvpanic.c | 26 ++++++++++++++------------
>  1 file changed, 14 insertions(+), 12 deletions(-)

Patches look good, however I think you missed to update the 1/2 commit
message completely. You removed the sentence

  Others don't use fw_cfg at all.

but

  This also makes it possible to assert if fw_cfg is not there rather
  than skipping the device silently.

remains, although it's exactly the assert() that's been erased.

Laszlo



reply via email to

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