From: "Michael S. Tsirkin" <mst@redhat.com>
To: Bui Quang Minh <minhquangbui99@gmail.com>
Cc: qemu-devel@nongnu.org, "David Woodhouse" <dwmw2@infradead.org>,
"Paolo Bonzini" <pbonzini@redhat.com>,
"Richard Henderson" <richard.henderson@linaro.org>,
"Eduardo Habkost" <eduardo@habkost.net>,
"Marcel Apfelbaum" <marcel.apfelbaum@gmail.com>,
"Igor Mammedov" <imammedo@redhat.com>,
"Alex Bennée" <alex.bennee@linaro.org>,
"Joao Martins" <joao.m.martins@oracle.com>,
"Peter Xu" <peterx@redhat.com>,
"Jason Wang" <jasowang@redhat.com>,
"Philippe Mathieu-Daudé" <philmd@linaro.org>,
"Phil Dennis-Jordan" <lists@philjordan.eu>,
"Santosh Shukla" <santosh.shukla@amd.com>
Subject: Re: [PATCH v11 0/7] Support x2APIC mode with TCG accelerator
Date: Sun, 7 Jan 2024 08:38:23 -0500 [thread overview]
Message-ID: <20240107083613-mutt-send-email-mst@kernel.org> (raw)
In-Reply-To: <322c9b6b-84fa-46a3-b173-34e6e9acc00d@gmail.com>
On Sat, Jan 06, 2024 at 11:33:29PM +0700, Bui Quang Minh wrote:
> On 12/28/23 22:44, Bui Quang Minh wrote:
> > On 12/26/23 16:21, Michael S. Tsirkin wrote:
> > > On Mon, Dec 25, 2023 at 11:40:54PM +0700, Bui Quang Minh wrote:
> > > > Hi everyone,
> > > >
> > > > This series implements x2APIC mode in userspace local APIC and the
> > > > RDMSR/WRMSR helper to access x2APIC registers in x2APIC mode.
> > > > Intel iommu
> > > > and AMD iommu are adjusted to support x2APIC interrupt
> > > > remapping. With this
> > > > series, we can now boot Linux kernel into x2APIC mode with TCG
> > > > accelerator
> > > > using either Intel or AMD iommu.
> > > >
> > > > Testing to boot my own built Linux 6.3.0-rc2, the kernel
> > > > successfully boot
> > > > with enabled x2APIC and can enumerate CPU with APIC ID 257
> > > >
> > > > Using Intel IOMMU
> > > >
> > > > qemu/build/qemu-system-x86_64 \
> > > > -smp 2,maxcpus=260 \
> > > > -cpu qemu64,x2apic=on \
> > > > -machine q35 \
> > > > -device intel-iommu,intremap=on,eim=on \
> > > > -device
> > > > qemu64-x86_64-cpu,x2apic=on,core-id=257,socket-id=0,thread-id=0
> > > > \
> > > > -m 2G \
> > > > -kernel $KERNEL_DIR \
> > > > -append "nokaslr console=ttyS0 root=/dev/sda
> > > > earlyprintk=serial net.ifnames=0" \
> > > > -drive file=$IMAGE_DIR,format=raw \
> > > > -nographic \
> > > > -s
> > > >
> > > > Using AMD IOMMU
> > > >
> > > > qemu/build/qemu-system-x86_64 \
> > > > -smp 2,maxcpus=260 \
> > > > -cpu qemu64,x2apic=on \
> > > > -machine q35 \
> > > > -device amd-iommu,intremap=on,xtsup=on \
> > > > -device
> > > > qemu64-x86_64-cpu,x2apic=on,core-id=257,socket-id=0,thread-id=0
> > > > \
> > > > -m 2G \
> > > > -kernel $KERNEL_DIR \
> > > > -append "nokaslr console=ttyS0 root=/dev/sda
> > > > earlyprintk=serial net.ifnames=0" \
> > > > -drive file=$IMAGE_DIR,format=raw \
> > > > -nographic \
> > > > -s
> > > >
> > > > Testing the emulated userspace APIC with kvm-unit-tests, disable test
> > > > device with this patch
> > >
> > > Seems to break build for windows/amd64
> > > https://gitlab.com/mstredhat/qemu/-/pipelines/1118886361/failures
> >
> > I saw the CI test "pages" failed too. On my CI, most of the time, it
> > failed with
> >
> > $ htags -anT --tree-view=filetree -m qemu_init -t "Welcome to the QEMU
> > sourcecode"
> > 00:24
> > htags: Negative exec line limit = -8099
> >
> > It only succeeded once. I could not reproduce locally. Do you have any
> > ideas what the problem is?
>
> I think I briefly understand why pages test fails. Internally, htags call
> global to parse the output of gtags. When executing command, it expects the
> size of argv and env to 20*1024 (https://github.com/harai/gnu-global/blob/f86ba74d867385353815f8656c4a6cf4029c1f0b/libutil/xargs.c#L92-L105).
> The failed test case only happens when the last commit is patch 7 (test:
> bios-tables-test: add IVRS changed binary) which has a very long commit
> message (around 9000 bytes). By default, Gitlab appends some environment
> variables to the runner and one of them is CI_COMMIT_MESSAGE which contains
> the long commit message. So it exceeds the limit of 20*1024 bytes and fails.
Thanks for debugging this!
So I think we should clear CI_COMMIT_MESSAGE when invoking htags, right?
> In my opinion, this failed test is not so critical and seems unrelated to
> the series so I skip this failed test.
Yes ok to ignore. But even better if we also add a workaround.
> I will post the new version to fix
> the windows/amd64 build soon.
>
> Thanks,
> Quang Minh.
prev parent reply other threads:[~2024-01-07 13:39 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-12-25 16:40 [PATCH v11 0/7] Support x2APIC mode with TCG accelerator Bui Quang Minh
2023-12-25 16:40 ` [PATCH v11 1/7] i386/tcg: implement x2APIC registers MSR access Bui Quang Minh
2023-12-25 16:40 ` [PATCH v11 2/7] apic: add support for x2APIC mode Bui Quang Minh
2023-12-25 16:40 ` [PATCH v11 3/7] apic, i386/tcg: add x2apic transitions Bui Quang Minh
2023-12-25 16:40 ` [PATCH v11 4/7] intel_iommu: allow Extended Interrupt Mode when using userspace APIC Bui Quang Minh
2023-12-25 16:40 ` [PATCH v11 5/7] test: bios-tables-test: prepare IVRS change in ACPI table Bui Quang Minh
2023-12-25 16:41 ` [PATCH v11 6/7] amd_iommu: report x2APIC support to the operating system Bui Quang Minh
2023-12-25 16:41 ` [PATCH v11 7/7] test: bios-tables-test: add IVRS changed binary Bui Quang Minh
2023-12-26 9:21 ` [PATCH v11 0/7] Support x2APIC mode with TCG accelerator Michael S. Tsirkin
2023-12-27 11:03 ` Bui Quang Minh
2023-12-27 15:35 ` Michael S. Tsirkin
2023-12-28 15:44 ` Bui Quang Minh
2024-01-06 16:33 ` Bui Quang Minh
2024-01-07 13:38 ` Michael S. Tsirkin [this message]
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=20240107083613-mutt-send-email-mst@kernel.org \
--to=mst@redhat.com \
--cc=alex.bennee@linaro.org \
--cc=dwmw2@infradead.org \
--cc=eduardo@habkost.net \
--cc=imammedo@redhat.com \
--cc=jasowang@redhat.com \
--cc=joao.m.martins@oracle.com \
--cc=lists@philjordan.eu \
--cc=marcel.apfelbaum@gmail.com \
--cc=minhquangbui99@gmail.com \
--cc=pbonzini@redhat.com \
--cc=peterx@redhat.com \
--cc=philmd@linaro.org \
--cc=qemu-devel@nongnu.org \
--cc=richard.henderson@linaro.org \
--cc=santosh.shukla@amd.com \
/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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.