kvm.c (0f0b43868a566068fc137632fd51bd3cbb23f350) | kvm.c (038adc2f5850e32019bda06c559d0301be436eae) |
---|---|
1/* 2 * PowerPC implementation of KVM hooks 3 * 4 * Copyright IBM Corp. 2007 5 * Copyright (C) 2011 Freescale Semiconductor, Inc. 6 * 7 * Authors: 8 * Jerone Young <jyoung5@us.ibm.com> --- 397 unchanged lines hidden (view full) --- 406 /* 407 * Mostly what guest pagesizes we can use are related to the 408 * host pages used to map guest RAM, which is handled in the 409 * platform code. Cache-Inhibited largepages (64k) however are 410 * used for I/O, so if they're mapped to the host at all it 411 * will be a normal mapping, not a special hugepage one used 412 * for RAM. 413 */ | 1/* 2 * PowerPC implementation of KVM hooks 3 * 4 * Copyright IBM Corp. 2007 5 * Copyright (C) 2011 Freescale Semiconductor, Inc. 6 * 7 * Authors: 8 * Jerone Young <jyoung5@us.ibm.com> --- 397 unchanged lines hidden (view full) --- 406 /* 407 * Mostly what guest pagesizes we can use are related to the 408 * host pages used to map guest RAM, which is handled in the 409 * platform code. Cache-Inhibited largepages (64k) however are 410 * used for I/O, so if they're mapped to the host at all it 411 * will be a normal mapping, not a special hugepage one used 412 * for RAM. 413 */ |
414 if (getpagesize() < 0x10000) { | 414 if (qemu_real_host_page_size < 0x10000) { |
415 error_setg(errp, 416 "KVM can't supply 64kiB CI pages, which guest expects"); 417 } 418 } 419} 420#endif /* !defined (TARGET_PPC64) */ 421 422unsigned long kvm_arch_vcpu_id(CPUState *cpu) --- 2475 unchanged lines hidden --- | 415 error_setg(errp, 416 "KVM can't supply 64kiB CI pages, which guest expects"); 417 } 418 } 419} 420#endif /* !defined (TARGET_PPC64) */ 421 422unsigned long kvm_arch_vcpu_id(CPUState *cpu) --- 2475 unchanged lines hidden --- |