From: Bui Quang Minh <minhquangbui99@gmail.com>
To: Igor Mammedov <imammedo@redhat.com>
Cc: qemu-devel@nongnu.org, Paolo Bonzini <pbonzini@redhat.com>,
Richard Henderson <richard.henderson@linaro.org>,
Eduardo Habkost <eduardo@habkost.net>,
"Michael S . Tsirkin" <mst@redhat.com>,
Marcel Apfelbaum <marcel.apfelbaum@gmail.com>
Subject: Re: [PATCH 1/4] apic: add support for x2APIC mode
Date: Sat, 25 Feb 2023 17:15:17 +0700 [thread overview]
Message-ID: <ee3d42c1-9e52-57f9-eba8-a5dc3a45d14f@gmail.com> (raw)
In-Reply-To: <20230224152932.1de436cb@imammedo.users.ipa.redhat.com>
On 2/24/23 21:29, Igor Mammedov wrote:
> On Tue, 21 Feb 2023 23:04:57 +0700
> Bui Quang Minh <minhquangbui99@gmail.com> wrote:
>
>> This commit refactors APIC registers read/write function to support both
>> MMIO read/write in xAPIC mode and MSR read/write in x2APIC mode. Also,
>> support larger APIC ID, self IPI, new IPI destination determination in
>> x2APIC mode.
>>
>> Signed-off-by: Bui Quang Minh <minhquangbui99@gmail.com>
>> ---
>> hw/intc/apic.c | 211 +++++++++++++++++++++++++-------
>> hw/intc/apic_common.c | 2 +-
>> include/hw/i386/apic.h | 5 +-
>> include/hw/i386/apic_internal.h | 2 +-
>> 4 files changed, 172 insertions(+), 48 deletions(-)
>>
>> diff --git a/hw/intc/apic.c b/hw/intc/apic.c
>> index 2d3e55f4e2..205d5923ec 100644
>> --- a/hw/intc/apic.c
>> +++ b/hw/intc/apic.c
>> @@ -30,6 +30,7 @@
>> #include "hw/i386/apic-msidef.h"
>> #include "qapi/error.h"
>> #include "qom/object.h"
>> +#include "tcg/helper-tcg.h"
>>
>> #define MAX_APICS 255
>
> I'm curious how does it work without increasing ^^^?
Hmm, my commit message is not entirely correct. In this series, some
operations (send IPI, IPI destination determination) have been updated
to support x2APIC mode. However, the emulated APIC still doesn't support
APIC ID larger than 255 because currently, we use a fixed length (255 +
1) array to manage local APICs. So to support larger APIC ID, I think we
need to find any way to manage those, as the possible allocated APIC ID
range is large and maybe the allocated APIC ID is sparse which makes
fixed length array so wasteful.
Thanks,
Quang Minh.
next prev parent reply other threads:[~2023-02-25 10:15 UTC|newest]
Thread overview: 22+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-02-21 16:04 [PATCH 0/4] Support x2APIC mode with TCG accelerator Bui Quang Minh
2023-02-21 16:04 ` [PATCH 1/4] apic: add support for x2APIC mode Bui Quang Minh
2023-02-24 14:29 ` Igor Mammedov
2023-02-25 10:15 ` Bui Quang Minh [this message]
2023-02-27 16:07 ` Igor Mammedov
2023-02-28 14:34 ` Bui Quang Minh
2023-02-28 16:39 ` Igor Mammedov
2023-03-04 14:10 ` Bui Quang Minh
2023-03-06 10:43 ` Igor Mammedov
2023-03-06 15:51 ` David Woodhouse
2023-03-06 16:39 ` Bui Quang Minh
2023-03-06 16:50 ` David Woodhouse
2023-03-07 11:34 ` Igor Mammedov
2023-03-07 11:25 ` Igor Mammedov
2023-03-06 16:01 ` David Woodhouse
2023-02-21 16:04 ` [PATCH 2/4] i386/tcg: implement x2APIC registers MSR access Bui Quang Minh
2023-02-21 16:04 ` [PATCH 3/4] intel_iommu: allow Extended Interrupt Mode when using userspace local APIC Bui Quang Minh
2023-02-21 16:05 ` [PATCH 4/4] test/avocado: test Linux boot up in x2APIC with " Bui Quang Minh
2023-03-06 19:51 ` David Woodhouse
2023-03-07 7:22 ` Alex Bennée
2023-03-07 11:39 ` Igor Mammedov
2023-03-06 17:55 ` [PATCH 0/4] Support x2APIC mode with TCG accelerator David Woodhouse
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=ee3d42c1-9e52-57f9-eba8-a5dc3a45d14f@gmail.com \
--to=minhquangbui99@gmail.com \
--cc=eduardo@habkost.net \
--cc=imammedo@redhat.com \
--cc=marcel.apfelbaum@gmail.com \
--cc=mst@redhat.com \
--cc=pbonzini@redhat.com \
--cc=qemu-devel@nongnu.org \
--cc=richard.henderson@linaro.org \
/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;
as well as URLs for NNTP newsgroup(s).