power: create guest channel public header file

In preparation for making the header file public, we first rename
channel_commands.h as rte_power_guest_channel.h.

Fixes: 210c383e24 ("power: packet format for vm power management")
Fixes: cd0d5547e8 ("power: vm communication channels in guest")
Cc: stable@dpdk.org

Signed-off-by: Bruce Richardson <bruce.richardson@intel.com>
Signed-off-by: David Hunt <david.hunt@intel.com>
This commit is contained in:
Bruce Richardson 2021-01-21 17:21:56 +00:00 committed by Thomas Monjalon
parent 95bb247702
commit 5f443cc0f9
9 changed files with 12 additions and 13 deletions

View File

@ -27,7 +27,7 @@
#include <libvirt/libvirt.h>
#include "channel_manager.h"
#include "channel_commands.h"
#include "rte_power_guest_channel.h"
#include "channel_monitor.h"
#include "power_manager.h"

View File

@ -35,7 +35,7 @@
#include <libvirt/libvirt.h>
#include "channel_monitor.h"
#include "channel_commands.h"
#include "rte_power_guest_channel.h"
#include "channel_manager.h"
#include "power_manager.h"
#include "oob_monitor.h"

View File

@ -6,7 +6,7 @@
#define CHANNEL_MONITOR_H_
#include "channel_manager.h"
#include "channel_commands.h"
#include "rte_power_guest_channel.h"
struct core_share {
unsigned int pcpu;

View File

@ -9,7 +9,7 @@
extern "C" {
#endif
#include "channel_commands.h"
#include "rte_power_guest_channel.h"
struct channel_packet *get_policy(void);

View File

@ -21,7 +21,7 @@
#include "channel_manager.h"
#include "channel_monitor.h"
#include "power_manager.h"
#include "channel_commands.h"
#include "rte_power_guest_channel.h"
struct cmd_quit_result {
cmdline_fixed_string_t quit;

View File

@ -17,7 +17,7 @@
#include <rte_log.h>
#include "guest_channel.h"
#include "channel_commands.h"
#include "rte_power_guest_channel.h"
#define RTE_LOGTYPE_GUEST_CHANNEL RTE_LOGTYPE_USER1

View File

@ -8,7 +8,7 @@
extern "C" {
#endif
#include <channel_commands.h>
#include <rte_power_guest_channel.h>
/**
* Check if any Virtio-Serial VM end-points exist in path.

View File

@ -7,7 +7,7 @@
#include <rte_log.h>
#include "guest_channel.h"
#include "channel_commands.h"
#include "rte_power_guest_channel.h"
#include "power_kvm_vm.h"
#include "power_common.h"

View File

@ -1,9 +1,8 @@
/* SPDX-License-Identifier: BSD-3-Clause
* Copyright(c) 2010-2014 Intel Corporation
* Copyright(c) 2010-2021 Intel Corporation
*/
#ifndef CHANNEL_COMMANDS_H_
#define CHANNEL_COMMANDS_H_
#ifndef RTE_POWER_GUEST_CHANNEL_H
#define RTE_POWER_GUEST_CHANNEL_H
#ifdef __cplusplus
extern "C" {
@ -122,4 +121,4 @@ struct channel_packet_caps_list {
}
#endif
#endif /* CHANNEL_COMMANDS_H_ */
#endif /* RTE_POWER_GUEST_CHANNEL_H_ */