vmm_lapic.h (241766) | vmm_lapic.h (243640) |
---|---|
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; | 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; |
33struct vie; | |
34 35boolean_t lapic_msr(u_int num); 36int lapic_rdmsr(struct vm *vm, int cpu, u_int msr, uint64_t *rval); 37int lapic_wrmsr(struct vm *vm, int cpu, u_int msr, uint64_t wval); 38 | 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 |
39int lapic_mmio(struct vm *vm, int cpu, u_int offset, int rd, struct vie *); | 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); |
40 41int lapic_timer_tick(struct vm *vm, int cpu); 42 43/* 44 * Returns a vector between 32 and 255 if an interrupt is pending in the 45 * IRR that can be delivered based on the current state of ISR and TPR. 46 * 47 * Note that the vector does not automatically transition to the ISR as a --- 22 unchanged lines hidden --- | 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 --- |