2 * Copyright (c) 2011 NetApp, Inc.
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions
8 * 1. Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer.
10 * 2. Redistributions in binary form must reproduce the above copyright
11 * notice, this list of conditions and the following disclaimer in the
12 * documentation and/or other materials provided with the distribution.
14 * THIS SOFTWARE IS PROVIDED BY NETAPP, INC ``AS IS'' AND
15 * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
16 * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
17 * ARE DISCLAIMED. IN NO EVENT SHALL NETAPP, INC OR CONTRIBUTORS BE LIABLE
18 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
19 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
20 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
21 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
22 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
23 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
29 #include <sys/cdefs.h>
30 __FBSDID("$FreeBSD$");
32 #include <sys/param.h>
33 #include <sys/systm.h>
34 #include <sys/errno.h>
37 #include <machine/vmm.h>
44 printf("amdv_init: not implemented\n");
52 printf("amdv_cleanup: not implemented\n");
57 amdv_vminit(struct vm *vm, struct pmap *pmap)
60 printf("amdv_vminit: not implemented\n");
65 amdv_vmrun(void *arg, int vcpu, register_t rip, struct pmap *pmap)
68 printf("amdv_vmrun: not implemented\n");
73 amdv_vmcleanup(void *arg)
76 printf("amdv_vmcleanup: not implemented\n");
81 amdv_getreg(void *arg, int vcpu, int regnum, uint64_t *retval)
84 printf("amdv_getreg: not implemented\n");
89 amdv_setreg(void *arg, int vcpu, int regnum, uint64_t val)
92 printf("amdv_setreg: not implemented\n");
97 amdv_getdesc(void *vmi, int vcpu, int num, struct seg_desc *desc)
100 printf("amdv_get_desc: not implemented\n");
105 amdv_setdesc(void *vmi, int vcpu, int num, struct seg_desc *desc)
108 printf("amdv_get_desc: not implemented\n");
113 amdv_inject_event(void *vmi, int vcpu, int type, int vector,
114 uint32_t error_code, int error_code_valid)
117 printf("amdv_inject_event: not implemented\n");
122 amdv_getcap(void *arg, int vcpu, int type, int *retval)
125 printf("amdv_getcap: not implemented\n");
130 amdv_setcap(void *arg, int vcpu, int type, int val)
133 printf("amdv_setcap: not implemented\n");
137 static struct vmspace *
138 amdv_vmspace_alloc(vm_offset_t min, vm_offset_t max)
141 printf("amdv_vmspace_alloc: not implemented\n");
146 amdv_vmspace_free(struct vmspace *vmspace)
149 printf("amdv_vmspace_free: not implemented\n");
153 struct vmm_ops vmm_ops_amd = {
174 printf("amd_iommu_init: not implemented\n");
179 amd_iommu_cleanup(void)
182 printf("amd_iommu_cleanup: not implemented\n");
186 amd_iommu_enable(void)
189 printf("amd_iommu_enable: not implemented\n");
193 amd_iommu_disable(void)
196 printf("amd_iommu_disable: not implemented\n");
200 amd_iommu_create_domain(vm_paddr_t maxaddr)
203 printf("amd_iommu_create_domain: not implemented\n");
208 amd_iommu_destroy_domain(void *domain)
211 printf("amd_iommu_destroy_domain: not implemented\n");
215 amd_iommu_create_mapping(void *domain, vm_paddr_t gpa, vm_paddr_t hpa,
219 printf("amd_iommu_create_mapping: not implemented\n");
224 amd_iommu_remove_mapping(void *domain, vm_paddr_t gpa, uint64_t len)
227 printf("amd_iommu_remove_mapping: not implemented\n");
232 amd_iommu_add_device(void *domain, int bus, int slot, int func)
235 printf("amd_iommu_add_device: not implemented\n");
239 amd_iommu_remove_device(void *domain, int bus, int slot, int func)
242 printf("amd_iommu_remove_device: not implemented\n");
246 amd_iommu_invalidate_tlb(void *domain)
249 printf("amd_iommu_invalidate_tlb: not implemented\n");
252 struct iommu_ops iommu_ops_amd = {
257 amd_iommu_create_domain,
258 amd_iommu_destroy_domain,
259 amd_iommu_create_mapping,
260 amd_iommu_remove_mapping,
261 amd_iommu_add_device,
262 amd_iommu_remove_device,
263 amd_iommu_invalidate_tlb,