aboutsummaryrefslogtreecommitdiffstats
path: root/xen/common/tmem.c
diff options
context:
space:
mode:
authorZhenzhong Duan <zhenzhong.duan@oracle.com>2012-09-19 17:38:47 +0200
committerZhenzhong Duan <zhenzhong.duan@oracle.com>2012-09-19 17:38:47 +0200
commit367f6be33cfd9e6c91410c7d60ce0c0c7c44723f (patch)
treef16848d549a203bfca83508ece8c2240afdf63f4 /xen/common/tmem.c
parent35a82b2f805666f8c5880dd4a5219690a0a54822 (diff)
downloadxen-367f6be33cfd9e6c91410c7d60ce0c0c7c44723f.tar.gz
xen-367f6be33cfd9e6c91410c7d60ce0c0c7c44723f.tar.bz2
xen-367f6be33cfd9e6c91410c7d60ce0c0c7c44723f.zip
tmem: bump pool version to 1 to fix restore issue when tmem enabled
Restore fails when tmem is enabled both in hypervisor and guest. This is due to spec version mismatch when restoring a pool. Signed-off-by: Zhenzhong Duan <zhenzhong.duan@oracle.com> Acked-by: Dan Magenheimer <dan.magenheimer@oracle.com> Committed-by: Jan Beulich <jbeulich@suse.com>
Diffstat (limited to 'xen/common/tmem.c')
-rw-r--r--xen/common/tmem.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/xen/common/tmem.c b/xen/common/tmem.c
index f4812b911c..ed322b68de 100644
--- a/xen/common/tmem.c
+++ b/xen/common/tmem.c
@@ -2397,7 +2397,8 @@ static NOINLINE int tmemc_save_subop(int cli_id, uint32_t pool_id,
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 )