1. 09 7月, 2020 4 次提交
    • X
      KVM: X86: Reset vcpu->arch.cpuid_nent to 0 if SET_CPUID* fails · 18964092
      Xiaoyao Li 提交于
      Current implementation keeps userspace input of CPUID configuration and
      cpuid->nent even if kvm_update_cpuid() fails. Reset vcpu->arch.cpuid_nent
      to 0 for the case of failure as a simple fix.
      
      Besides, update the doc to explicitly state that if IOCTL SET_CPUID*
      fail KVM gives no gurantee that previous valid CPUID configuration is
      kept.
      Signed-off-by: NXiaoyao Li <xiaoyao.li@intel.com>
      Message-Id: <20200708065054.19713-2-xiaoyao.li@intel.com>
      Signed-off-by: NPaolo Bonzini <pbonzini@redhat.com>
      18964092
    • Z
      xen: Mark "xen_nopvspin" parameter obsolete · 9a3c05e6
      Zhenzhong Duan 提交于
      Map "xen_nopvspin" to "nopvspin", fix stale description of "xen_nopvspin"
      as we use qspinlock now.
      Signed-off-by: NZhenzhong Duan <zhenzhong.duan@oracle.com>
      Reviewed-by: NBoris Ostrovsky <boris.ostrovsky@oracle.com>
      Cc: Jonathan Corbet <corbet@lwn.net>
      Cc: Boris Ostrovsky <boris.ostrovsky@oracle.com>
      Cc: Juergen Gross <jgross@suse.com>
      Cc: Stefano Stabellini <sstabellini@kernel.org>
      Cc: Thomas Gleixner <tglx@linutronix.de>
      Cc: Ingo Molnar <mingo@redhat.com>
      Cc: Borislav Petkov <bp@alien8.de>
      Cc: "H. Peter Anvin" <hpa@zytor.com>
      Signed-off-by: NPaolo Bonzini <pbonzini@redhat.com>
      9a3c05e6
    • Z
      x86/kvm: Add "nopvspin" parameter to disable PV spinlocks · 05eee619
      Zhenzhong Duan 提交于
      There are cases where a guest tries to switch spinlocks to bare metal
      behavior (e.g. by setting "xen_nopvspin" on XEN platform and
      "hv_nopvspin" on HYPER_V).
      
      That feature is missed on KVM, add a new parameter "nopvspin" to disable
      PV spinlocks for KVM guest.
      
      The new 'nopvspin' parameter will also replace Xen and Hyper-V specific
      parameters in future patches.
      
      Define variable nopvsin as global because it will be used in future
      patches as above.
      Signed-off-by: NZhenzhong Duan <zhenzhong.duan@oracle.com>
      Reviewed-by: NVitaly Kuznetsov <vkuznets@redhat.com>
      Cc: Jonathan Corbet <corbet@lwn.net>
      Cc: Thomas Gleixner <tglx@linutronix.de>
      Cc: Ingo Molnar <mingo@redhat.com>
      Cc: Borislav Petkov <bp@alien8.de>
      Cc: "H. Peter Anvin" <hpa@zytor.com>
      Cc: Paolo Bonzini <pbonzini@redhat.com>
      Cc: Radim Krcmar <rkrcmar@redhat.com>
      Cc: Sean Christopherson <sean.j.christopherson@intel.com>
      Cc: Vitaly Kuznetsov <vkuznets@redhat.com>
      Cc: Wanpeng Li <wanpengli@tencent.com>
      Cc: Jim Mattson <jmattson@google.com>
      Cc: Joerg Roedel <joro@8bytes.org>
      Cc: Peter Zijlstra <peterz@infradead.org>
      Cc: Will Deacon <will@kernel.org>
      Signed-off-by: NPaolo Bonzini <pbonzini@redhat.com>
      05eee619
    • J
      kvm: x86: Add "last CPU" to some KVM_EXIT information · 1aa561b1
      Jim Mattson 提交于
      More often than not, a failed VM-entry in an x86 production
      environment is induced by a defective CPU. To help identify the bad
      hardware, include the id of the last logical CPU to run a vCPU in the
      information provided to userspace on a KVM exit for failed VM-entry or
      for KVM internal errors not associated with emulation. The presence of
      this additional information is indicated by a new capability,
      KVM_CAP_LAST_CPU.
      Signed-off-by: NJim Mattson <jmattson@google.com>
      Reviewed-by: NOliver Upton <oupton@google.com>
      Reviewed-by: NPeter Shier <pshier@google.com>
      Message-Id: <20200603235623.245638-5-jmattson@google.com>
      Signed-off-by: NPaolo Bonzini <pbonzini@redhat.com>
      1aa561b1
  2. 14 6月, 2020 1 次提交
  3. 12 6月, 2020 7 次提交
    • R
      dt-bindings: Remove redundant 'maxItems' · 44761570
      Rob Herring 提交于
      There's no need to specify 'maxItems' with the same value as the number
      of entries in 'items'. A meta-schema update will catch future cases.
      
      Cc: Shawn Guo <shawnguo@kernel.org>
      Cc: Sascha Hauer <s.hauer@pengutronix.de>
      Cc: Anson Huang <Anson.Huang@nxp.com>
      Cc: linux-clk@vger.kernel.org
      Cc: linux-pwm@vger.kernel.org
      Cc: linux-usb@vger.kernel.org
      Reviewed-by: Stephen Boyd <sboyd@kernel.org> # clk
      Acked-by: NThierry Reding <thierry.reding@gmail.com>
      Signed-off-by: NRob Herring <robh@kernel.org>
      44761570
    • D
      lib/lzo: fix ambiguous encoding bug in lzo-rle · b5265c81
      Dave Rodgman 提交于
      In some rare cases, for input data over 32 KB, lzo-rle could encode two
      different inputs to the same compressed representation, so that
      decompression is then ambiguous (i.e.  data may be corrupted - although
      zram is not affected because it operates over 4 KB pages).
      
      This modifies the compressor without changing the decompressor or the
      bitstream format, such that:
      
       - there is no change to how data produced by the old compressor is
         decompressed
      
       - an old decompressor will correctly decode data from the updated
         compressor
      
       - performance and compression ratio are not affected
      
       - we avoid introducing a new bitstream format
      
      In testing over 12.8M real-world files totalling 903 GB, three files
      were affected by this bug.  I also constructed 37M semi-random 64 KB
      files totalling 2.27 TB, and saw no affected files.  Finally I tested
      over files constructed to contain each of the ~1024 possible bad input
      sequences; for all of these cases, updated lzo-rle worked correctly.
      
      There is no significant impact to performance or compression ratio.
      Signed-off-by: NDave Rodgman <dave.rodgman@arm.com>
      Signed-off-by: NAndrew Morton <akpm@linux-foundation.org>
      Cc: Mark Rutland <mark.rutland@arm.com>
      Cc: Dave Rodgman <dave.rodgman@arm.com>
      Cc: Willy Tarreau <w@1wt.eu>
      Cc: Sergey Senozhatsky <sergey.senozhatsky.work@gmail.com>
      Cc: Markus F.X.J. Oberhumer <markus@oberhumer.com>
      Cc: Minchan Kim <minchan@kernel.org>
      Cc: Nitin Gupta <ngupta@vflare.org>
      Cc: Chao Yu <yuchao0@huawei.com>
      Cc: <stable@vger.kernel.org>
      Link: http://lkml.kernel.org/r/20200507100203.29785-1-dave.rodgman@arm.comSigned-off-by: NLinus Torvalds <torvalds@linux-foundation.org>
      b5265c81
    • R
      dt-bindings: Fix more incorrect 'reg' property sizes in examples · 0db958b6
      Rob Herring 提交于
      The examples template is a 'simple-bus' with a size of 1 cell for
      had between 2 and 4 cells which really only errors on I2C or SPI type
      devices with a single cell.
      
      The easiest fix in most cases is to change the 'reg' property to 1 cell
      for address and size.
      
      Cc: "Heiko Stübner" <heiko@sntech.de>
      Cc: Ezequiel Garcia <ezequiel@collabora.com>
      Cc: Mauro Carvalho Chehab <mchehab@kernel.org>
      Cc: Philipp Zabel <p.zabel@pengutronix.de>
      Cc: Miquel Raynal <miquel.raynal@bootlin.com>
      Cc: Richard Weinberger <richard@nod.at>
      Cc: "David S. Miller" <davem@davemloft.net>
      Cc: Bjorn Andersson <bjorn.andersson@linaro.org>
      Cc: Kishon Vijay Abraham I <kishon@ti.com>
      Cc: Vinod Koul <vkoul@kernel.org>
      Cc: Liam Girdwood <lgirdwood@gmail.com>
      Cc: linux-rockchip@lists.infradead.org
      Cc: linux-media@vger.kernel.org
      Cc: linux-mtd@lists.infradead.org
      Cc: netdev@vger.kernel.org
      Cc: alsa-devel@alsa-project.org
      Acked-by: NMark Brown <broonie@kernel.org>
      Signed-off-by: NRob Herring <robh@kernel.org>
      0db958b6
    • R
      dt-bindings: phy: qcom: Fix missing 'ranges' and example addresses · c0eca14c
      Rob Herring 提交于
      The QCom QMP PHY bindings have child nodes with translatable (MMIO)
      addresses, so a 'ranges' property is required in the parent node.
      Additionally, the examples default to 1 address and size cell, so let's
      fix that, too.
      
      Fixes: ccf51c1c ("dt-bindings: phy: qcom,qmp: Convert QMP PHY bindings to yaml")
      Cc: Andy Gross <agross@kernel.org>
      Cc: Bjorn Andersson <bjorn.andersson@linaro.org>
      Cc: Kishon Vijay Abraham I <kishon@ti.com>
      Cc: Vinod Koul <vkoul@kernel.org>
      Cc: Manu Gautam <mgautam@codeaurora.org>
      Cc: linux-arm-msm@vger.kernel.org
      Signed-off-by: NRob Herring <robh@kernel.org>
      c0eca14c
    • R
      dt-bindings: Remove more cases of 'allOf' containing a '$ref' · 086e9074
      Rob Herring 提交于
      Another round of 'allOf' removals that came in this cycle.
      
      json-schema versions draft7 and earlier have a weird behavior in that
      any keywords combined with a '$ref' are ignored (silently). The correct
      form was to put a '$ref' under an 'allOf'. This behavior is now changed
      in the 2019-09 json-schema spec and '$ref' can be mixed with other
      keywords. The json-schema library doesn't yet support this, but the
      tooling now does a fixup for this and either way works.
      
      This has been a constant source of review comments, so let's change this
      treewide so everyone copies the simpler syntax.
      Signed-off-by: NRob Herring <robh@kernel.org>
      086e9074
    • M
      kcsan: Update Documentation to change supported compilers · 0bb9ab3a
      Marco Elver 提交于
      Document change in required compiler version for KCSAN, and remove the
      now redundant note about __no_kcsan and inlining problems with older
      compilers.
      Signed-off-by: NMarco Elver <elver@google.com>
      Signed-off-by: NBorislav Petkov <bp@suse.de>
      Signed-off-by: NThomas Gleixner <tglx@linutronix.de>
      Acked-by: NPeter Zijlstra (Intel) <peterz@infradead.org>
      Acked-by: NWill Deacon <will@kernel.org>
      Link: https://lkml.kernel.org/r/20200521142047.169334-8-elver@google.com
      
      
      0bb9ab3a
    • M
      media: v4l2-subdev.rst: correct information about v4l2 events · 5be5f41d
      Michael Rodin 提交于
      Remove description of non-existing v4l2_subdev.nevents and replace the
      undefined flag V4L2_SUBDEV_USES_EVENTS by the correct flag
      V4L2_SUBDEV_FL_HAS_EVENTS, which is already documented in v4l2_subdev.flags
      
      Fixes: commit 02adb1cc ("[media] v4l: subdev: Events support")
      Signed-off-by: NMichael Rodin <mrodin@de.adit-jv.com>
      Signed-off-by: NHans Verkuil <hverkuil-cisco@xs4all.nl>
      Signed-off-by: NMauro Carvalho Chehab <mchehab+huawei@kernel.org>
      5be5f41d
  4. 11 6月, 2020 4 次提交
  5. 10 6月, 2020 3 次提交
  6. 09 6月, 2020 11 次提交
  7. 08 6月, 2020 9 次提交
  8. 06 6月, 2020 1 次提交