]> xenbits.xensource.com Git - xen.git/commitdiff
Fix hvm balloon driver; missed this hunk in last checkin.
authorSteven Hand <steven@xensource.com>
Thu, 5 Apr 2007 07:24:56 +0000 (08:24 +0100)
committerSteven Hand <steven@xensource.com>
Thu, 5 Apr 2007 07:24:56 +0000 (08:24 +0100)
Signed-off-by: Steven Hand <steven@xensource.com>
linux-2.6-xen-sparse/drivers/xen/balloon/balloon.c

index 195f06921a5186f98b7faaa51f6dd1f675a32684..4978ea58dc2472fd03ee625e0b40f76b7dd9ef22 100644 (file)
@@ -276,9 +276,11 @@ static int decrease_reservation(unsigned long nr_pages)
                if (!PageHighMem(page)) {
                        v = phys_to_virt(pfn << PAGE_SHIFT);
                        scrub_pages(v, 1);
+#ifdef CONFIG_XEN
                        ret = HYPERVISOR_update_va_mapping(
                                (unsigned long)v, __pte_ma(0), 0);
                        BUG_ON(ret);
+#endif
                }
 #ifdef CONFIG_XEN_SCRUB_PAGES
                else {