DM: register pm ops to monitor

Then, acrnctl could send command to monitor module of DM and call
functions defined in pm ops. One example is: acrnctl resume UOS
after UOS enter S3.

Also add general pm.c and move pm related function to this file.

Signed-off-by: Yan Like <like.yan@intel.com>
Signed-off-by: Yin Fengwei <fengwei.yin@intel.com>
Acked-by: Eddie Dong <eddie.dong@intel.com>
This commit is contained in:
Yin Fengwei
2018-07-06 13:24:45 +08:00
committed by lijinxia
parent f576f97ea8
commit a2241d983d
5 changed files with 77 additions and 0 deletions

View File

@@ -33,6 +33,7 @@
#include <pthread.h>
#include <signal.h>
#include <stdbool.h>
#include <pthread.h>
#include "vmmapi.h"
#include "acpi.h"