All of lore.kernel.org
 help / color / mirror / Atom feed
From: "Wang, Wenchao" <wenchao.wang@intel.com>
To: Peter Maydell <peter.maydell@linaro.org>,
	Paolo Bonzini <pbonzini@redhat.com>,
	Stefan Hajnoczi <stefanha@redhat.com>
Cc: Thomas Huth <thuth@redhat.com>,
	"qemu-devel@nongnu.org" <qemu-devel@nongnu.org>,
	Richard Henderson <richard.henderson@linaro.org>
Subject: RE: [PATCH] target/i386/hax: Add XCR0 support
Date: Fri, 16 Dec 2022 08:47:37 +0000	[thread overview]
Message-ID: <BN6PR11MB408165E8D759049FF90B093D87E69@BN6PR11MB4081.namprd11.prod.outlook.com> (raw)
In-Reply-To: <CAFEAcA-kdF64fzX8Qx4NHstqaTVpqufmiRmCio5V33Lv_xWBBA@mail.gmail.com>

Thanks for Peter's reply. Since it is better to pull the patch by x86 maintainers, could any maintainer help to merge it, @Paolo Bonzini or @Stefan Hajnoczi? The original patch is attached below. Thanks a lot.


Best Regards,
Wenchao

---------------------------------

From b1789f2523d06798b8883664bfa9a9df797bfccf Mon Sep 17 00:00:00 2001
From: Wenchao Wang <wenchao.wang@intel.com>
Date: Fri, 25 Nov 2022 18:37:34 +0800
Subject: [PATCH] target/i386/hax: Add XCR0 support

Introduce extended control register XCR0 to support XSAVE feature set.

Note: This change requires at least HAXM v7.8.0 to support.

Reviewed-by: Hang Yuan <hang.yuan@intel.com>
Signed-off-by: Wenchao Wang <wenchao.wang@intel.com>
---
target/i386/hax/hax-interface.h | 2 ++
1 file changed, 2 insertions(+)

diff --git a/target/i386/hax/hax-interface.h b/target/i386/hax/hax-interface.h index 537ae084e9..1d13bb2380 100644
--- a/target/i386/hax/hax-interface.h
+++ b/target/i386/hax/hax-interface.h
@@ -201,6 +201,8 @@ struct vcpu_state_t {
     uint64_t _cr3;
     uint64_t _cr4;

+    uint64_t _xcr0;
+
     uint64_t _dr0;
     uint64_t _dr1;
     uint64_t _dr2;
--
2.17.1


-----Original Message-----
From: Peter Maydell <peter.maydell@linaro.org> 
Sent: Thursday, December 15, 2022 18:27
To: Wang, Wenchao <wenchao.wang@intel.com>
Cc: Thomas Huth <thuth@redhat.com>; Paolo Bonzini <pbonzini@redhat.com>; Stefan Hajnoczi <stefanha@redhat.com>; qemu-devel@nongnu.org; Richard Henderson <richard.henderson@linaro.org>
Subject: Re: [PATCH] target/i386/hax: Add XCR0 support

On Thu, 15 Dec 2022 at 09:45, Wang, Wenchao <wenchao.wang@intel.com> wrote:
>
> Hi, Thomas,
>
> Thanks for your reply. I have attempted to follow you suggestions but it always failed on tagging a GPG-signed tag before submitting the pull request. I have used GPG 2.2.4 to generate a RSA4096 GPG secret key and pasted the public key on GitHub successfully.
>
> $ git tag -s pull-request-hax -m 'target/i386/hax: Add XCR0 support'
> error: gpg failed to sign the data
> error: unable to sign the tag
>
> Meanwhile, could @Paolo Bonzini or @Stefan Hajnoczi help to pick the patch up as there is only one-line change for HAX and we have verified it for all guest launching? Thanks a lot.

Yes, please. For a single trivial patch I strongly prefer that some existing (in this case x86) maintainer takes it in their pullreq, rather than my having to deal with a pullreq submission from a new-to-the-process person.
(It's extra work to check submissions from new people, which is fine if they're going to be doing them a lot in future, but for a one-off it's a waste of their time and mine.)

thanks
-- PMM

  reply	other threads:[~2022-12-16  8:48 UTC|newest]

Thread overview: 22+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-12-14  9:15 [PATCH] target/i386/hax: Add XCR0 support Wang, Wenchao
2022-12-14  9:39 ` Thomas Huth
2022-12-15  9:45   ` Wang, Wenchao
2022-12-15 10:26     ` Peter Maydell
2022-12-16  8:47       ` Wang, Wenchao [this message]
  -- strict thread matches above, loose matches on Subject: below --
2022-11-25 12:18 Wang, Wenchao
2022-11-25 13:37 ` Philippe Mathieu-Daudé
2022-11-28  8:10   ` Wang, Wenchao
2022-12-27 15:13     ` Paolo Bonzini
2022-12-28  2:55       ` Wang, Wenchao
2022-12-28  8:23         ` Paolo Bonzini
2022-12-28  8:54           ` Wang, Wenchao
2023-01-10  9:30           ` Wang, Wenchao
2022-12-28  3:28       ` Wang, Wenchao
2022-12-05  8:35   ` Wang, Wenchao
2022-12-05  9:05     ` Philippe Mathieu-Daudé
2022-12-05  9:10       ` Wang, Wenchao
2022-12-08  8:22       ` Wang, Wenchao
2022-12-19  9:01       ` Wang, Wenchao
2022-12-19  9:09         ` Philippe Mathieu-Daudé
2022-12-19  9:19           ` Wang, Wenchao
2022-12-27  9:15           ` Wang, Wenchao

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=BN6PR11MB408165E8D759049FF90B093D87E69@BN6PR11MB4081.namprd11.prod.outlook.com \
    --to=wenchao.wang@intel.com \
    --cc=pbonzini@redhat.com \
    --cc=peter.maydell@linaro.org \
    --cc=qemu-devel@nongnu.org \
    --cc=richard.henderson@linaro.org \
    --cc=stefanha@redhat.com \
    --cc=thuth@redhat.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.