From mboxrd@z Thu Jan 1 00:00:00 1970 From: Zhenzhong Duan Subject: Bump tmem pool version to 1 to fix restore issue when tmem enabled Date: Tue, 18 Sep 2012 20:07:07 -0700 (PDT) Message-ID: <2c58eb85-429e-4dc6-942b-f59414a6b399@default> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Content-Disposition: inline List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: xen-devel@lists.xen.org Cc: dan.magenheimer@oracle.com, Feng Jin , JBeulich@suse.com, konrad.wilk@oracle.com List-Id: xen-devel@lists.xenproject.org Restore fail when tmem enabled both in hypervisor and guest. This is due to spec version mismatch when restore a pool. Signed-off-by: Zhenzhong Duan --- diff -r d1c3375c3f11 xen/common/tmem.c --- a/xen/common/tmem.c Mon Sep 17 21:12:21 2012 +0100 +++ b/xen/common/tmem.c Wed Sep 19 10:28:05 2012 +0800 @@ -2397,7 +2397,8 @@ break; rc = (pool->persistent ? TMEM_POOL_PERSIST : 0) | (pool->shared ? TMEM_POOL_SHARED : 0) | - (pool->pageshift << TMEM_POOL_PAGESIZE_SHIFT); + (pool->pageshift << TMEM_POOL_PAGESIZE_SHIFT) | + (TMEM_SPEC_VERSION << TMEM_POOL_VERSION_SHIFT); break; case TMEMC_SAVE_GET_POOL_NPAGES: if ( pool == NULL )