All of lore.kernel.org
 help / color / mirror / Atom feed
From: Andrew Cooper <andrew.cooper3@citrix.com>
To: "Lengyel, Tamas" <tlengyel@novetta.com>,
	Razvan Cojocaru <rcojocaru@bitdefender.com>
Cc: stefano.stabellini@citrix.com, keir@xen.org,
	Ian Campbell <ian.campbell@citrix.com>,
	Jan Beulich <JBeulich@suse.com>,
	Xen-devel <xen-devel@lists.xen.org>
Subject: Re: [PATCH v2] x86/vm_event: toggle singlestep from vm_event response
Date: Mon, 6 Jul 2015 18:45:10 +0100	[thread overview]
Message-ID: <559ABEA6.1090001@citrix.com> (raw)
In-Reply-To: <CAD33N+4YXt9zcOt4sQaj+Xofcc6K2Tin6PMRfEQ5C5AbkWd3OQ@mail.gmail.com>


[-- Attachment #1.1: Type: text/plain, Size: 2369 bytes --]

On 06/07/15 18:36, Lengyel, Tamas wrote:
>
>
> On Mon, Jul 6, 2015 at 1:29 PM, Razvan Cojocaru
> <rcojocaru@bitdefender.com <mailto:rcojocaru@bitdefender.com>> wrote:
>
>     On 07/06/2015 08:17 PM, Andrew Cooper wrote:
>     > On 06/07/15 18:08, Lengyel, Tamas wrote:
>     >>
>     >>     Having said that (and with the understading that it is
>     beyond the
>     >>     scope
>     >>     of this patch), a way to validate things like these is a
>     good idea. I
>     >>     wonder if, in a future patch, we could not have ./configure
>     detect
>     >>     these
>     >>     things and simply disable the relevant VM_EVENT_FLAG
>     constants with
>     >>     #if(n)defs, for example. That way, you wouldn't be able to
>     compile
>     >>     code
>     >>     that wouldn't work silently on platforms where that is the
>     case.
>     >>
>     >>
>     >> It would be something worth investigating, definitely.
>     >
>     > It would be mad to conditionally compile out code based on the
>     features
>     > or lackthereof of the build machine.
>     >
>     > For bits like this, there must be active negotiation between
>     userspace
>     > and the running hypervisor to see what it can support.  Imagine
>     if the
>     > user disabled the monitor trap feature in the BIOS?  Userspace
>     cannot
>     > possibly assume that because it is running on Intel, that the
>     feature is
>     > present and usable.
>
>     Fair enough, but it would at least compile out the code for machines
>     where it _definitely_ won't work, and on those where it _might_
>     work it
>     would just continue to do nothing silently (or perhaps with the
>     hypervisor logging an error) once the user disables the monitor trap
>     flag in the BIOS, so while not perfect it's still something, with the
>     benefit of less development overhead than a full-on system for
>     negotiating hypervisor capabilities (which is indeed the safest and
>     exhaustive course of action).
>
>     Just a thought,
>     Razvan
>
>
> I could see a new XEN_DOMCTL_MONITOR_OP_GET_CAPABILITIES making sense
> for this so userspace would get a definite yes/no for features
> available on the given platform. If the user then decides to ignore
> and attempt to use something not available, that would be on him.

Very much +1 to this suggestion.

~Andrew

[-- Attachment #1.2: Type: text/html, Size: 4484 bytes --]

[-- Attachment #2: Type: text/plain, Size: 126 bytes --]

_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xen.org
http://lists.xen.org/xen-devel

  reply	other threads:[~2015-07-06 17:45 UTC|newest]

Thread overview: 18+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-06-30 14:11 [PATCH v2] x86/vm_event: toggle singlestep from vm_event response Tamas K Lengyel
2015-06-30 14:18 ` Andrew Cooper
2015-06-30 14:40   ` Lengyel, Tamas
2015-07-06 15:26     ` Jan Beulich
2015-07-06 15:35       ` Lengyel, Tamas
2015-07-06 15:54         ` Jan Beulich
2015-07-06 16:26           ` Lengyel, Tamas
2015-07-06 17:03             ` Razvan Cojocaru
2015-07-06 17:08               ` Lengyel, Tamas
2015-07-06 17:17                 ` Andrew Cooper
2015-07-06 17:29                   ` Razvan Cojocaru
2015-07-06 17:36                     ` Lengyel, Tamas
2015-07-06 17:45                       ` Andrew Cooper [this message]
2015-07-06 17:44                     ` Andrew Cooper
2015-07-07  6:20               ` Jan Beulich
2015-07-07  6:26                 ` Razvan Cojocaru
2015-07-07  9:27 ` Jan Beulich
2015-07-07 11:56   ` Lengyel, Tamas

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=559ABEA6.1090001@citrix.com \
    --to=andrew.cooper3@citrix.com \
    --cc=JBeulich@suse.com \
    --cc=ian.campbell@citrix.com \
    --cc=keir@xen.org \
    --cc=rcojocaru@bitdefender.com \
    --cc=stefano.stabellini@citrix.com \
    --cc=tlengyel@novetta.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.