public inbox for linux-arch@vger.kernel.org
 help / color / mirror / Atom feed
From: Nathan Chancellor <nathan@kernel.org>
To: xiafukun <xiafukun@huawei.com>, Ard Biesheuvel <ardb@kernel.org>
Cc: arnd@arndb.de, keescook@chromium.org, linux-arch@vger.kernel.org,
	linux-kernel@vger.kernel.org, yusongping@huawei.com,
	zhaowenhui8@huawei.comx
Subject: Re: vmlinux.lds.h: Bug report: unable to handle page fault when start the virtual machine with qemu
Date: Tue, 8 Nov 2022 07:35:36 -0700	[thread overview]
Message-ID: <Y2ppOJ4zguDznRAc@dev-arch.thelio-3990X> (raw)
In-Reply-To: <b714ad78-4689-ad0b-9316-efcc1665f6bf@huawei.com>

On Tue, Nov 08, 2022 at 03:46:32PM +0800, xiafukun wrote:
> Thank you for your reply.
> We tested your changes to this patch and did fix the issue. Following the
> solution you provided, we recompile the kernel and successfully start the
> virtual machine.

Thank you a lot for testing and sorry about the breakage in the first
place :(

Ard, were you going to send a patch? Feel free to preemptively add:

Reviewed-by: Nathan Chancellor <nathan@kernel.org>

if so; otherwise, I can send one later today.

> 在 2022/11/8 0:00, Ard Biesheuvel 写道:
> > 
> > That patch looks incorrect to me. Without CONFIG_SMP, the PERCPU
> > sections are not instantiated, and the only copy of those variables is
> > created in the ordinary .data/.bss sections
> > 
> > Does the change below fix the issue for you?
> > 
> > --- a/include/asm-generic/vmlinux.lds.h
> > +++ b/include/asm-generic/vmlinux.lds.h
> > @@ -347,6 +347,7 @@
> >  #define DATA_DATA                                                      \
> >         *(.xiptext)                                                     \
> >         *(DATA_MAIN)                                                    \
> > +       *(.data..decrypted)                                             \
> >         *(.ref.data)                                                    \
> >         *(.data..shared_aligned) /* percpu related */                   \
> >         MEM_KEEP(init.data*)                                            \
> > @@ -995,7 +996,6 @@
> >  #ifdef CONFIG_AMD_MEM_ENCRYPT
> >  #define PERCPU_DECRYPTED_SECTION                                       \
> >         . = ALIGN(PAGE_SIZE);                                           \
> > -       *(.data..decrypted)                                             \
> >         *(.data..percpu..decrypted)                                     \
> >         . = ALIGN(PAGE_SIZE);
> >  #else

  reply	other threads:[~2022-11-08 14:35 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-11-07  3:27 vmlinux.lds.h: Bug report: unable to handle page fault when start the virtual machine with qemu zhaowenhui (A)
2022-11-07 16:00 ` Ard Biesheuvel
2022-11-08  7:46   ` xiafukun
2022-11-08 14:35     ` Nathan Chancellor [this message]
2022-11-08 15:14       ` Ard Biesheuvel
2022-11-08 15:16         ` Nathan Chancellor

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=Y2ppOJ4zguDznRAc@dev-arch.thelio-3990X \
    --to=nathan@kernel.org \
    --cc=ardb@kernel.org \
    --cc=arnd@arndb.de \
    --cc=keescook@chromium.org \
    --cc=linux-arch@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=xiafukun@huawei.com \
    --cc=yusongping@huawei.com \
    --cc=zhaowenhui8@huawei.comx \
    /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