qemu-devel
[Top][All Lists]
Advanced

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

Re: [Qemu-devel] [PATCH 23/27] pc: ACPI BIOS: implement memory hotplug i


From: Igor Mammedov
Subject: Re: [Qemu-devel] [PATCH 23/27] pc: ACPI BIOS: implement memory hotplug interface
Date: Mon, 25 Nov 2013 15:26:56 +0100

On Mon, 25 Nov 2013 14:42:44 +0100
Paolo Bonzini <address@hidden> wrote:

> Il 21/11/2013 03:38, Igor Mammedov ha scritto:
> > +                // 64-bit math: MAX = MIN + LEN - 1
> > +                Add(MINL, LENL, MAXL)
> > +                Add(MINH, LENH, MAXH)
> > +                If (Or(LLess(MAXL, MINL), LLess(MAXL, LENL))) {
> 
> The Or is not necessary, LLess(MAXL, MINL) is enough.
ok, I'll fix it.

> 
> > +                    Add(MAXH, 1, MAXH)
> 
> One?  (Just for consistency, iasl does it already).
sure

> 
> > +                }
> 
> > +                // Ignore (MAXL == 0 & MAXH == 0) case
> > +                If (LEqual(MAXL, Zero)) {
> > +                    Subtract(MAXH, One, MAXH)
> > +                    Store(0xFFFFFFFF, MAXL)
> > +                } Else {
> > +                    Subtract(MAXL, One, MAXL)
> > +                }
> > +
> 
> Why not this:
> 
>                    If (LLess(MAXL, One)) {
>                        Subtract(MAXH, One, MAXH)
>                    }
>                    Subtract(MAXL, One, MAXL)
I'll try it, thanks!

> 
> Paolo




reply via email to

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