qemu-devel
[Top][All Lists]
Advanced

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

Re: [PATCH] include virtualization mode as part of priv


From: Alistair Francis
Subject: Re: [PATCH] include virtualization mode as part of priv
Date: Thu, 28 Nov 2024 12:43:49 +1000

On Thu, Nov 28, 2024 at 11:43 AM Yanfeng <yfliu2008@qq.com> wrote:
>
> On Thu, 2024-11-28 at 10:39 +1000, Alistair Francis wrote:
> > On Thu, Nov 28, 2024 at 12:09 AM Yanfeng <yfliu2008@qq.com> wrote:
> > >
> > >
> > > When debugging hypervisor extension based programs, it is convenient to 
> > > see
> > > the
> > > current virtualization mode from GDB debugger.
> > >
> > > This patch shares the virtualization mode as part of the existing "priv"
> > > virtual
> > > register, or more specifically via bit(8).
> >
> > Interesting concept. This seems fine to me, I don't think this will
> > break any existing user.
> >
> > Another option though is to add a "virt" virtual register, which might
> > be easier for people to figure out as it isn't obvious from GDB what
> > bit 8 means. That might be a better approach as then it's really clear
> > what the register means.
> >
> > >
> > >
> > > > From 0d82561b11e1c2835f14ba5460cfff52f0087530 Mon Sep 17 00:00:00 2001
> > > From: Yanfeng Liu <yfliu2008@qq.com>
> > > Date: Mon, 18 Nov 2024 08:03:15 +0800
> > > Subject: [PATCH] riscv/gdb: share virt mode via priv register
> >
> > It seems like something strange happened when you submitted the patch.
> > Can you fix this up?
> >
> I prepared a patch file via the following steps:
>
>  - Did  `git format-patch --stdout -1 > /tmp/patch`,
>  - Pasted the /tmp/patch content to email composer window,
>  - Filled in email receipts, subject line and a few lines before the patch
> context in composer window.

You should use `git send-email` instead, see the QEMU documentation
for more details:
https://www.qemu.org/docs/master/devel/submitting-a-patch.html#submitting-your-patches

>
> I am wondering if the lines added before the formatted patch content in last
> step caused trouble?
> When resending email, should I use [patch v2] in subject line? I guess it is
> unnecessary as it is the same patch.

Ideally I think a "virt" virtual register would be a better approach,
so if you could do that instead and send a v2 that would be great :)

Alistair



reply via email to

[Prev in Thread] Current Thread [Next in Thread]