1/*- 2 * Copyright (c) 2011 NetApp, Inc. 3 * All rights reserved. 4 * 5 * Redistribution and use in source and binary forms, with or without 6 * modification, are permitted provided that the following conditions 7 * are met: 8 * 1. Redistributions of source code must retain the above copyright --- 16 unchanged lines hidden (view full) --- 25 * 26 * $FreeBSD$ 27 */ 28 29#ifndef _VMM_LAPIC_H_ 30#define _VMM_LAPIC_H_ 31 32struct vm; |
33 34boolean_t lapic_msr(u_int num); 35int lapic_rdmsr(struct vm *vm, int cpu, u_int msr, uint64_t *rval); 36int lapic_wrmsr(struct vm *vm, int cpu, u_int msr, uint64_t wval); 37 |
38int lapic_mmio_read(void *vm, int cpu, uint64_t gpa, 39 uint64_t *rval, int size, void *arg); 40int lapic_mmio_write(void *vm, int cpu, uint64_t gpa, 41 uint64_t wval, int size, void *arg); |
42 43int lapic_timer_tick(struct vm *vm, int cpu); 44 45/* 46 * Returns a vector between 32 and 255 if an interrupt is pending in the 47 * IRR that can be delivered based on the current state of ISR and TPR. 48 * 49 * Note that the vector does not automatically transition to the ISR as a --- 22 unchanged lines hidden --- |