1. 20 1月, 2022 5 次提交
  2. 31 10月, 2021 2 次提交
    • A
      RISC-V: KVM: Fix GPA passed to __kvm_riscv_hfence_gvma_xyz() functions · 7c8de080
      Anup Patel 提交于
      The parameter passed to HFENCE.GVMA instruction in rs1 register
      is guest physical address right shifted by 2 (i.e. divided by 4).
      
      Unfortunately, we overlooked the semantics of rs1 registers for
      HFENCE.GVMA instruction and never right shifted guest physical
      address by 2. This issue did not manifest for hypervisors till
      now because:
        1) Currently, only __kvm_riscv_hfence_gvma_all() and SBI
           HFENCE calls are used to invalidate TLB.
        2) All H-extension implementations (such as QEMU, Spike,
           Rocket Core FPGA, etc) that we tried till now were
           conservatively flushing everything upon any HFENCE.GVMA
           instruction.
      
      This patch fixes GPA passed to __kvm_riscv_hfence_gvma_vmid_gpa()
      and __kvm_riscv_hfence_gvma_gpa() functions.
      
      Fixes: fd7bb4a2 ("RISC-V: KVM: Implement VMID allocator")
      Reported-by: NIan Huang <ihuang@ventanamicro.com>
      Signed-off-by: NAnup Patel <anup.patel@wdc.com>
      Message-Id: <20211026170136.2147619-4-anup.patel@wdc.com>
      Signed-off-by: NPaolo Bonzini <pbonzini@redhat.com>
      7c8de080
    • A
      RISC-V: KVM: Factor-out FP virtualization into separate sources · 0a86512d
      Anup Patel 提交于
      The timer and SBI virtualization is already in separate sources.
      In future, we will have vector and AIA virtualization also added
      as separate sources.
      
      To align with above described modularity, we factor-out FP
      virtualization into separate sources.
      Signed-off-by: NAnup Patel <anup.patel@wdc.com>
      Message-Id: <20211026170136.2147619-3-anup.patel@wdc.com>
      Signed-off-by: NPaolo Bonzini <pbonzini@redhat.com>
      0a86512d
  3. 29 10月, 2021 1 次提交
  4. 27 10月, 2021 2 次提交
  5. 15 10月, 2021 1 次提交
  6. 05 10月, 2021 1 次提交
    • T
      riscv/vdso: Add support for time namespaces · dffe11e2
      Tong Tiangen 提交于
      Implement generic vdso time namespace support which also enables time
      namespaces for riscv. This is quite similar to what arm64 does.
      
      selftest/timens test result:
        1..10
        ok 1 Passed for CLOCK_BOOTTIME (syscall)
        ok 2 Passed for CLOCK_BOOTTIME (vdso)
        ok 3 # SKIP CLOCK_BOOTTIME_ALARM isn't supported
        ok 4 # SKIP CLOCK_BOOTTIME_ALARM isn't supported
        ok 5 Passed for CLOCK_MONOTONIC (syscall)
        ok 6 Passed for CLOCK_MONOTONIC (vdso)
        ok 7 Passed for CLOCK_MONOTONIC_COARSE (syscall)
        ok 8 Passed for CLOCK_MONOTONIC_COARSE (vdso)
        ok 9 Passed for CLOCK_MONOTONIC_RAW (syscall)
        ok 10 Passed for CLOCK_MONOTONIC_RAW (vdso)
        # Totals: pass:8 fail:0 xfail:0 xpass:0 skip:2 error:0
      Signed-off-by: NTong Tiangen <tongtiangen@huawei.com>
      Signed-off-by: NPalmer Dabbelt <palmerdabbelt@google.com>
      dffe11e2
  7. 04 10月, 2021 12 次提交
  8. 03 10月, 2021 2 次提交
  9. 01 10月, 2021 1 次提交
  10. 14 9月, 2021 1 次提交
  11. 11 9月, 2021 1 次提交
  12. 26 8月, 2021 1 次提交
  13. 25 8月, 2021 1 次提交
    • S
      riscv: explicitly use symbol offsets for VDSO · fde9c59a
      Saleem Abdulrasool 提交于
      The current implementation of the `__rt_sigaction` reference computed an
      absolute offset relative to the mapped base of the VDSO.  While this can
      be handled in the medlow model, the medany model cannot handle this as
      it is meant to be position independent.  The current implementation
      relied on the BFD linker relaxing the PC-relative relocation into an
      absolute relocation as it was a near-zero address allowing it to be
      referenced relative to `zero`.
      
      We now extract the offsets and create a generated header allowing the
      build with LLVM and lld to succeed as we no longer depend on the linker
      rewriting address references near zero.  This change was largely
      modelled after the ARM64 target which does something similar.
      Signed-off-by: NSaleem Abdulrasool <abdulras@google.com>
      Tested-by: NNathan Chancellor <nathan@kernel.org>
      Signed-off-by: NPalmer Dabbelt <palmerdabbelt@google.com>
      fde9c59a
  14. 14 8月, 2021 1 次提交
  15. 12 8月, 2021 2 次提交
  16. 07 8月, 2021 1 次提交
  17. 04 8月, 2021 1 次提交
  18. 22 7月, 2021 1 次提交
  19. 21 7月, 2021 1 次提交
  20. 09 7月, 2021 2 次提交