~ [ source navigation ] ~ [ diff markup ] ~ [ identifier search ] ~

TOMOYO Linux Cross Reference
Linux/Documentation/virt/kvm/arm/pvtime.rst

Version: ~ [ linux-6.12-rc7 ] ~ [ linux-6.11.7 ] ~ [ linux-6.10.14 ] ~ [ linux-6.9.12 ] ~ [ linux-6.8.12 ] ~ [ linux-6.7.12 ] ~ [ linux-6.6.60 ] ~ [ linux-6.5.13 ] ~ [ linux-6.4.16 ] ~ [ linux-6.3.13 ] ~ [ linux-6.2.16 ] ~ [ linux-6.1.116 ] ~ [ linux-6.0.19 ] ~ [ linux-5.19.17 ] ~ [ linux-5.18.19 ] ~ [ linux-5.17.15 ] ~ [ linux-5.16.20 ] ~ [ linux-5.15.171 ] ~ [ linux-5.14.21 ] ~ [ linux-5.13.19 ] ~ [ linux-5.12.19 ] ~ [ linux-5.11.22 ] ~ [ linux-5.10.229 ] ~ [ linux-5.9.16 ] ~ [ linux-5.8.18 ] ~ [ linux-5.7.19 ] ~ [ linux-5.6.19 ] ~ [ linux-5.5.19 ] ~ [ linux-5.4.285 ] ~ [ linux-5.3.18 ] ~ [ linux-5.2.21 ] ~ [ linux-5.1.21 ] ~ [ linux-5.0.21 ] ~ [ linux-4.20.17 ] ~ [ linux-4.19.323 ] ~ [ linux-4.18.20 ] ~ [ linux-4.17.19 ] ~ [ linux-4.16.18 ] ~ [ linux-4.15.18 ] ~ [ linux-4.14.336 ] ~ [ linux-4.13.16 ] ~ [ linux-4.12.14 ] ~ [ linux-4.11.12 ] ~ [ linux-4.10.17 ] ~ [ linux-4.9.337 ] ~ [ linux-4.4.302 ] ~ [ linux-3.10.108 ] ~ [ linux-2.6.32.71 ] ~ [ linux-2.6.0 ] ~ [ linux-2.4.37.11 ] ~ [ unix-v6-master ] ~ [ ccs-tools-1.8.12 ] ~ [ policy-sample ] ~
Architecture: ~ [ i386 ] ~ [ alpha ] ~ [ m68k ] ~ [ mips ] ~ [ ppc ] ~ [ sparc ] ~ [ sparc64 ] ~

Diff markup

Differences between /Documentation/virt/kvm/arm/pvtime.rst (Version linux-6.12-rc7) and /Documentation/virt/kvm/arm/pvtime.rst (Version linux-5.12.19)


  1 .. SPDX-License-Identifier: GPL-2.0                 1 .. SPDX-License-Identifier: GPL-2.0
  2                                                     2 
  3 Paravirtualized time support for arm64              3 Paravirtualized time support for arm64
  4 ======================================              4 ======================================
  5                                                     5 
  6 Arm specification DEN0057/A defines a standard      6 Arm specification DEN0057/A defines a standard for paravirtualised time
  7 support for AArch64 guests:                         7 support for AArch64 guests:
  8                                                     8 
  9 https://developer.arm.com/docs/den0057/a            9 https://developer.arm.com/docs/den0057/a
 10                                                    10 
 11 KVM/arm64 implements the stolen time part of t     11 KVM/arm64 implements the stolen time part of this specification by providing
 12 some hypervisor service calls to support a par     12 some hypervisor service calls to support a paravirtualized guest obtaining a
 13 view of the amount of time stolen from its exe     13 view of the amount of time stolen from its execution.
 14                                                    14 
 15 Two new SMCCC compatible hypercalls are define     15 Two new SMCCC compatible hypercalls are defined:
 16                                                    16 
 17 * PV_TIME_FEATURES: 0xC5000020                     17 * PV_TIME_FEATURES: 0xC5000020
 18 * PV_TIME_ST:       0xC5000021                     18 * PV_TIME_ST:       0xC5000021
 19                                                    19 
 20 These are only available in the SMC64/HVC64 ca     20 These are only available in the SMC64/HVC64 calling convention as
 21 paravirtualized time is not available to 32 bi     21 paravirtualized time is not available to 32 bit Arm guests. The existence of
 22 the PV_TIME_FEATURES hypercall should be probe     22 the PV_TIME_FEATURES hypercall should be probed using the SMCCC 1.1
 23 ARCH_FEATURES mechanism before calling it.         23 ARCH_FEATURES mechanism before calling it.
 24                                                    24 
 25 PV_TIME_FEATURES                                   25 PV_TIME_FEATURES
 26                                                !!  26     ============= ========    ==========
 27     ============= ========    ================ << 
 28     Function ID:  (uint32)    0xC5000020           27     Function ID:  (uint32)    0xC5000020
 29     PV_call_id:   (uint32)    The function to      28     PV_call_id:   (uint32)    The function to query for support.
 30                               Currently only P     29                               Currently only PV_TIME_ST is supported.
 31     Return value: (int64)     NOT_SUPPORTED (-     30     Return value: (int64)     NOT_SUPPORTED (-1) or SUCCESS (0) if the relevant
 32                               PV-time feature      31                               PV-time feature is supported by the hypervisor.
 33     ============= ========    ================ !!  32     ============= ========    ==========
 34                                                    33 
 35 PV_TIME_ST                                         34 PV_TIME_ST
 36                                                !!  35     ============= ========    ==========
 37     ============= ========    ================ << 
 38     Function ID:  (uint32)    0xC5000021           36     Function ID:  (uint32)    0xC5000021
 39     Return value: (int64)     IPA of the stole     37     Return value: (int64)     IPA of the stolen time data structure for this
 40                               VCPU. On failure     38                               VCPU. On failure:
 41                               NOT_SUPPORTED (-     39                               NOT_SUPPORTED (-1)
 42     ============= ========    ================ !!  40     ============= ========    ==========
 43                                                    41 
 44 The IPA returned by PV_TIME_ST should be mappe     42 The IPA returned by PV_TIME_ST should be mapped by the guest as normal memory
 45 with inner and outer write back caching attrib     43 with inner and outer write back caching attributes, in the inner shareable
 46 domain. A total of 16 bytes from the IPA retur     44 domain. A total of 16 bytes from the IPA returned are guaranteed to be
 47 meaningfully filled by the hypervisor (see str     45 meaningfully filled by the hypervisor (see structure below).
 48                                                    46 
 49 PV_TIME_ST returns the structure for the calli     47 PV_TIME_ST returns the structure for the calling VCPU.
 50                                                    48 
 51 Stolen Time                                        49 Stolen Time
 52 -----------                                        50 -----------
 53                                                    51 
 54 The structure pointed to by the PV_TIME_ST hyp     52 The structure pointed to by the PV_TIME_ST hypercall is as follows:
 55                                                    53 
 56 +-------------+-------------+-------------+---     54 +-------------+-------------+-------------+----------------------------+
 57 | Field       | Byte Length | Byte Offset | De     55 | Field       | Byte Length | Byte Offset | Description                |
 58 +=============+=============+=============+===     56 +=============+=============+=============+============================+
 59 | Revision    |      4      |      0      | Mu     57 | Revision    |      4      |      0      | Must be 0 for version 1.0  |
 60 +-------------+-------------+-------------+---     58 +-------------+-------------+-------------+----------------------------+
 61 | Attributes  |      4      |      4      | Mu     59 | Attributes  |      4      |      4      | Must be 0                  |
 62 +-------------+-------------+-------------+---     60 +-------------+-------------+-------------+----------------------------+
 63 | Stolen time |      8      |      8      | St     61 | Stolen time |      8      |      8      | Stolen time in unsigned    |
 64 |             |             |             | na     62 |             |             |             | nanoseconds indicating how |
 65 |             |             |             | mu     63 |             |             |             | much time this VCPU thread |
 66 |             |             |             | wa     64 |             |             |             | was involuntarily not      |
 67 |             |             |             | ru     65 |             |             |             | running on a physical CPU. |
 68 +-------------+-------------+-------------+---     66 +-------------+-------------+-------------+----------------------------+
 69                                                    67 
 70 All values in the structure are stored little-     68 All values in the structure are stored little-endian.
 71                                                    69 
 72 The structure will be updated by the hyperviso     70 The structure will be updated by the hypervisor prior to scheduling a VCPU. It
 73 will be present within a reserved region of th     71 will be present within a reserved region of the normal memory given to the
 74 guest. The guest should not attempt to write i     72 guest. The guest should not attempt to write into this memory. There is a
 75 structure per VCPU of the guest.                   73 structure per VCPU of the guest.
 76                                                    74 
 77 It is advisable that one or more 64k pages are     75 It is advisable that one or more 64k pages are set aside for the purpose of
 78 these structures and not used for other purpos     76 these structures and not used for other purposes, this enables the guest to map
 79 the region using 64k pages and avoids conflict     77 the region using 64k pages and avoids conflicting attributes with other memory.
 80                                                    78 
 81 For the user space interface see               !!  79 For the user space interface see Documentation/virt/kvm/devices/vcpu.rst
 82 :ref:`Documentation/virt/kvm/devices/vcpu.rst  !!  80 section "3. GROUP: KVM_ARM_VCPU_PVTIME_CTRL".
                                                      

~ [ source navigation ] ~ [ diff markup ] ~ [ identifier search ] ~

kernel.org | git.kernel.org | LWN.net | Project Home | SVN repository | Mail admin

Linux® is a registered trademark of Linus Torvalds in the United States and other countries.
TOMOYO® is a registered trademark of NTT DATA CORPORATION.

sflogo.php