powerpc.c (a02001086bbfb4da35d1228bebc2f1b442db455f) | powerpc.c (c17b98cf6028704e1f953d6a25ed6140425ccfd0) |
---|---|
1/* 2 * This program is free software; you can redistribute it and/or modify 3 * it under the terms of the GNU General Public License, version 2, as 4 * published by the Free Software Foundation. 5 * 6 * This program is distributed in the hope that it will be useful, 7 * but WITHOUT ANY WARRANTY; without even the implied warranty of 8 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the --- 513 unchanged lines hidden (view full) --- 522#ifdef CONFIG_KVM_BOOK3S_HV_POSSIBLE 523 case KVM_CAP_PPC_SMT: 524 if (hv_enabled) 525 r = threads_per_subcore; 526 else 527 r = 0; 528 break; 529 case KVM_CAP_PPC_RMA: | 1/* 2 * This program is free software; you can redistribute it and/or modify 3 * it under the terms of the GNU General Public License, version 2, as 4 * published by the Free Software Foundation. 5 * 6 * This program is distributed in the hope that it will be useful, 7 * but WITHOUT ANY WARRANTY; without even the implied warranty of 8 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the --- 513 unchanged lines hidden (view full) --- 522#ifdef CONFIG_KVM_BOOK3S_HV_POSSIBLE 523 case KVM_CAP_PPC_SMT: 524 if (hv_enabled) 525 r = threads_per_subcore; 526 else 527 r = 0; 528 break; 529 case KVM_CAP_PPC_RMA: |
530 r = hv_enabled; 531 /* PPC970 requires an RMA */ 532 if (r && cpu_has_feature(CPU_FTR_ARCH_201)) 533 r = 2; | 530 r = 0; |
534 break; 535#endif 536 case KVM_CAP_SYNC_MMU: 537#ifdef CONFIG_KVM_BOOK3S_HV_POSSIBLE | 531 break; 532#endif 533 case KVM_CAP_SYNC_MMU: 534#ifdef CONFIG_KVM_BOOK3S_HV_POSSIBLE |
538 if (hv_enabled) 539 r = cpu_has_feature(CPU_FTR_ARCH_206) ? 1 : 0; 540 else 541 r = 0; | 535 r = hv_enabled; |
542#elif defined(KVM_ARCH_WANT_MMU_NOTIFIER) 543 r = 1; 544#else 545 r = 0; 546#endif 547 break; 548#ifdef CONFIG_KVM_BOOK3S_HV_POSSIBLE 549 case KVM_CAP_PPC_HTAB_FD: --- 868 unchanged lines hidden --- | 536#elif defined(KVM_ARCH_WANT_MMU_NOTIFIER) 537 r = 1; 538#else 539 r = 0; 540#endif 541 break; 542#ifdef CONFIG_KVM_BOOK3S_HV_POSSIBLE 543 case KVM_CAP_PPC_HTAB_FD: --- 868 unchanged lines hidden --- |