mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Juergen Gross <jgross@suse.com>
To: maobibo <maobibo@loongson.cn>,
	Huacai Chen <chenhuacai@kernel.org>,
	Tianrui Zhao <zhaotianrui@loongson.cn>
Cc: loongarch@lists.linux.dev, linux-kernel@vger.kernel.org,
	virtualization@lists.linux.dev, kvm@vger.kernel.org
Subject: Re: [PATCH 4/5] LoongArch: Add paravirt interface for guest kernel
Date: Wed, 3 Jan 2024 09:14:24 +0100	[thread overview]
Message-ID: <df32d011-49c8-4bdb-a695-41cb6fbdf854@suse.com> (raw)
In-Reply-To: <4240d67f-1e5d-f865-c16e-32b64aea8099@loongson.cn>


[-- Attachment #1.1.1: Type: text/plain, Size: 1156 bytes --]

On 03.01.24 09:00, maobibo wrote:
> 
> 
> On 2024/1/3 下午3:40, Jürgen Groß wrote:
>> On 03.01.24 08:16, Bibo Mao wrote:
>>> The patch add paravirt interface for guest kernel, it checks whether
>>> system runs on VM mode. If it is, it will detect hypervisor type. And
>>> returns true it is KVM hypervisor, else return false. Currently only
>>> KVM hypervisor is supported, so there is only hypervisor detection
>>> for KVM type.
>>
>> I guess you are talking of pv_guest_init() here? Or do you mean
>> kvm_para_available()?
> yes, it is pv_guest_init. It will be better if all hypervisor detection
> is called in function pv_guest_init. Currently there is only kvm hypervisor, 
> kvm_para_available is hard-coded in pv_guest_init here.

I think this is no problem as long as there are not more hypervisors
supported.

> 
> I can split file paravirt.c into paravirt.c and kvm.c, paravirt.c is used for 
> hypervisor detection, and move code relative with pv_ipi into kvm.c

I wouldn't do that right now.

Just be a little bit more specific in the commit message (use the related
function name instead of "it").


Juergen

[-- Attachment #1.1.2: OpenPGP public key --]
[-- Type: application/pgp-keys, Size: 3743 bytes --]

[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 495 bytes --]

  reply	other threads:[~2024-01-03  8:14 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-01-03  7:16 [PATCH 0/5] LoongArch: Add pv ipi support on LoongArch VM Bibo Mao
2024-01-03  7:16 ` [PATCH 1/5] LoongArch: KVM: Add hypercall instruction emulation support Bibo Mao
2024-01-03  7:16 ` [PATCH 2/5] LoongArch: KVM: Add cpucfg area for kvm hypervisor Bibo Mao
2024-01-03  7:16 ` [PATCH 3/5] LoongArch/smp: Refine ipi ops on LoongArch platform Bibo Mao
2024-01-04  1:51   ` kernel test robot
2024-01-03  7:16 ` [PATCH 4/5] LoongArch: Add paravirt interface for guest kernel Bibo Mao
2024-01-03  7:40   ` Jürgen Groß
2024-01-03  8:00     ` maobibo
2024-01-03  8:14       ` Juergen Gross [this message]
2024-01-03  8:54         ` maobibo
2024-01-03  7:16 ` [PATCH 5/5] LoongArch: Add pv ipi support on LoongArch system Bibo Mao
2024-01-09  6:00   ` kernel test robot

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=df32d011-49c8-4bdb-a695-41cb6fbdf854@suse.com \
    --to=jgross@suse.com \
    --cc=chenhuacai@kernel.org \
    --cc=kvm@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=loongarch@lists.linux.dev \
    --cc=maobibo@loongson.cn \
    --cc=virtualization@lists.linux.dev \
    --cc=zhaotianrui@loongson.cn \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®