Deleted Added
full compact
svm_softc.h (271662) svm_softc.h (271939)
1/*-
2 * Copyright (c) 2013 Anish Gupta (akgupt3@gmail.com)
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 * IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
19 * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
20 * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
21 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
22 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
23 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
24 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
25 *
1/*-
2 * Copyright (c) 2013 Anish Gupta (akgupt3@gmail.com)
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 * IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
19 * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
20 * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
21 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
22 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
23 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
24 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
25 *
26 * $FreeBSD: projects/bhyve_svm/sys/amd64/vmm/amd/svm_softc.h 271662 2014-09-16 04:01:55Z neel $
26 * $FreeBSD: projects/bhyve_svm/sys/amd64/vmm/amd/svm_softc.h 271939 2014-09-21 23:42:54Z neel $
27 */
28
29#ifndef _SVM_SOFTC_H_
30#define _SVM_SOFTC_H_
31
32#define SVM_IO_BITMAP_SIZE (3 * PAGE_SIZE)
33#define SVM_MSR_BITMAP_SIZE (2 * PAGE_SIZE)
34

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

111
112static __inline struct svm_regctx *
113svm_get_guest_regctx(struct svm_softc *sc, int vcpu)
114{
115
116 return (&(sc->vcpu[vcpu].swctx));
117}
118
27 */
28
29#ifndef _SVM_SOFTC_H_
30#define _SVM_SOFTC_H_
31
32#define SVM_IO_BITMAP_SIZE (3 * PAGE_SIZE)
33#define SVM_MSR_BITMAP_SIZE (2 * PAGE_SIZE)
34

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

111
112static __inline struct svm_regctx *
113svm_get_guest_regctx(struct svm_softc *sc, int vcpu)
114{
115
116 return (&(sc->vcpu[vcpu].swctx));
117}
118
119void svm_dump_vmcb(struct svm_softc *svm_sc, int vcpu);
119static __inline void
120svm_set_dirty(struct svm_softc *sc, int vcpu, uint32_t dirtybits)
121{
122 struct svm_vcpu *vcpustate;
123
124 vcpustate = svm_get_vcpu(sc, vcpu);
125
126 vcpustate->dirty |= dirtybits;
127}
128
120#endif /* _SVM_SOFTC_H_ */
129#endif /* _SVM_SOFTC_H_ */