All of lore.kernel.org
 help / color / mirror / Atom feed
From: "Lengyel, Tamas" <tlengyel@novetta.com>
To: Andrew Cooper <andrew.cooper3@citrix.com>
Cc: "xen-devel@lists.xenproject.org" <xen-devel@lists.xenproject.org>,
	Kevin Tian <kevin.tian@intel.com>, Keir Fraser <keir@xen.org>,
	Jun Nakajima <jun.nakajima@intel.com>,
	Jan Beulich <JBeulich@suse.com>
Subject: Re: [PATCH v3 1/2] hvm/vmx: save dr7 during vmx_vmcs_save
Date: Fri, 19 Feb 2016 11:04:40 -0700	[thread overview]
Message-ID: <CAD33N+6AFFLTnrsUA3B7QPZ=sYprqYuVWhbe+tUF_+d=LDzfFQ@mail.gmail.com> (raw)
In-Reply-To: <CAD33N+4vfxhestnRRh9_8QYQOkHC5zkpb7jyuEZRgGwSRkm+pg@mail.gmail.com>


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

On Fri, Feb 19, 2016 at 10:26 AM, Lengyel, Tamas <tlengyel@novetta.com>
wrote:

>
>
>
> On Fri, Feb 19, 2016 at 10:18 AM, Andrew Cooper <andrew.cooper3@citrix.com
> > wrote:
>
>> On 19/02/16 17:06, Lengyel, Tamas wrote:
>>
>>
>>
>> On Tue, Feb 16, 2016 at 3:47 AM, Jan Beulich <JBeulich@suse.com> wrote:
>>
>>> >>> On 16.02.16 at 07:58, < <kevin.tian@intel.com>kevin.tian@intel.com>
>>> wrote:
>>> >> --- a/xen/arch/x86/hvm/vmx/vmx.c
>>> >> +++ b/xen/arch/x86/hvm/vmx/vmx.c
>>> >> @@ -490,6 +490,7 @@ static void vmx_vmcs_save(struct vcpu *v, struct
>>> hvm_hw_cpu
>>> >> *c)
>>> >>      __vmread(GUEST_SYSENTER_CS, &c->sysenter_cs);
>>> >>      __vmread(GUEST_SYSENTER_ESP, &c->sysenter_esp);
>>> >>      __vmread(GUEST_SYSENTER_EIP, &c->sysenter_eip);
>>> >> +    __vmread(GUEST_DR7, &c->dr7);
>>> >>
>>> >
>>> > Hi, Tamas, I didn't see the open closed around "v != current", if
>>> > I'm not missing some mails... Have you confirmed with Jan that
>>> > he is OK with it?
>>>
>>> We didn't really settle on this yet. I'm not heavily opposed to it
>>> remaining unconditional for now, but as said in the other replay
>>> my fear is that this might later lead to further additions which
>>> may then also be of no interest to the main (save/migration)
>>> user of this code.
>>>
>>
>> Andrew, any comment if this is OK from your perspective?
>>
>>
>> I specifically suggested the use of vmx_save_dr() to make all debug state
>> consistent.
>>
>
> I might have missed that comment.
>
>
>>
>> I don't see much purpose in being able to introspect just %dr7.  If any
>> debug related activities are going on, all debug registers are relevant.
>>
>> Is this not the case?
>>
>
> Right now only dr7 is included in the automatic register snapshot sent
> with each vm_event. I personally don't use any of them so I can't comment
> on how it would be useful by itself (Razvan?). From my perspective the only
> issue at hand has been that the current way dr7 was gathered was incorrect.
> IMHO if someone needs the other debug registers for each vm_event, that
> change can be introduced in a separate patch.
>

In case this needs any more discussion I will split the dr7 fix parts from
the consolidation patch as there is no need to have it be held up. It has
already been acked and is unrelated to this issue.

Thanks,
Tamas

[-- Attachment #1.2: Type: text/html, Size: 4814 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:[~2016-02-19 18:05 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-02-15 19:04 [PATCH v3 1/2] hvm/vmx: save dr7 during vmx_vmcs_save Tamas K Lengyel
2016-02-15 19:04 ` [PATCH v3 2/2] vm_event: consolidate hvm_event_fill_regs and p2m_vm_event_fill_regs Tamas K Lengyel
2016-02-16  6:58 ` [PATCH v3 1/2] hvm/vmx: save dr7 during vmx_vmcs_save Tian, Kevin
2016-02-16 10:47   ` Jan Beulich
2016-02-19 17:06     ` Lengyel, Tamas
2016-02-19 17:18       ` Andrew Cooper
2016-02-19 17:26         ` Lengyel, Tamas
2016-02-19 18:04           ` Lengyel, Tamas [this message]
2016-02-22  9:25           ` Razvan Cojocaru
2016-02-22 13:51             ` Lengyel, Tamas
2016-02-22 13:53               ` Razvan Cojocaru

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='CAD33N+6AFFLTnrsUA3B7QPZ=sYprqYuVWhbe+tUF_+d=LDzfFQ@mail.gmail.com' \
    --to=tlengyel@novetta.com \
    --cc=JBeulich@suse.com \
    --cc=andrew.cooper3@citrix.com \
    --cc=jun.nakajima@intel.com \
    --cc=keir@xen.org \
    --cc=kevin.tian@intel.com \
    --cc=xen-devel@lists.xenproject.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.