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> |
44#include <linux/kvm.h> 45#include <sys/ioctl.h> 46#include <sys/stat.h> 47#include <sys/types.h> |
48#include <unistd.h> 49 50#include <cerrno> 51#include <memory> 52 |
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 --- |