diff options
author | Zhenzhong Duan <zhenzhong.duan@oracle.com> | 2012-09-19 17:38:47 +0200 |
---|---|---|
committer | Zhenzhong Duan <zhenzhong.duan@oracle.com> | 2012-09-19 17:38:47 +0200 |
commit | 367f6be33cfd9e6c91410c7d60ce0c0c7c44723f (patch) | |
tree | f16848d549a203bfca83508ece8c2240afdf63f4 /xen/common/tmem.c | |
parent | 35a82b2f805666f8c5880dd4a5219690a0a54822 (diff) | |
download | xen-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.c | 3 |
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 ) |