Linux Audio

Check our new training course

Loading...
v6.9.4
 1/* SPDX-License-Identifier: GPL-2.0-or-later */
 2/*
 3 * Hypervisor Maintenance Interrupt header file.
 4 *
 
 
 
 
 
 
 
 
 
 
 
 
 
 5 * Copyright 2015 IBM Corporation
 6 * Author: Mahesh Salgaonkar <mahesh@linux.vnet.ibm.com>
 7 */
 8
 9#ifndef __ASM_PPC64_HMI_H__
10#define __ASM_PPC64_HMI_H__
11
12#ifdef CONFIG_KVM_BOOK3S_HV_POSSIBLE
13
14#define	CORE_TB_RESYNC_REQ_BIT		63
15#define MAX_SUBCORE_PER_CORE		4
16
17/*
18 * sibling_subcore_state structure is used to co-ordinate all threads
19 * during HMI to avoid TB corruption. This structure is allocated once
20 * per each core and shared by all threads on that core.
21 */
22struct sibling_subcore_state {
23	unsigned long	flags;
24	u8		in_guest[MAX_SUBCORE_PER_CORE];
25};
26
27extern void wait_for_subcore_guest_exit(void);
28extern void wait_for_tb_resync(void);
29#else
30static inline void wait_for_subcore_guest_exit(void) { }
31static inline void wait_for_tb_resync(void) { }
32#endif
33
34struct pt_regs;
35extern long hmi_handle_debugtrig(struct pt_regs *regs);
36
37#endif /* __ASM_PPC64_HMI_H__ */
v4.10.11
 
 1/*
 2 * Hypervisor Maintenance Interrupt header file.
 3 *
 4 * This program is free software; you can redistribute it and/or modify
 5 * it under the terms of the GNU General Public License as published by
 6 * the Free Software Foundation; either version 2 of the License, or
 7 * (at your option) any later version.
 8 *
 9 * This program is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
12 * GNU General Public License for more details.
13 *
14 * You should have received a copy of the GNU General Public License
15 * along with this program.
16 *
17 * Copyright 2015 IBM Corporation
18 * Author: Mahesh Salgaonkar <mahesh@linux.vnet.ibm.com>
19 */
20
21#ifndef __ASM_PPC64_HMI_H__
22#define __ASM_PPC64_HMI_H__
23
24#ifdef CONFIG_KVM_BOOK3S_HV_POSSIBLE
25
26#define	CORE_TB_RESYNC_REQ_BIT		63
27#define MAX_SUBCORE_PER_CORE		4
28
29/*
30 * sibling_subcore_state structure is used to co-ordinate all threads
31 * during HMI to avoid TB corruption. This structure is allocated once
32 * per each core and shared by all threads on that core.
33 */
34struct sibling_subcore_state {
35	unsigned long	flags;
36	u8		in_guest[MAX_SUBCORE_PER_CORE];
37};
38
39extern void wait_for_subcore_guest_exit(void);
40extern void wait_for_tb_resync(void);
41#else
42static inline void wait_for_subcore_guest_exit(void) { }
43static inline void wait_for_tb_resync(void) { }
44#endif
 
 
 
 
45#endif /* __ASM_PPC64_HMI_H__ */