From: Wei Yang Date: Thu, 21 Mar 2019 08:25:54 +0000 (+0800) Subject: exec.c: correct the maximum skip value during compact X-Git-Tag: qemu-xen-4.14.0~395^2~24 X-Git-Url: http://xenbits.xensource.com/gitweb?a=commitdiff_plain;h=26ca2075babd7775e246b9eb7da75d6de77eb658;p=qemu-xen.git exec.c: correct the maximum skip value during compact skip is defined with 6 bits. So the maximum value should be (1 << 6). Signed-off-by: Wei Yang Message-Id: <20190321082555.21118-6-richardw.yang@linux.intel.com> Signed-off-by: Paolo Bonzini --- diff --git a/exec.c b/exec.c index d9827ef840..d1969bb894 100644 --- a/exec.c +++ b/exec.c @@ -324,7 +324,7 @@ static void phys_page_compact(PhysPageEntry *lp, Node *nodes) assert(valid_ptr < P_L2_SIZE); /* Don't compress if it won't fit in the # of bits we have. */ - if (lp->skip + p[valid_ptr].skip >= (1 << 3)) { + if (lp->skip + p[valid_ptr].skip >= (1 << 6)) { return; }