From: Xi Ruoyao <xry111@xry111.site>
To: WANG Xuerui <kernel@xen0n.name>, maobibo <maobibo@loongson.cn>,
Paolo Bonzini <pbonzini@redhat.com>,
Huacai Chen <chenhuacai@kernel.org>
Cc: Greg Kroah-Hartman <gregkh@linuxfoundation.org>,
loongarch@lists.linux.dev, linux-kernel@vger.kernel.org,
kvm@vger.kernel.org, Jens Axboe <axboe@kernel.dk>,
Mark Brown <broonie@kernel.org>,
Alex Deucher <alexander.deucher@amd.com>,
Oliver Upton <oliver.upton@linux.dev>,
Tianrui Zhao <zhaotianrui@loongson.cn>
Subject: Re: [PATCH v10 00/30] Add KVM LoongArch support
Date: Sun, 21 May 2023 19:17:47 +0800 [thread overview]
Message-ID: <aa66d0049add6a780a8f04f998a24eef25605bde.camel@xry111.site> (raw)
In-Reply-To: <4529ee5b-364a-7819-c727-71cf94057b8b@xen0n.name>
On Sun, 2023-05-21 at 18:22 +0800, WANG Xuerui wrote:
/* snip */
> (BTW, how do people usually deal with pre-release hardware wit
> documentation not out yet? I suppose similar situations like this should
> turn up fairly often.)
Intel normally releases the doc much earlier than shipping the hardware
to customers. For example, the x86 Linear Address Masking doc has been
released in 2020 (allowing Linus himself to hack the LAM code in kernel
:), but AFAIK there is no Intel CPU models released with LAM support yet
(at least my Raptor Lake does not indicate LAM in cpuid, or maybe I'm
missing the latest server models?)
For other vendors I'm not sure.
> Aside from this, there's another point: use of undocumented instructions
> in raw form with ".word". This currently doesn't work in LLVM/Clang,
Hmm, is it an inherent limitation of Clang or it's simply not
implemented for LoongArch yet? On x86_64 I tried ".byte 0x90" in the
inline assembly and Clang correctly emits a nop instruction.
> thus will slightly set back the ongoing ClangBuiltLinux enablement
> effort (currently all such usages in arch/loongarch are related to
> "invtlb" which has perfect support, and can be removed). AFAIK, such
> practice dates back to the LoongISA times, when the Loongson extended
> opcodes weren't supported by the upstream MIPS toolchains for some
> reason; but LoongArch is independent and not bounded by anyone else now,
> so it's better in terms of maintainability to just add the instructions
> to the toolchains. People will not be inconvenienced by having to use
> bleeding-edge LoongArch toolchains because upstream LoongArch devs have
> always been doing this.
Or it may be resolved by some fancy #ifdef directives.
--
Xi Ruoyao <xry111@xry111.site>
School of Aerospace Science and Technology, Xidian University
next prev parent reply other threads:[~2023-05-21 11:45 UTC|newest]
Thread overview: 40+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-05-15 2:14 Tianrui Zhao
2023-05-15 2:14 ` [PATCH v10 01/30] LoongArch: KVM: Add kvm related header files Tianrui Zhao
2023-05-15 2:14 ` [PATCH v10 02/30] LoongArch: KVM: Implement kvm module related interface Tianrui Zhao
2023-05-15 2:14 ` [PATCH v10 03/30] LoongArch: KVM: Implement kvm hardware enable, disable interface Tianrui Zhao
2023-05-15 2:14 ` [PATCH v10 04/30] LoongArch: KVM: Implement VM related functions Tianrui Zhao
2023-05-15 2:14 ` [PATCH v10 05/30] LoongArch: KVM: Add vcpu related header files Tianrui Zhao
2023-05-15 2:14 ` [PATCH v10 06/30] LoongArch: KVM: Implement vcpu create and destroy interface Tianrui Zhao
2023-05-15 2:14 ` [PATCH v10 07/30] LoongArch: KVM: Implement vcpu run interface Tianrui Zhao
2023-05-15 2:15 ` [PATCH v10 08/30] LoongArch: KVM: Implement vcpu handle exit interface Tianrui Zhao
2023-05-15 2:15 ` [PATCH v10 09/30] LoongArch: KVM: Implement vcpu get, vcpu set registers Tianrui Zhao
2023-05-15 2:15 ` [PATCH v10 10/30] LoongArch: KVM: Implement vcpu ENABLE_CAP ioctl interface Tianrui Zhao
2023-05-15 2:15 ` [PATCH v10 11/30] LoongArch: KVM: Implement fpu related operations for vcpu Tianrui Zhao
2023-05-15 2:15 ` [PATCH v10 12/30] LoongArch: KVM: Implement vcpu interrupt operations Tianrui Zhao
2023-05-15 2:15 ` [PATCH v10 13/30] LoongArch: KVM: Implement misc vcpu related interfaces Tianrui Zhao
2023-05-15 2:15 ` [PATCH v10 14/30] LoongArch: KVM: Implement vcpu load and vcpu put operations Tianrui Zhao
2023-05-15 2:15 ` [PATCH v10 15/30] LoongArch: KVM: Implement vcpu status description Tianrui Zhao
2023-05-15 2:15 ` [PATCH v10 16/30] LoongArch: KVM: Implement update VM id function Tianrui Zhao
2023-05-15 2:15 ` [PATCH v10 17/30] LoongArch: KVM: Implement virtual machine tlb operations Tianrui Zhao
2023-05-15 2:15 ` [PATCH v10 18/30] LoongArch: KVM: Implement vcpu timer operations Tianrui Zhao
2023-05-15 2:15 ` [PATCH v10 19/30] LoongArch: KVM: Implement kvm mmu operations Tianrui Zhao
2023-05-15 2:15 ` [PATCH v10 20/30] LoongArch: KVM: Implement handle csr excption Tianrui Zhao
2023-05-15 2:15 ` [PATCH v10 21/30] LoongArch: KVM: Implement handle iocsr exception Tianrui Zhao
2023-05-15 2:15 ` [PATCH v10 22/30] LoongArch: KVM: Implement handle idle exception Tianrui Zhao
2023-05-15 2:15 ` [PATCH v10 23/30] LoongArch: KVM: Implement handle gspr exception Tianrui Zhao
2023-05-15 2:15 ` [PATCH v10 24/30] LoongArch: KVM: Implement handle mmio exception Tianrui Zhao
2023-05-15 2:15 ` [PATCH v10 25/30] LoongArch: KVM: Implement handle fpu exception Tianrui Zhao
2023-05-15 2:15 ` [PATCH v10 26/30] LoongArch: KVM: Implement kvm exception vector Tianrui Zhao
2023-05-15 2:15 ` [PATCH v10 27/30] LoongArch: KVM: Implement vcpu world switch Tianrui Zhao
2023-05-15 2:15 ` [PATCH v10 28/30] LoongArch: KVM: Implement probe virtualization when LoongArch cpu init Tianrui Zhao
2023-05-15 2:15 ` [PATCH v10 29/30] LoongArch: KVM: Enable kvm config and add the makefile Tianrui Zhao
2023-05-15 2:15 ` [PATCH v10 30/30] LoongArch: KVM: Supplement kvm document about LoongArch-specific part Tianrui Zhao
2023-05-18 2:56 ` [PATCH v10 00/30] Add KVM LoongArch support maobibo
2023-05-21 10:22 ` WANG Xuerui
2023-05-21 11:17 ` Xi Ruoyao [this message]
2023-05-22 1:39 ` maobibo
2023-05-22 2:37 ` WANG Xuerui
2023-05-22 6:17 ` Xi Ruoyao
2023-05-23 2:54 ` maobibo
2023-05-23 10:27 ` WANG Xuerui
2023-05-23 11:57 ` maobibo
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=aa66d0049add6a780a8f04f998a24eef25605bde.camel@xry111.site \
--to=xry111@xry111.site \
--cc=alexander.deucher@amd.com \
--cc=axboe@kernel.dk \
--cc=broonie@kernel.org \
--cc=chenhuacai@kernel.org \
--cc=gregkh@linuxfoundation.org \
--cc=kernel@xen0n.name \
--cc=kvm@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=loongarch@lists.linux.dev \
--cc=maobibo@loongson.cn \
--cc=oliver.upton@linux.dev \
--cc=pbonzini@redhat.com \
--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®