vmm.c (bd8572e0bea40093c0be13d9544328644cbc7376) vmm.c (b01c2033255e5b9ca1981311d44d6955760cd7bc)
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

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

46#include <vm/vm.h>
47
48#include <machine/vm.h>
49#include <machine/pcb.h>
50#include <machine/smp.h>
51#include <x86/apicreg.h>
52
53#include <machine/vmm.h>
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

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

46#include <vm/vm.h>
47
48#include <machine/vm.h>
49#include <machine/pcb.h>
50#include <machine/smp.h>
51#include <x86/apicreg.h>
52
53#include <machine/vmm.h>
54#include "vmm_host.h"
54#include "vmm_mem.h"
55#include "vmm_util.h"
56#include <machine/vmm_dev.h>
57#include "vlapic.h"
58#include "vmm_msr.h"
59#include "vmm_ipi.h"
60#include "vmm_stat.h"
61#include "vmm_lapic.h"

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

191 return (&vcpu->exitinfo);
192}
193
194static int
195vmm_init(void)
196{
197 int error;
198
55#include "vmm_mem.h"
56#include "vmm_util.h"
57#include <machine/vmm_dev.h>
58#include "vlapic.h"
59#include "vmm_msr.h"
60#include "vmm_ipi.h"
61#include "vmm_stat.h"
62#include "vmm_lapic.h"

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

192 return (&vcpu->exitinfo);
193}
194
195static int
196vmm_init(void)
197{
198 int error;
199
200 vmm_host_state_init();
199 vmm_ipi_init();
200
201 error = vmm_mem_init();
202 if (error)
203 return (error);
204
205 if (vmm_is_intel())
206 ops = &vmm_ops_intel;

--- 814 unchanged lines hidden ---
201 vmm_ipi_init();
202
203 error = vmm_mem_init();
204 if (error)
205 return (error);
206
207 if (vmm_is_intel())
208 ops = &vmm_ops_intel;

--- 814 unchanged lines hidden ---