vm.cc (11614:29606f000389) | vm.cc (11793:ef606668d247) |
---|---|
1/* 2 * Copyright 2014 Google, Inc. 3 * Copyright (c) 2012, 2015 ARM Limited 4 * All rights reserved 5 * 6 * The license below extends only to copyright in the software and shall 7 * not be construed as granting a license to any other intellectual 8 * property including but not limited to intellectual property relating --- 24 unchanged lines hidden (view full) --- 33 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 34 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 35 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE 36 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 37 * 38 * Authors: Andreas Sandberg 39 */ 40 | 1/* 2 * Copyright 2014 Google, Inc. 3 * Copyright (c) 2012, 2015 ARM Limited 4 * All rights reserved 5 * 6 * The license below extends only to copyright in the software and shall 7 * not be construed as granting a license to any other intellectual 8 * property including but not limited to intellectual property relating --- 24 unchanged lines hidden (view full) --- 33 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 34 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 35 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE 36 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 37 * 38 * Authors: Andreas Sandberg 39 */ 40 |
41#include "cpu/kvm/vm.hh" 42 43#include <fcntl.h> |
|
41#include <linux/kvm.h> 42#include <sys/ioctl.h> 43#include <sys/stat.h> 44#include <sys/types.h> | 44#include <linux/kvm.h> 45#include <sys/ioctl.h> 46#include <sys/stat.h> 47#include <sys/types.h> |
45#include <fcntl.h> | |
46#include <unistd.h> 47 48#include <cerrno> 49#include <memory> 50 | 48#include <unistd.h> 49 50#include <cerrno> 51#include <memory> 52 |
51#include "cpu/kvm/vm.hh" | |
52#include "debug/Kvm.hh" 53#include "params/KvmVM.hh" 54#include "sim/system.hh" 55 56#define EXPECTED_KVM_API_VERSION 12 57 58#if EXPECTED_KVM_API_VERSION != KVM_API_VERSION 59#error Unsupported KVM version --- 517 unchanged lines hidden --- | 53#include "debug/Kvm.hh" 54#include "params/KvmVM.hh" 55#include "sim/system.hh" 56 57#define EXPECTED_KVM_API_VERSION 12 58 59#if EXPECTED_KVM_API_VERSION != KVM_API_VERSION 60#error Unsupported KVM version --- 517 unchanged lines hidden --- |