Re: [PATCH v3] LoongArch: KVM: Add PMU support

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



在 2024/4/25 下午3:18, Markus Elfring 写道:
On KVM side. we save the host PMU CSRs into structure kvm_context.
If the host supports the PMU feature. When entering guest mode.
we save the host PMU CSRs and restore the guest PMU CSRs.
…

I suggest to reconsider the usage of a few dots in such a wording approach.


…
Signed-off-by: Song Gao <gaosong@xxxxxxxxxxx>

v2->V3:
…

* Please put your version descriptions behind a marker line.
   https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/tree/Documentation/process/submitting-patches.rst?h=v6.9-rc5#n713
Got  it,  thank for you suggestion.
* How do you think about to avoid the repetition of version identifiers here?
I'm new to this, is the following example correct?

[...]

Signed-off-by: Song Gao <gaosong@xxxxxxxxxxx>
---

v4:
  - Use the macro kvm_read_clear_hw_gcsr to optimize the code
    and remove redundant code.

V3:
  - When saving the PMU context, clear the CTRL register
     before reading the CNTR register.
  - Put kvm_lose_pmu() in kvm_handler_exit().

v2:
  - Add new vcpu->request flag KVM_REQ_PMU. If we use PMU,
    We need to set this flag;
  - Add kvm_check_pmu() to kvm_pre_enter_guest();
  - On _kvm_setcsr(), after modifying the PMU CSR register value,
     if we use PMU, we need to set KVM_REQ_PMU.

Patch v3: https://lore.kernel.org/all/20240424091813.1471440-1-gaosong@xxxxxxxxxxx/ Patch v2: https://lore.kernel.org/all/20240417065236.500011-1-gaosong@xxxxxxxxxxx/ Patch v1: https://lore.kernel.org/all/20240410095812.2943706-1-gaosong@xxxxxxxxxxx/

---

[...]

Regards.
Song Gao

Regards,
Markus





[Index of Archives]     [Kernel Development]     [Kernel Announce]     [Kernel Newbies]     [Linux Networking Development]     [Share Photos]     [IDE]     [Security]     [Git]     [Netfilter]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Device Mapper]

  Powered by Linux