All of lore.kernel.org
 help / color / mirror / Atom feed
From: Alexandru Stefan ISAILA <aisaila@bitdefender.com>
To: "JBeulich@suse.com" <JBeulich@suse.com>,
	"tamas@tklengyel.com" <tamas@tklengyel.com>
Cc: "George.Dunlap@eu.citrix.com" <George.Dunlap@eu.citrix.com>,
	"andrew.cooper3@citrix.com" <andrew.cooper3@citrix.com>,
	"rcojocaru@bitdefender.com" <rcojocaru@bitdefender.com>,
	"xen-devel@lists.xen.org" <xen-devel@lists.xen.org>
Subject: Re: [PATCH v1 2/2] hvm/svm: Enable EMUL_UNIMPLEMENTED events on svm
Date: Mon, 2 Jul 2018 11:29:41 +0000	[thread overview]
Message-ID: <1530531007.8880.22.camel@bitdefender.com> (raw)
In-Reply-To: <5B3A058F02000078001CFB91@prv1-mh.provo.novell.com>

On Lu, 2018-07-02 at 04:59 -0600, Jan Beulich wrote:
> >
> > >
> > > >
> > > > On 11.05.18 at 13:11, <aisaila@bitdefender.com> wrote:
> > --- a/xen/include/asm-x86/monitor.h
> > +++ b/xen/include/asm-x86/monitor.h
> > @@ -83,16 +83,13 @@ static inline uint32_t
> > arch_monitor_get_capabilities(struct domain *d)
> >                      (1U << XEN_DOMCTL_MONITOR_EVENT_INTERRUPT) |
> >                      (1U << XEN_DOMCTL_MONITOR_EVENT_CPUID) |
> >                      (1U <<
> > XEN_DOMCTL_MONITOR_EVENT_DEBUG_EXCEPTION) |
> > -                    (1U <<
> > XEN_DOMCTL_MONITOR_EVENT_WRITE_CTRLREG));
> > +                    (1U << XEN_DOMCTL_MONITOR_EVENT_WRITE_CTRLREG)
> > |
> > +                    (1U <<
> > XEN_DOMCTL_MONITOR_EVENT_EMUL_UNIMPLEMENTED));
> >
> > -    if ( cpu_has_vmx )
> > -    {
> > -        capabilities |= (1U <<
> > XEN_DOMCTL_MONITOR_EVENT_EMUL_UNIMPLEMENTED);
> >
> > -        /* Since we know this is on VMX, we can just call the hvm
> > func */
> > -        if ( hvm_is_singlestep_supported() )
> > -            capabilities |= (1U <<
> > XEN_DOMCTL_MONITOR_EVENT_SINGLESTEP);
> > -    }
> > +     /* Check if we are on VMX and then we can just call the hvm
> > func */
> > +    if ( cpu_has_vmx && hvm_is_singlestep_supported() )
> > +        capabilities |= (1U <<
> > XEN_DOMCTL_MONITOR_EVENT_SINGLESTEP);
> I was about to apply this when I noticed the seemingly unnecessary
> cpu_has_vmx here: hvm_is_singlestep_supported() is precisely the
> abstraction to make such extra checking unnecessary. If you agree,
> I can drop it while applying.
>
Yes I agree with this and it is ok to drop it.

Thanks,
Alex

________________________
This email was scanned by Bitdefender
_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xenproject.org
https://lists.xenproject.org/mailman/listinfo/xen-devel

  reply	other threads:[~2018-07-02 11:29 UTC|newest]

Thread overview: 21+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-05-11 11:11 [PATCH v1 1/2] x86/mm: Add mem access rights to NPT Alexandru Isaila
2018-05-11 11:11 ` [PATCH v1 2/2] hvm/svm: Enable EMUL_UNIMPLEMENTED events on svm Alexandru Isaila
2018-05-14 17:56   ` Tamas K Lengyel
2018-05-18 15:32   ` Jan Beulich
2018-05-18 16:00     ` Tamas K Lengyel
2018-05-18 18:22       ` Razvan Cojocaru
2018-07-02 10:59   ` Jan Beulich
2018-07-02 11:29     ` Alexandru Stefan ISAILA [this message]
2018-07-05 13:35   ` Jan Beulich
2018-05-18 15:30 ` [PATCH v1 1/2] x86/mm: Add mem access rights to NPT Jan Beulich
2018-05-18 18:30   ` Razvan Cojocaru
2018-05-22  9:49     ` Jan Beulich
2018-05-22 13:35       ` Alexandru Stefan ISAILA
2018-05-22 13:44         ` Jan Beulich
2018-05-30  9:04           ` Alexandru Stefan ISAILA
2018-05-30  9:52             ` Jan Beulich
2018-05-30 11:20               ` Alexandru Stefan ISAILA
2018-05-30 11:29                 ` Jan Beulich
2018-05-30 13:56                   ` Andrew Cooper
2018-06-05 14:45                     ` Alexandru Stefan ISAILA
2018-06-05 15:38                       ` Jan Beulich

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=1530531007.8880.22.camel@bitdefender.com \
    --to=aisaila@bitdefender.com \
    --cc=George.Dunlap@eu.citrix.com \
    --cc=JBeulich@suse.com \
    --cc=andrew.cooper3@citrix.com \
    --cc=rcojocaru@bitdefender.com \
    --cc=tamas@tklengyel.com \
    --cc=xen-devel@lists.xen.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 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.