Deleted Added
full compact
amdv.c (261275) amdv.c (266339)
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

--- 9 unchanged lines hidden (view full) ---

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
24 * SUCH DAMAGE.
25 *
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

--- 9 unchanged lines hidden (view full) ---

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
24 * SUCH DAMAGE.
25 *
26 * $FreeBSD: stable/10/sys/amd64/vmm/amd/amdv.c 261275 2014-01-29 21:23:37Z jhb $
26 * $FreeBSD: stable/10/sys/amd64/vmm/amd/amdv.c 266339 2014-05-17 19:11:08Z jhb $
27 */
28
29#include <sys/cdefs.h>
27 */
28
29#include <sys/cdefs.h>
30__FBSDID("$FreeBSD: stable/10/sys/amd64/vmm/amd/amdv.c 261275 2014-01-29 21:23:37Z jhb $");
30__FBSDID("$FreeBSD: stable/10/sys/amd64/vmm/amd/amdv.c 266339 2014-05-17 19:11:08Z jhb $");
31
32#include <sys/param.h>
33#include <sys/systm.h>
34#include <sys/errno.h>
35#include <sys/smp.h>
36
37#include <machine/vmm.h>
38#include "io/iommu.h"
39
40static int
31
32#include <sys/param.h>
33#include <sys/systm.h>
34#include <sys/errno.h>
35#include <sys/smp.h>
36
37#include <machine/vmm.h>
38#include "io/iommu.h"
39
40static int
41amdv_init(void)
41amdv_init(int ipinum)
42{
43
44 printf("amdv_init: not implemented\n");
45 return (ENXIO);
46}
47
48static int
49amdv_cleanup(void)

--- 12 unchanged lines hidden (view full) ---

62amdv_vminit(struct vm *vm, struct pmap *pmap)
63{
64
65 printf("amdv_vminit: not implemented\n");
66 return (NULL);
67}
68
69static int
42{
43
44 printf("amdv_init: not implemented\n");
45 return (ENXIO);
46}
47
48static int
49amdv_cleanup(void)

--- 12 unchanged lines hidden (view full) ---

62amdv_vminit(struct vm *vm, struct pmap *pmap)
63{
64
65 printf("amdv_vminit: not implemented\n");
66 return (NULL);
67}
68
69static int
70amdv_vmrun(void *arg, int vcpu, register_t rip, struct pmap *pmap)
70amdv_vmrun(void *arg, int vcpu, register_t rip, struct pmap *pmap, void *cookie)
71{
72
73 printf("amdv_vmrun: not implemented\n");
74 return (ENXIO);
75}
76
77static void
78amdv_vmcleanup(void *arg)

--- 71 unchanged lines hidden (view full) ---

150static void
151amdv_vmspace_free(struct vmspace *vmspace)
152{
153
154 printf("amdv_vmspace_free: not implemented\n");
155 return;
156}
157
71{
72
73 printf("amdv_vmrun: not implemented\n");
74 return (ENXIO);
75}
76
77static void
78amdv_vmcleanup(void *arg)

--- 71 unchanged lines hidden (view full) ---

150static void
151amdv_vmspace_free(struct vmspace *vmspace)
152{
153
154 printf("amdv_vmspace_free: not implemented\n");
155 return;
156}
157
158static struct vlapic *
159amdv_vlapic_init(void *arg, int vcpuid)
160{
161
162 panic("amdv_vlapic_init: not implmented");
163}
164
165static void
166amdv_vlapic_cleanup(void *arg, struct vlapic *vlapic)
167{
168
169 panic("amdv_vlapic_cleanup: not implemented");
170}
171
158struct vmm_ops vmm_ops_amd = {
159 amdv_init,
160 amdv_cleanup,
161 amdv_resume,
162 amdv_vminit,
163 amdv_vmrun,
164 amdv_vmcleanup,
165 amdv_getreg,
166 amdv_setreg,
167 amdv_getdesc,
168 amdv_setdesc,
169 amdv_inject_event,
170 amdv_getcap,
171 amdv_setcap,
172 amdv_vmspace_alloc,
173 amdv_vmspace_free,
172struct vmm_ops vmm_ops_amd = {
173 amdv_init,
174 amdv_cleanup,
175 amdv_resume,
176 amdv_vminit,
177 amdv_vmrun,
178 amdv_vmcleanup,
179 amdv_getreg,
180 amdv_setreg,
181 amdv_getdesc,
182 amdv_setdesc,
183 amdv_inject_event,
184 amdv_getcap,
185 amdv_setcap,
186 amdv_vmspace_alloc,
187 amdv_vmspace_free,
188 amdv_vlapic_init,
189 amdv_vlapic_cleanup,
174};
175
176static int
177amd_iommu_init(void)
178{
179
180 printf("amd_iommu_init: not implemented\n");
181 return (ENXIO);

--- 89 unchanged lines hidden ---
190};
191
192static int
193amd_iommu_init(void)
194{
195
196 printf("amd_iommu_init: not implemented\n");
197 return (ENXIO);

--- 89 unchanged lines hidden ---