Reported-by: Luis Aranguren <pizzaman@hotmail.com>
Signed-off-by: Karel Zak <kzak@redhat.com>
#endif
static void
-read_hypervisor(struct lscpu_desc *desc)
+read_hypervisor(struct lscpu_desc *desc, struct lscpu_modifier *mod)
{
- read_hypervisor_cpuid(desc);
+ if (mod->system != SYSTEM_SNAPSHOT)
+ read_hypervisor_cpuid(desc);
if (desc->hyper)
/* hvm */
sizeof(struct cpu_cache), cachecmp);
read_nodes(desc);
- read_hypervisor(desc);
+ read_hypervisor(desc, mod);
switch(mod->mode) {
case OUTPUT_SUMMARY: