vm.cc (10859:0ba6f47025d1) | vm.cc (10860:cba0f26038b4) |
---|---|
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 --- 506 unchanged lines hidden (view full) --- 515} 516 517long 518KvmVM::allocVCPUID() 519{ 520 return nextVCPUID++; 521} 522 | 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 --- 506 unchanged lines hidden (view full) --- 515} 516 517long 518KvmVM::allocVCPUID() 519{ 520 return nextVCPUID++; 521} 522 |
523#if defined(__aarch64__) 524void 525KvmVM::kvmArmPreferredTarget(struct kvm_vcpu_init &target) const 526{ 527 if (ioctl(KVM_ARM_PREFERRED_TARGET, &target) == -1) { 528 panic("KVM: Failed to get ARM preferred CPU target (errno: %i)\n", 529 errno); 530 } 531} 532#endif 533 |
|
523int 524KvmVM::ioctl(int request, long p1) const 525{ 526 assert(vmFD != -1); 527 528 return ::ioctl(vmFD, request, p1); 529} 530 --- 12 unchanged lines hidden --- | 534int 535KvmVM::ioctl(int request, long p1) const 536{ 537 assert(vmFD != -1); 538 539 return ::ioctl(vmFD, request, p1); 540} 541 --- 12 unchanged lines hidden --- |