Skip to content
  1. Mar 06, 2021
    • Linus Torvalds's avatar
      Merge tag 'devicetree-fixes-for-5.12-1' of git://git.kernel.org/pub/scm/linux/kernel/git/robh/linux · 6bf331d5
      Linus Torvalds authored
      Pull devicetree fixes from Rob Herring:
      
       - Another batch of graph and video-interfaces schema conversions
      
       - Drop DT header symlink for dropped C6X arch
      
       - Fix bcm2711-hdmi schema error
      
      * tag 'devicetree-fixes-for-5.12-1' of git://git.kernel.org/pub/scm/linux/kernel/git/robh/linux:
        dt-bindings: media: Use graph and video-interfaces schemas, round 2
        dts: drop dangling c6x symlink
        dt-bindings: bcm2711-hdmi: Fix broken schema
      6bf331d5
    • Linus Torvalds's avatar
      Merge tag 'trace-v5.12-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/rostedt/linux-trace · 54663cf3
      Linus Torvalds authored
      Pull tracing fixes from Steven Rostedt:
       "Functional fixes:
      
         - Fix big endian conversion for arm64 in recordmcount processing
      
         - Fix timestamp corruption in ring buffer on discarding events
      
         - Fix memory leak in __create_synth_event()
      
         - Skip selftests if tracing is disabled as it will cause them to
           fail.
      
        Non-functional fixes:
      
         - Fix help text in Kconfig
      
         - Remove duplicate prototype for trace_empty()
      
         - Fix stale comment about the trace_event_call flags.
      
        Self test update:
      
         - Add more information to the validation output of when a corrupt
           timestamp is found in the ring buffer, and also trigger a warning
           to make sure that tests catch it"
      
      * tag 'trace-v5.12-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/rostedt/linux-trace:
        tracing: Fix comment about the trace_event_call flags
        tracing: Skip selftests if tracing is disabled
        tracing: Fix memory leak in __create_synth_event()
        ring-buffer: Add a little more information and a WARN when time stamp going backwards is detected
        ring-buffer: Force before_stamp and write_stamp to be different on discard
        tracing: Fix help text of TRACEPOINT_BENCHMARK in Kconfig
        tracing: Remove duplicate declaration from trace.h
        ftrace: Have recordmcount use w8 to read relp->r_info in arm64_is_fake_mcount
      54663cf3
  2. Mar 05, 2021
    • Linus Torvalds's avatar
      Merge tag 'drm-fixes-2021-03-05' of git://anongit.freedesktop.org/drm/drm · 280d542f
      Linus Torvalds authored
      Pull drm fixes from Dave Airlie:
       "More may show up but this is what I have at this stage: just a single
        nouveau regression fix, and a bunch of amdgpu fixes.
      
        amdgpu:
         - S0ix fix
         - Handle new NV12 SKU
         - Misc power fixes
         - Display uninitialized value fix
         - PCIE debugfs register access fix
      
        nouveau:
         - regression fix for gk104"
      
      * tag 'drm-fixes-2021-03-05' of git://anongit.freedesktop.org/drm/drm:
        drm/amdgpu: fix parameter error of RREG32_PCIE() in amdgpu_regs_pcie
        drm/amd/display: fix the return of the uninitialized value in ret
        drm/amdgpu: enable BACO runpm by default on sienna cichlid and navy flounder
        drm/amd/pm: correct Arcturus mmTHM_BACO_CNTL register address
        drm/amdgpu/swsmu/vangogh: Only use RLCPowerNotify msg for disable
        drm/amdgpu/pm: make unsupported power profile messages debug
        drm/amdgpu:disable VCN for Navi12 SKU
        drm/amdgpu: Only check for S0ix if AMD_PMC is configured
        drm/nouveau/fifo/gk104-gp1xx: fix creation of sw class
      280d542f
    • Linus Torvalds's avatar
      Merge tag 'mkp-scsi-fixes' of git://git.kernel.org/pub/scm/linux/kernel/git/mkp/scsi · 44195bd7
      Linus Torvalds authored
      Pull iSCSI fixes from Martin Petersen:
       "Three fixes for missed iSCSI verification checks (and make the sysfs
        files use "sysfs_emit()" - that's what it is there for)"
      
      * tag 'mkp-scsi-fixes' of git://git.kernel.org/pub/scm/linux/kernel/git/mkp/scsi:
        scsi: iscsi: Verify lengths on passthrough PDUs
        scsi: iscsi: Ensure sysfs attributes are limited to PAGE_SIZE
        scsi: iscsi: Restrict sessions and handles to admin capabilities
      44195bd7
    • Dave Airlie's avatar
      Merge tag 'amd-drm-fixes-5.12-2021-03-03' of... · a1f10541
      Dave Airlie authored
      
      Merge tag 'amd-drm-fixes-5.12-2021-03-03' of https://gitlab.freedesktop.org/agd5f/linux into drm-fixes
      
      amd-drm-fixes-5.12-2021-03-03:
      
      amdgpu:
      - S0ix fix
      - Handle new NV12 SKU
      - Misc power fixes
      - Display uninitialized value fix
      - PCIE debugfs register access fix
      
      Signed-off-by: default avatarDave Airlie <airlied@redhat.com>
      From: Alex Deucher <alexander.deucher@amd.com>
      Link: https://patchwork.freedesktop.org/patch/msgid/20210304043255.3792-1-alexander.deucher@amd.com
      a1f10541
    • Dave Airlie's avatar
      Merge branch '00.00-inst' of git://github.com/skeggsb/linux into drm-fixes · a727df40
      Dave Airlie authored
      
      
      A single regression fix here that I noticed while testing a bunch of
      boards for something else, not sure where this got lost!  Prevents 3D
      driver from initialising on some GPUs.
      
      Signed-off-by: default avatarDave Airlie <airlied@redhat.com>
      From: Ben Skeggs <skeggsb@gmail.com>
      Link: https://patchwork.freedesktop.org/patch/msgid/CACAvsv5gmq14BrDmkMncfd=tHVSSaU89BdBEWfs6Jy-aRz03GQ@mail.gmail.com
      a727df40
    • Chris Leech's avatar
      scsi: iscsi: Verify lengths on passthrough PDUs · f9dbdf97
      Chris Leech authored
      
      
      Open-iSCSI sends passthrough PDUs over netlink, but the kernel should be
      verifying that the provided PDU header and data lengths fall within the
      netlink message to prevent accessing beyond that in memory.
      
      Cc: stable@vger.kernel.org
      Reported-by: default avatarAdam Nichols <adam@grimm-co.com>
      Reviewed-by: default avatarLee Duncan <lduncan@suse.com>
      Reviewed-by: default avatarMike Christie <michael.christie@oracle.com>
      Signed-off-by: default avatarChris Leech <cleech@redhat.com>
      Signed-off-by: default avatarMartin K. Petersen <martin.petersen@oracle.com>
      f9dbdf97
    • Chris Leech's avatar
      scsi: iscsi: Ensure sysfs attributes are limited to PAGE_SIZE · ec98ea70
      Chris Leech authored
      
      
      As the iSCSI parameters are exported back through sysfs, it should be
      enforcing that they never are more than PAGE_SIZE (which should be more
      than enough) before accepting updates through netlink.
      
      Change all iSCSI sysfs attributes to use sysfs_emit().
      
      Cc: stable@vger.kernel.org
      Reported-by: default avatarAdam Nichols <adam@grimm-co.com>
      Reviewed-by: default avatarLee Duncan <lduncan@suse.com>
      Reviewed-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
      Reviewed-by: default avatarMike Christie <michael.christie@oracle.com>
      Signed-off-by: default avatarChris Leech <cleech@redhat.com>
      Signed-off-by: default avatarMartin K. Petersen <martin.petersen@oracle.com>
      ec98ea70
    • Lee Duncan's avatar
      scsi: iscsi: Restrict sessions and handles to admin capabilities · 688e8128
      Lee Duncan authored
      
      
      Protect the iSCSI transport handle, available in sysfs, by requiring
      CAP_SYS_ADMIN to read it. Also protect the netlink socket by restricting
      reception of messages to ones sent with CAP_SYS_ADMIN. This disables
      normal users from being able to end arbitrary iSCSI sessions.
      
      Cc: stable@vger.kernel.org
      Reported-by: default avatarAdam Nichols <adam@grimm-co.com>
      Reviewed-by: default avatarChris Leech <cleech@redhat.com>
      Reviewed-by: default avatarMike Christie <michael.christie@oracle.com>
      Signed-off-by: default avatarLee Duncan <lduncan@suse.com>
      Signed-off-by: default avatarMartin K. Petersen <martin.petersen@oracle.com>
      688e8128
    • Linus Torvalds's avatar
      Merge tag 'tpmdd-next-v5.12-rc2' of... · 3cb60ee6
      Linus Torvalds authored
      Merge tag 'tpmdd-next-v5.12-rc2' of git://git.kernel.org/pub/scm/linux/kernel/git/jarkko/linux-tpmdd
      
      Pull tpm fixes Jarkko Sakkinen:
       "Three fixes for rc2"
      
      * tag 'tpmdd-next-v5.12-rc2' of git://git.kernel.org/pub/scm/linux/kernel/git/jarkko/linux-tpmdd:
        tpm: Remove unintentional dump_stack() call
        tpm, tpm_tis: Decorate tpm_tis_gen_interrupt() with request_locality()
        tpm, tpm_tis: Decorate tpm_get_timeouts() with request_locality()
      3cb60ee6
    • Linus Torvalds's avatar
      Merge tag 'for-linus' of git://git.kernel.org/pub/scm/virt/kvm/kvm · cee407c5
      Linus Torvalds authored
      Pull KVM fixes from Paolo Bonzini:
      
       - Doc fixes
      
       - selftests fixes
      
       - Add runstate information to the new Xen support
      
       - Allow compiling out the Xen interface
      
       - 32-bit PAE without EPT bugfix
      
       - NULL pointer dereference bugfix
      
      * tag 'for-linus' of git://git.kernel.org/pub/scm/virt/kvm/kvm:
        KVM: SVM: Clear the CR4 register on reset
        KVM: x86/xen: Add support for vCPU runstate information
        KVM: x86/xen: Fix return code when clearing vcpu_info and vcpu_time_info
        selftests: kvm: Mmap the entire vcpu mmap area
        KVM: Documentation: Fix index for KVM_CAP_PPC_DAWR1
        KVM: x86: allow compiling out the Xen hypercall interface
        KVM: xen: flush deferred static key before checking it
        KVM: x86/mmu: Set SPTE_AD_WRPROT_ONLY_MASK if and only if PML is enabled
        KVM: x86: hyper-v: Fix Hyper-V context null-ptr-deref
        KVM: x86: remove misplaced comment on active_mmu_pages
        KVM: Documentation: rectify rst markup in kvm_run->flags
        Documentation: kvm: fix messy conversion from .txt to .rst
      cee407c5
    • Linus Torvalds's avatar
      Merge tag 'for-linus-5.12b-rc2-tag' of git://git.kernel.org/pub/scm/linux/kernel/git/xen/tip · c5a58f87
      Linus Torvalds authored
      Pull xen fixes from Juergen Gross:
       "Two security issues (XSA-367 and XSA-369)"
      
      * tag 'for-linus-5.12b-rc2-tag' of git://git.kernel.org/pub/scm/linux/kernel/git/xen/tip:
        xen: fix p2m size in dom0 for disabled memory hotplug case
        xen-netback: respect gnttab_map_refs()'s return value
        Xen/gnttab: handle p2m update errors on a per-slot basis
      c5a58f87
    • Linus Torvalds's avatar
      Merge tag 'sound-5.12-rc2' of git://git.kernel.org/pub/scm/linux/kernel/git/tiwai/sound · 43df5242
      Linus Torvalds authored
      Pull sound fixes from Takashi Iwai:
       "Slightly bulky changes are seen at this time, mostly for dealing with
        the messed up Kconfig for ASoC Intel SOF stuff. The driver and its
        code was split to each module per platform now, which is far more
        straightforward. This should cover the randconfig problems, and more
        importantly, improve the actual device handling as well.
      
        Other than that, nothing particular stands out: the HDMI PCM
        assignment fix for Intel Tigerlake, MIPS n64 error handling fix, and
        the usual suspects, HD-audio / USB-audio quirks"
      
      * tag 'sound-5.12-rc2' of git://git.kernel.org/pub/scm/linux/kernel/git/tiwai/sound: (21 commits)
        ALSA: hda/realtek: Apply dual codec quirks for MSI Godlike X570 board
        ALSA: hda/realtek: Add quirk for Intel NUC 10
        ALSA: hda/hdmi: let new platforms assign the pcm slot dynamically
        ALSA: hda/realtek: Add quirk for Clevo NH55RZQ
        ALSA: hda: intel-sdw-acpi: add missing include files
        ALSA: hda: move Intel SoundWire ACPI scan to dedicated module
        ASoC: SOF: Intel: SoundWire: simplify Kconfig
        ASoC: SOF: pci: move DSP_CONFIG use to platform-specific drivers
        ASoC: SOF: pci: split PCI into different drivers
        ASoC: SOF: ACPI: avoid reverse module dependency
        ASoC: soc-acpi: allow for partial match in parent name
        ALSA: hda: intel-nhlt: verify config type
        ALSA: hda: fix kernel-doc warnings
        ALSA: usb-audio: Fix Pioneer DJM devices URB_CONTROL request direction to set samplerate
        ALSA: usb-audio: use Corsair Virtuoso mapping for Corsair Virtuoso SE
        ALSA: hda/realtek: Enable headset mic of Acer SWIFT with ALC256
        ALSA: ctxfi: cthw20k2: fix mask on conf to allow 4 bits
        ALSA: usb-audio: Allow modifying parameters with succeeding hw_params calls
        ALSA: usb-audio: Drop bogus dB range in too low level
        ALSA: usb-audio: Don't abort even if the clock rate differs
        ...
      43df5242
  3. Mar 04, 2021
  4. Mar 03, 2021
    • Jarkko Sakkinen's avatar
      tpm: Remove unintentional dump_stack() call · 232a37ea
      Jarkko Sakkinen authored
      
      
      Somewhere along the line, probably during a rebase, an unintentional
      dump_stack() got included. Revert this change.
      
      Reported-by: default avatarRikard Falkeborn <rikard.falkeborn@gmail.com>
      Fixes: 90cba8d2
      
       ("tpm/ppi: Constify static struct attribute_group")
      Signed-off-by: default avatarJarkko Sakkinen <jarkko@kernel.org>
      232a37ea
    • Takashi Iwai's avatar
      ALSA: hda/realtek: Apply dual codec quirks for MSI Godlike X570 board · 26af1772
      Takashi Iwai authored
      
      
      There is another MSI board (1462:cc34) that has dual Realtek codecs,
      and we need to apply the existing quirk for fixing the conflicts of
      Master control.
      
      BugLink: https://bugzilla.kernel.org/show_bug.cgi?id=211743
      Cc: <stable@vger.kernel.org>
      Link: https://lore.kernel.org/r/20210303142346.28182-1-tiwai@suse.de
      Signed-off-by: default avatarTakashi Iwai <tiwai@suse.de>
      26af1772
    • Werner Sembach's avatar
      ALSA: hda/realtek: Add quirk for Intel NUC 10 · 73e7161e
      Werner Sembach authored
      
      
      This adds a new SND_PCI_QUIRK(...) and applies it to the Intel NUC 10
      devices. This fixes the issue of the devices not having audio input and
      output on the headset jack because the kernel does not recognize when
      something is plugged in.
      
      The new quirk was inspired by the quirk for the Intel NUC 8 devices, but
      it turned out that the NUC 10 uses another pin. This information was
      acquired by black box testing likely pins.
      
      Co-developed-by: default avatarEckhart Mohr <e.mohr@tuxedocomputers.com>
      Signed-off-by: default avatarEckhart Mohr <e.mohr@tuxedocomputers.com>
      Signed-off-by: default avatarWerner Sembach <wse@tuxedocomputers.com>
      Cc: <stable@vger.kernel.org>
      Link: https://lore.kernel.org/r/20210302180414.23194-1-wse@tuxedocomputers.com
      Signed-off-by: default avatarTakashi Iwai <tiwai@suse.de>
      73e7161e
    • Juergen Gross's avatar
      xen: fix p2m size in dom0 for disabled memory hotplug case · 88221399
      Juergen Gross authored
      Since commit 9e2369c0 ("xen: add helpers to allocate unpopulated
      memory") foreign mappings are using guest physical addresses allocated
      via ZONE_DEVICE functionality.
      
      This will result in problems for the case of no balloon memory hotplug
      being configured, as the p2m list will only cover the initial memory
      size of the domain. Any ZONE_DEVICE allocated address will be outside
      the p2m range and thus a mapping can't be established with that memory
      address.
      
      Fix that by extending the p2m size for that case. At the same time add
      a check for a to be created mapping to be within the p2m limits in
      order to detect errors early.
      
      While changing a comment, remove some 32-bit leftovers.
      
      This is XSA-369.
      
      Fixes: 9e2369c0
      
       ("xen: add helpers to allocate unpopulated memory")
      Cc: <stable@vger.kernel.org> # 5.9
      Reported-by: default avatarMarek Marczykowski-Górecki <marmarek@invisiblethingslab.com>
      Signed-off-by: default avatarJuergen Gross <jgross@suse.com>
      Reviewed-by: default avatarJan Beulich <jbeulich@suse.com>
      Signed-off-by: default avatarJuergen Gross <jgross@suse.com>
      88221399
    • Jan Beulich's avatar
      xen-netback: respect gnttab_map_refs()'s return value · 2991397d
      Jan Beulich authored
      Commit 3194a174
      
       ("xen-netback: don't "handle" error by BUG()")
      dropped respective a BUG_ON() without noticing that with this the
      variable's value wouldn't be consumed anymore. With gnttab_set_map_op()
      setting all status fields to a non-zero value, in case of an error no
      slot should have a status of GNTST_okay (zero).
      
      This is part of XSA-367.
      
      Cc: <stable@vger.kernel.org>
      Reported-by: default avatarkernel test robot <lkp@intel.com>
      Signed-off-by: default avatarJan Beulich <jbeulich@suse.com>
      Reviewed-by: default avatarJuergen Gross <jgross@suse.com>
      Link: https://lore.kernel.org/r/d933f495-619a-0086-5fb4-1ec3cf81a8fc@suse.com
      Signed-off-by: default avatarJuergen Gross <jgross@suse.com>
      2991397d
    • Jan Beulich's avatar
      Xen/gnttab: handle p2m update errors on a per-slot basis · 8310b77b
      Jan Beulich authored
      
      
      Bailing immediately from set_foreign_p2m_mapping() upon a p2m updating
      error leaves the full batch in an ambiguous state as far as the caller
      is concerned. Instead flags respective slots as bad, unmapping what
      was mapped there right away.
      
      HYPERVISOR_grant_table_op()'s return value and the individual unmap
      slots' status fields get used only for a one-time - there's not much we
      can do in case of a failure.
      
      Note that there's no GNTST_enomem or alike, so GNTST_general_error gets
      used.
      
      The map ops' handle fields get overwritten just to be on the safe side.
      
      This is part of XSA-367.
      
      Cc: <stable@vger.kernel.org>
      Signed-off-by: default avatarJan Beulich <jbeulich@suse.com>
      Reviewed-by: default avatarJuergen Gross <jgross@suse.com>
      Link: https://lore.kernel.org/r/96cccf5d-e756-5f53-b91a-ea269bfb9be0@suse.com
      Signed-off-by: default avatarJuergen Gross <jgross@suse.com>
      8310b77b
    • Linus Torvalds's avatar
      Merge tag 'misc-5.12-2021-03-02' of git://git.kernel.dk/linux-block · f69d02e3
      Linus Torvalds authored
      Pull misc fixes from Jens Axboe:
       "Two misc fixes that don't belong in other branches:
      
         - Fix a regression with ia64 signals, introduced by the
           TIF_NOTIFY_SIGNAL change in 5.11.
      
         - Fix the current swapfile regression from this merge window"
      
      * tag 'misc-5.12-2021-03-02' of git://git.kernel.dk/linux-block:
        swap: fix swapfile read/write offset
        ia64: don't call handle_signal() unless there's actually a signal queued
      f69d02e3
    • Jens Axboe's avatar
      swap: fix swapfile read/write offset · caf6912f
      Jens Axboe authored
      We're not factoring in the start of the file for where to write and
      read the swapfile, which leads to very unfortunate side effects of
      writing where we should not be...
      
      Fixes: 48d15436
      
       ("mm: remove get_swap_bio")
      Signed-off-by: default avatarJens Axboe <axboe@kernel.dk>
      caf6912f
    • Jens Axboe's avatar
      ia64: don't call handle_signal() unless there's actually a signal queued · f5f4fc46
      Jens Axboe authored
      Sergei and John both reported that ia64 failed to boot in 5.11, and it
      was related to signals. Turns out the ia64 signal handling is a bit odd,
      it doesn't check the return value of get_signal() for whether there's a
      signal to deliver or not. With the introduction of TIF_NOTIFY_SIGNAL,
      then task_work could trigger it.
      
      Fix it by only calling handle_signal() if we actually have a real signal
      to deliver. This brings it in line with all other archs, too.
      
      Fixes: b269c229
      
       ("ia64: add support for TIF_NOTIFY_SIGNAL")
      Reported-by: default avatarSergei Trofimovich <slyich@gmail.com>
      Reported-by: default avatarJohn Paul Adrian Glaubitz <glaubitz@physik.fu-berlin.de>
      Tested-by: default avatarSergei Trofimovich <slyich@gmail.com>
      Signed-off-by: default avatarJens Axboe <axboe@kernel.dk>
      f5f4fc46
    • Chen Jun's avatar
      ftrace: Have recordmcount use w8 to read relp->r_info in arm64_is_fake_mcount · 999340d5
      Chen Jun authored
      On little endian system, Use aarch64_be(gcc v7.3) downloaded from
      linaro.org to build image with CONFIG_CPU_BIG_ENDIAN = y,
      CONFIG_FTRACE = y, CONFIG_DYNAMIC_FTRACE = y.
      
      gcc will create symbols of _mcount but recordmcount can not create
      mcount_loc for *.o.
      aarch64_be-linux-gnu-objdump -r fs/namei.o | grep mcount
      00000000000000d0 R_AARCH64_CALL26  _mcount
      ...
      0000000000007190 R_AARCH64_CALL26  _mcount
      
      The reason is than funciton arm64_is_fake_mcount can not work correctly.
      A symbol of _mcount in *.o compiled with big endian compiler likes:
      00 00 00 2d 00 00 01 1b
      w(rp->r_info) will return 0x2d instead of 0x011b. Because w() takes
      uint32_t as parameter, which truncates rp->r_info.
      
      Use w8() instead w() to read relp->r_info
      
      Link: https://lkml.kernel.org/r/20210222135840.56250-1-chenjun102@huawei.com
      
      Fixes: ea0eada4
      
       ("recordmcount: only record relocation of type R_AARCH64_CALL26 on arm64.")
      Acked-by: default avatarWill Deacon <will@kernel...>
      999340d5
    • Babu Moger's avatar
      KVM: SVM: Clear the CR4 register on reset · 9e46f6c6
      Babu Moger authored
      
      
      This problem was reported on a SVM guest while executing kexec.
      Kexec fails to load the new kernel when the PCID feature is enabled.
      
      When kexec starts loading the new kernel, it starts the process by
      resetting the vCPU's and then bringing each vCPU online one by one.
      The vCPU reset is supposed to reset all the register states before the
      vCPUs are brought online. However, the CR4 register is not reset during
      this process. If this register is already setup during the last boot,
      all the flags can remain intact. The X86_CR4_PCIDE bit can only be
      enabled in long mode. So, it must be enabled much later in SMP
      initialization.  Having the X86_CR4_PCIDE bit set during SMP boot can
      cause a boot failures.
      
      Fix the issue by resetting the CR4 register in init_vmcb().
      
      Signed-off-by: default avatarBabu Moger <babu.moger@amd.com>
      Message-Id: <161471109108.30811.6392805173629704166.stgit@bmoger-ubuntu>
      Signed-off-by: default avatarPaolo Bonzini <pbonzini@redhat.com>
      9e46f6c6
    • David Woodhouse's avatar
      KVM: x86/xen: Add support for vCPU runstate information · 30b5c851
      David Woodhouse authored
      
      
      This is how Xen guests do steal time accounting. The hypervisor records
      the amount of time spent in each of running/runnable/blocked/offline
      states.
      
      In the Xen accounting, a vCPU is still in state RUNSTATE_running while
      in Xen for a hypercall or I/O trap, etc. Only if Xen explicitly schedules
      does the state become RUNSTATE_blocked. In KVM this means that even when
      the vCPU exits the kvm_run loop, the state remains RUNSTATE_running.
      
      The VMM can explicitly set the vCPU to RUNSTATE_blocked by using the
      KVM_XEN_VCPU_ATTR_TYPE_RUNSTATE_CURRENT attribute, and can also use
      KVM_XEN_VCPU_ATTR_TYPE_RUNSTATE_ADJUST to retrospectively add a given
      amount of time to the blocked state and subtract it from the running
      state.
      
      The state_entry_time corresponds to get_kvmclock_ns() at the time the
      vCPU entered the current state, and the total times of all four states
      should always add up to state_entry_time.
      
      Co-developed-by: default avatarJoao Martins <joao.m.martins@oracle.com>
      Signed-off-by: default avatarJoao Martins <joao.m.martins@oracle.com>
      Signed-off-by: default avatarDavid Woodhouse <dwmw@amazon.co.uk>
      Message-Id: <20210301125309.874953-2-dwmw2@infradead.org>
      Signed-off-by: default avatarPaolo Bonzini <pbonzini@redhat.com>
      30b5c851