2018-04-04 14:29:46 +08:00
|
|
|
/*
|
|
|
|
* Copyright (C) 2018 Intel Corporation. All rights reserved.
|
|
|
|
*
|
2018-05-26 01:49:13 +08:00
|
|
|
* SPDX-License-Identifier: BSD-3-Clause
|
2018-04-04 14:29:46 +08:00
|
|
|
*/
|
|
|
|
|
2018-06-14 21:07:26 +08:00
|
|
|
#ifndef GUEST_PM_H
|
|
|
|
#define GUEST_PM_H
|
2018-04-04 14:29:46 +08:00
|
|
|
|
2018-04-05 19:58:40 +08:00
|
|
|
void vm_setup_cpu_state(struct vm *vm);
|
2018-06-08 09:28:48 +08:00
|
|
|
int vm_load_pm_s_state(struct vm *vm);
|
2018-10-18 16:18:45 +08:00
|
|
|
int validate_pstate(const struct vm *vm, uint64_t perf_ctl);
|
2018-06-14 22:25:40 +08:00
|
|
|
void register_pm1ab_handler(struct vm *vm);
|
2018-04-04 14:29:46 +08:00
|
|
|
|
2018-04-17 12:12:33 +08:00
|
|
|
#endif /* PM_H */
|