2012-12-24 15:36:14 +04:00
|
|
|
#ifndef __CR_CPU_H__
|
|
|
|
#define __CR_CPU_H__
|
2012-12-21 17:35:34 +04:00
|
|
|
|
2013-02-18 17:54:49 +04:00
|
|
|
#include "asm/cpu.h"
|
2012-12-21 17:35:34 +04:00
|
|
|
|
|
|
|
extern bool cpu_has_feature(unsigned int feature);
|
|
|
|
extern int cpu_init(void);
|
cpuinfo: x86 -- Add dump and validation of cpuinfo image, v2
On Wed, Oct 01, 2014 at 04:57:40PM +0400, Pavel Emelyanov wrote:
> On 10/01/2014 01:07 AM, Cyrill Gorcunov wrote:
> > On Tue, Sep 30, 2014 at 09:18:53PM +0400, Cyrill Gorcunov wrote:
> >> If a user requested criu to dump cpuinfo image then we
> >> write one on dump and verify on restore. At the moment
> >> we require all cpu feature bits to match the destination
> >> cpu in a sake of simplicity, but in future we need deps
> >> engine which would filer out bits and test if cpu we're
> >> restoring on is more capable than one we were dumping at
> >> allowing to proceed restore procedure.
> >>
> >> Signed-off-by: Cyrill Gorcunov <gorcunov@openvz.org>
> >
> > Updated to new img format
Something like attached?
>From 59272a9514311e6736cddee08d5f88aa95d49189 Mon Sep 17 00:00:00 2001
From: Cyrill Gorcunov <gorcunov@openvz.org>
Date: Thu, 25 Sep 2014 16:04:10 +0400
Subject: [PATCH] cpuinfo: x86 -- Add dump and validation of cpuinfo image
If a user requested criu to dump cpuinfo image then we
write one on dump and verify on restore. At the moment
we require all cpu feature bits to match the destination
cpu in a sake of simplicity, but in future we need deps
engine which would filer out bits and test if cpu we're
restoring on is more capable than one we were dumping at
allowing to proceed restore procedure.
Signed-off-by: Cyrill Gorcunov <gorcunov@openvz.org>
Signed-off-by: Pavel Emelyanov <xemul@parallels.com>
2014-10-01 17:53:50 +04:00
|
|
|
extern int cpu_dump_cpuinfo(void);
|
|
|
|
extern int cpu_validate_cpuinfo(void);
|
2014-10-01 18:56:41 +04:00
|
|
|
extern int cpuinfo_dump(void);
|
|
|
|
extern int cpuinfo_check(void);
|
2012-12-21 17:35:34 +04:00
|
|
|
|
2012-12-25 22:40:24 +04:00
|
|
|
#endif /* __CR_CPU_H__ */
|