From 5183449496ea99d2664daffcb1741e800fc1c9d6 Mon Sep 17 00:00:00 2001 From: Extrems Date: Wed, 24 Mar 2021 13:57:26 -0400 Subject: [PATCH] - Enable CPU power management in hypervisor. --- cube/patches/base/common.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/cube/patches/base/common.h b/cube/patches/base/common.h index b67baa0d..9e4c294a 100644 --- a/cube/patches/base/common.h +++ b/cube/patches/base/common.h @@ -40,7 +40,10 @@ typedef volatile f64 vf64; unsigned long msr; \ asm volatile ("mfmsr %0" : "=r" (msr)); \ asm volatile ("ori %0,%0,0x8000" : "+r" (msr)); \ + asm volatile ("oris %0,%0,0x0004" : "+r" (msr)); \ + asm volatile ("sync"); \ asm volatile ("mtmsr %0" :: "r" (msr)); \ + asm volatile ("isync"); \ }) extern volatile u16 PE[24];