[PATCH] riscv: remove unused SBI helpers and exports

Anup Patel anup at brainfault.org
Thu May 27 06:21:39 PDT 2021


On Thu, May 27, 2021 at 6:45 PM Paolo Bonzini <pbonzini at redhat.com> wrote:
>
> On 27/05/21 15:10, Anup Patel wrote:
> >> -
> >> -/**
> >> - * sbi_remote_hfence_vvma_asid() - Execute HFENCE.VVMA instructions on given
> >> - * remote harts for current guest virtual address range belonging to a specific
> >> - * ASID.
> >> - *
> >> - * @hart_mask: A cpu mask containing all the target harts.
> >> - * @start: Start of the current guest virtual address
> >> - * @size: Total size of the current guest virtual address range.
> >> - * @asid: The value of address space identifier (ASID).
> >> - *
> >> - * Return: None
> >> - */
> >> -int sbi_remote_hfence_vvma_asid(const unsigned long *hart_mask,
> >> -                               unsigned long start,
> >> -                               unsigned long size,
> >> -                               unsigned long asid)
> >> -{
> >> -       return __sbi_rfence(SBI_EXT_RFENCE_REMOTE_HFENCE_VVMA_ASID,
> >> -                           hart_mask, start, size, asid, 0);
> >> -}
> >> -EXPORT_SYMBOL(sbi_remote_hfence_vvma_asid);
> > All sbi_remote_hfence_xyz() calls are used by KVM RISC-V module.
> >
>
> Why aren't all these added by the series that add the module (not
> talking about KVM only)?

These calls are part of SBI v0.2 spec hence were added as part of
SBI v0.2 support patches.

Regards,
Anup

>
> Paolo
>



More information about the linux-riscv mailing list