Lines Matching +full:cs +full:- +full:dev +full:- +full:assoc

8 #include "hw/mem/pc-dimm.h"
32 #define TYPE_SPAPR_RTC "spapr-rtc"
44 #define TYPE_SPAPR_MACHINE "spapr-machine"
72 /* Nested KVM-HV */
102 /* SPAPR_CAP_IBS (cap-ibs) */
116 * for non-CPU resources.
119 * array for any non-CPU resource.
126 * us a assoc size of 2.
144 bool dr_phb_enabled; /* enable dynamic-reconfig/hotplug of PHBs */
149 bool pre_4_1_migration; /* don't migrate hpt-max-page-size */
168 #define TYPE_SPAPR_WDT "spapr-wdt"
197 SpaprPendingHpt *pending_hpt; /* in-progress resize */
223 /* ibm,client-architecture-support option negotiation */
225 SpaprOptionVector *ov5; /* QEMU-supported option vectors */
242 * registered by "ibm,nmi-register" RTAS call.
248 * set to -1 if a FWNMI machine check is not in progress, else is set to
249 * the CPU that was delivered the machine check, and is set back to -1
250 * when that CPU makes an "ibm,nmi-interlock" RTAS call. The cond is used
256 /* Set by -boot */
286 #define H_BUSY 1 /* Hardware busy -- retry later */
310 #define H_HARDWARE -1 /* Hardware error */
311 #define H_FUNCTION -2 /* Function not supported */
312 #define H_PRIVILEGE -3 /* Caller not privileged */
313 #define H_PARAMETER -4 /* Parameter invalid, out-of-range or conflicting */
314 #define H_BAD_MODE -5 /* Illegal msr value */
315 #define H_PTEG_FULL -6 /* PTEG is full */
316 #define H_NOT_FOUND -7 /* PTE was not found" */
317 #define H_RESERVED_DABR -8 /* DABR address is reserved by the hypervisor on this processor"…
318 #define H_NO_MEM -9
319 #define H_AUTHORITY -10
320 #define H_PERMISSION -11
321 #define H_DROPPED -12
322 #define H_SOURCE_PARM -13
323 #define H_DEST_PARM -14
324 #define H_REMOTE_PARM -15
325 #define H_RESOURCE -16
326 #define H_ADAPTER_PARM -17
327 #define H_RH_PARM -18
328 #define H_RCQ_PARM -19
329 #define H_SCQ_PARM -20
330 #define H_EQ_PARM -21
331 #define H_RT_PARM -22
332 #define H_ST_PARM -23
333 #define H_SIGT_PARM -24
334 #define H_TOKEN_PARM -25
335 #define H_MLENGTH_PARM -27
336 #define H_MEM_PARM -28
337 #define H_MEM_ACCESS_PARM -29
338 #define H_ATTR_PARM -30
339 #define H_PORT_PARM -31
340 #define H_MCG_PARM -32
341 #define H_VL_PARM -33
342 #define H_TSIZE_PARM -34
343 #define H_TRACE_PARM -35
345 #define H_MASK_PARM -37
346 #define H_MCG_FULL -38
347 #define H_ALIAS_EXIST -39
348 #define H_P_COUNTER -40
349 #define H_TABLE_FULL -41
350 #define H_ALT_TABLE -42
351 #define H_MR_CONDITION -43
352 #define H_NOT_ENOUGH_RESOURCES -44
353 #define H_R_STATE -45
354 #define H_RESCINDEND -46
355 #define H_P2 -55
356 #define H_P3 -56
357 #define H_P4 -57
358 #define H_P5 -58
359 #define H_P6 -59
360 #define H_P7 -60
361 #define H_P8 -61
362 #define H_P9 -62
363 #define H_NOOP -63
364 #define H_UNSUPPORTED -67
365 #define H_OVERLAP -68
366 #define H_STATE -75
367 #define H_IN_USE -77
368 #define H_INVALID_ELEMENT_VALUE -81
369 #define H_UNSUPPORTED_FLAG -256
370 #define H_MULTI_THREADS_ACTIVE -9005
385 #define H_LARGE_PAGE (1ULL<<(63-16))
386 #define H_EXACT (1ULL<<(63-24)) /* Use exact PTE or return H_PTEG_FULL */
387 #define H_R_XLATE (1ULL<<(63-25)) /* include a valid logical page num in the pte if t…
388 #define H_READ_4 (1ULL<<(63-26)) /* Return 4 PTEs */
389 #define H_PAGE_STATE_CHANGE (1ULL<<(63-28))
390 #define H_PAGE_UNUSED ((1ULL<<(63-29)) | (1ULL<<(63-30)))
392 #define H_PAGE_SET_LOANED (H_PAGE_SET_UNUSED | (1ULL<<(63-31)))
394 #define H_AVPN (1ULL<<(63-32)) /* An avpn is provided as a sanity test */
395 #define H_ANDCOND (1ULL<<(63-33))
396 #define H_ICACHE_INVALIDATE (1ULL<<(63-40)) /* icbi, etc. (ignored for IO pages) */
397 #define H_ICACHE_SYNCHRONIZE (1ULL<<(63-41)) /* dcbst, icbi, etc (ignored for IO pages */
398 #define H_ZERO_PAGE (1ULL<<(63-48)) /* zero the page before mapping (ignored for IO pag…
399 #define H_COPY_PAGE (1ULL<<(63-49))
400 #define H_N (1ULL<<(63-61))
401 #define H_PP1 (1ULL<<(63-62))
402 #define H_PP2 (1ULL<<(63-63))
424 #define H_DABRX_HYPERVISOR (1ULL<<(63-61))
425 #define H_DABRX_KERNEL (1ULL<<(63-62))
426 #define H_DABRX_USER (1ULL<<(63-63))
602 * We also need some hcalls which are specific to qemu / KVM-on-POWER.
603 * We put those into the 0xf000-0xfffc range which is reserved by PAPR
604 * for "platform-specific" hcalls.
615 /* Platform-specific hcalls used for nested HV KVM */
666 /* ibm,set-eeh-option */
672 /* ibm,get-config-addr-info2 */
679 /* ibm,read-slot-reset-state2 */
690 /* ibm,set-slot-reset */
695 /* ibm,slot-error-detail */
702 #define RTAS_OUT_HW_ERROR -1
703 #define RTAS_OUT_BUSY -2
704 #define RTAS_OUT_PARAM_ERROR -3
705 #define RTAS_OUT_NOT_SUPPORTED -3
706 #define RTAS_OUT_NO_SUCH_INDICATOR -3
707 #define RTAS_OUT_NOT_AUTHORIZED -9002
708 #define RTAS_OUT_SYSPARM_PARAM_ERROR -9999
710 /* DDW pagesize mask values from ibm,query-pe-dma-window */
772 /* RTAS ibm,get-system-parameter token values */
781 * NOTE: currently only DR-related sensors are implemented here
788 /* Possible values for the platform-processor-diagnostics-run-mode parameter
789 * of the RTAS ibm,get-system-parameter call.
830 #define SPAPR_TCE_PAGE_MASK (SPAPR_TCE_PAGE_SIZE - 1)
842 /* Offset from rtas-base where error log is placed */
848 * "interrupt-controller" node has its "#interrupt-cells" property set to 2 (ie,
858 #define TYPE_SPAPR_TCE_TABLE "spapr-tce-table"
861 #define TYPE_SPAPR_IOMMU_MEMORY_REGION "spapr-iommu-memory-region"
928 void spapr_memory_unplug_rollback(SpaprMachineState *spapr, DeviceState *dev);
935 void spapr_core_release(DeviceState *dev);
938 void spapr_lmb_release(DeviceState *dev);
941 void spapr_phb_release(DeviceState *dev);
948 #define TYPE_SPAPR_RNG "spapr-rng"
963 * Number of 32 bit words in each LMB list entry in ibm,dynamic-memory
964 * property under ibm,dynamic-reconfiguration-memory node.
969 * Defines for flag value in ibm,dynamic-memory property under
970 * ibm,dynamic-reconfiguration-memory node.
977 void spapr_do_system_reset_on_cpu(CPUState *cs, run_on_cpu_data arg);
979 #define HTAB_SIZE(spapr) (1ULL << ((spapr)->htab_shift))
1009 return spapr->eff.caps[cap]; in spapr_get_cap()
1039 CPUState *cs,