All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH v8] arch/x86: Add registers to vm_event
@ 2018-11-05  9:54 Alexandru Stefan ISAILA
  2018-11-05 10:00 ` Jan Beulich
  2018-11-06 17:16 ` Tamas K Lengyel
  0 siblings, 2 replies; 16+ messages in thread
From: Alexandru Stefan ISAILA @ 2018-11-05  9:54 UTC (permalink / raw)
  To: xen-devel
  Cc: tamas, wei.liu2, rcojocaru, andrew.cooper3, jbeulich,
	Alexandru Stefan ISAILA

This patch adds a couple of regs to the vm_event that are used by
the introspection. The base, limit and ar
bits are compressed into a uint64_t union so as not to enlarge the
vm_event.

Signed-off-by: Alexandru Isaila <aisaila@bitdefender.com>

---
Changes since V7:
	- Move dr6 netx to dr7 in vm_event_regs_x86.
---
 xen/arch/x86/vm_event.c       | 72 +++++++++++++++++++++++++++++++----
 xen/include/public/vm_event.h | 27 ++++++++++++-
 2 files changed, 89 insertions(+), 10 deletions(-)

diff --git a/xen/arch/x86/vm_event.c b/xen/arch/x86/vm_event.c
index 15de43c3e6..43a4a57023 100644
--- a/xen/arch/x86/vm_event.c
+++ b/xen/arch/x86/vm_event.c
@@ -122,11 +122,66 @@ void vm_event_monitor_next_interrupt(struct vcpu *v)
     v->arch.monitor.next_interrupt_enabled = true;
 }
 
+static void vm_event_pack_segment_register(enum x86_segment segment,
+                                           struct vm_event_regs_x86 *reg)
+{
+    struct segment_register seg;
+
+    hvm_get_segment_register(current, segment, &seg);
+
+    switch ( segment )
+    {
+    case x86_seg_ss:
+        reg->ss_base = seg.base;
+        reg->ss.limit = seg.g ? seg.limit >> 12 : seg.limit;
+        reg->ss.ar = seg.attr;
+        reg->ss_sel = seg.sel;
+        break;
+
+    case x86_seg_fs:
+        reg->fs_base = seg.base;
+        reg->fs.limit = seg.g ? seg.limit >> 12 : seg.limit;
+        reg->fs.ar = seg.attr;
+        reg->fs_sel = seg.sel;
+        break;
+
+    case x86_seg_gs:
+        reg->gs_base = seg.base;
+        reg->gs.limit = seg.g ? seg.limit >> 12 : seg.limit;
+        reg->gs.ar = seg.attr;
+        reg->gs_sel = seg.sel;
+        break;
+
+    case x86_seg_cs:
+        reg->cs_base = seg.base;
+        reg->cs.limit = seg.g ? seg.limit >> 12 : seg.limit;
+        reg->cs.ar = seg.attr;
+        reg->cs_sel = seg.sel;
+        break;
+
+    case x86_seg_ds:
+        reg->ds_base = seg.base;
+        reg->ds.limit = seg.g ? seg.limit >> 12 : seg.limit;
+        reg->ds.ar = seg.attr;
+        reg->ds_sel = seg.sel;
+        break;
+
+    case x86_seg_es:
+        reg->es_base = seg.base;
+        reg->es.limit = seg.g ? seg.limit >> 12 : seg.limit;
+        reg->es.ar = seg.attr;
+        reg->es_sel = seg.sel;
+        break;
+
+    default:
+        ASSERT_UNREACHABLE();
+    }
+}
+
 void vm_event_fill_regs(vm_event_request_t *req)
 {
 #ifdef CONFIG_HVM
     const struct cpu_user_regs *regs = guest_cpu_user_regs();
-    struct segment_register seg;
     struct hvm_hw_cpu ctxt = {};
     struct vcpu *curr = current;
 
@@ -170,14 +225,15 @@ void vm_event_fill_regs(vm_event_request_t *req)
     req->data.regs.x86.msr_star = ctxt.msr_star;
     req->data.regs.x86.msr_lstar = ctxt.msr_lstar;
 
-    hvm_get_segment_register(curr, x86_seg_fs, &seg);
-    req->data.regs.x86.fs_base = seg.base;
-
-    hvm_get_segment_register(curr, x86_seg_gs, &seg);
-    req->data.regs.x86.gs_base = seg.base;
+    vm_event_pack_segment_register(x86_seg_fs, &req->data.regs.x86);
+    vm_event_pack_segment_register(x86_seg_gs, &req->data.regs.x86);
+    vm_event_pack_segment_register(x86_seg_cs, &req->data.regs.x86);
+    vm_event_pack_segment_register(x86_seg_ss, &req->data.regs.x86);
+    vm_event_pack_segment_register(x86_seg_ds, &req->data.regs.x86);
+    vm_event_pack_segment_register(x86_seg_es, &req->data.regs.x86);
 
-    hvm_get_segment_register(curr, x86_seg_cs, &seg);
-    req->data.regs.x86.cs_arbytes = seg.attr;
+    req->data.regs.x86.shadow_gs = ctxt.shadow_gs;
+    req->data.regs.x86.dr6 = ctxt.dr6;
 #endif
 }
 
diff --git a/xen/include/public/vm_event.h b/xen/include/public/vm_event.h
index 36e3f4685d..b2bafc0d77 100644
--- a/xen/include/public/vm_event.h
+++ b/xen/include/public/vm_event.h
@@ -29,7 +29,7 @@
 
 #include "xen.h"
 
-#define VM_EVENT_INTERFACE_VERSION 0x00000003
+#define VM_EVENT_INTERFACE_VERSION 0x00000004
 
 #if defined(__XEN__) || defined(__XEN_TOOLS__)
 
@@ -157,6 +157,12 @@
 #define VM_EVENT_X86_CR4    2
 #define VM_EVENT_X86_XCR0   3
 
+/* The limit field is right-shifted by 12 bits if .ar.g is set. */
+struct vm_event_x86_selector_reg {
+    uint32_t limit  :    20;
+    uint32_t ar     :    12;
+};
+
 /*
  * Using custom vCPU structs (i.e. not hvm_hw_cpu) for both x86 and ARM
  * so as to not fill the vm_event ring buffer too quickly.
@@ -179,6 +185,7 @@ struct vm_event_regs_x86 {
     uint64_t r14;
     uint64_t r15;
     uint64_t rflags;
+    uint64_t dr6;
     uint64_t dr7;
     uint64_t rip;
     uint64_t cr0;
@@ -191,9 +198,25 @@ struct vm_event_regs_x86 {
     uint64_t msr_efer;
     uint64_t msr_star;
     uint64_t msr_lstar;
+    uint32_t cs_base;
+    uint32_t ss_base;
+    uint32_t ds_base;
+    uint32_t es_base;
     uint64_t fs_base;
     uint64_t gs_base;
-    uint32_t cs_arbytes;
+    struct vm_event_x86_selector_reg cs;
+    struct vm_event_x86_selector_reg ss;
+    struct vm_event_x86_selector_reg ds;
+    struct vm_event_x86_selector_reg es;
+    struct vm_event_x86_selector_reg fs;
+    struct vm_event_x86_selector_reg gs;
+    uint64_t shadow_gs;
+    uint16_t cs_sel;
+    uint16_t ss_sel;
+    uint16_t ds_sel;
+    uint16_t es_sel;
+    uint16_t fs_sel;
+    uint16_t gs_sel;
     uint32_t _pad;
 };
 
-- 
2.17.1


_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xenproject.org
https://lists.xenproject.org/mailman/listinfo/xen-devel

^ permalink raw reply related	[flat|nested] 16+ messages in thread

* Re: [PATCH v8] arch/x86: Add registers to vm_event
  2018-11-05  9:54 [PATCH v8] arch/x86: Add registers to vm_event Alexandru Stefan ISAILA
@ 2018-11-05 10:00 ` Jan Beulich
  2018-11-06 17:16 ` Tamas K Lengyel
  1 sibling, 0 replies; 16+ messages in thread
From: Jan Beulich @ 2018-11-05 10:00 UTC (permalink / raw)
  To: aisaila
  Cc: Andrew Cooper, Tamas K Lengyel, Wei Liu, Razvan Cojocaru, xen-devel

>>> On 05.11.18 at 10:54, <aisaila@bitdefender.com> wrote:
> This patch adds a couple of regs to the vm_event that are used by
> the introspection. The base, limit and ar
> bits are compressed into a uint64_t union so as not to enlarge the
> vm_event.
> 
> Signed-off-by: Alexandru Isaila <aisaila@bitdefender.com>

Acked-by: Jan Beulich <jbeulich@suse.com>



_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xenproject.org
https://lists.xenproject.org/mailman/listinfo/xen-devel

^ permalink raw reply	[flat|nested] 16+ messages in thread

* Re: [PATCH v8] arch/x86: Add registers to vm_event
  2018-11-05  9:54 [PATCH v8] arch/x86: Add registers to vm_event Alexandru Stefan ISAILA
  2018-11-05 10:00 ` Jan Beulich
@ 2018-11-06 17:16 ` Tamas K Lengyel
  2018-11-08 15:19   ` Razvan Cojocaru
  1 sibling, 1 reply; 16+ messages in thread
From: Tamas K Lengyel @ 2018-11-06 17:16 UTC (permalink / raw)
  To: Alexandru Isaila
  Cc: Xen-devel, Wei Liu, Jan Beulich, Razvan Cojocaru, Andrew Cooper

On Mon, Nov 5, 2018 at 2:54 AM Alexandru Stefan ISAILA
<aisaila@bitdefender.com> wrote:
>
> This patch adds a couple of regs to the vm_event that are used by
> the introspection. The base, limit and ar
> bits are compressed into a uint64_t union so as not to enlarge the
> vm_event.
>
> Signed-off-by: Alexandru Isaila <aisaila@bitdefender.com>

Acked-by: Tamas K Lengyel <tamas@tklengyel.com>

_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xenproject.org
https://lists.xenproject.org/mailman/listinfo/xen-devel

^ permalink raw reply	[flat|nested] 16+ messages in thread

* Re: [PATCH v8] arch/x86: Add registers to vm_event
  2018-11-06 17:16 ` Tamas K Lengyel
@ 2018-11-08 15:19   ` Razvan Cojocaru
  2018-11-08 15:53     ` Wei Liu
  0 siblings, 1 reply; 16+ messages in thread
From: Razvan Cojocaru @ 2018-11-08 15:19 UTC (permalink / raw)
  To: Tamas K Lengyel, Alexandru Isaila
  Cc: Xen-devel, Wei Liu, Jan Beulich, Andrew Cooper

On 11/6/18 7:16 PM, Tamas K Lengyel wrote:
> On Mon, Nov 5, 2018 at 2:54 AM Alexandru Stefan ISAILA
> <aisaila@bitdefender.com> wrote:
>>
>> This patch adds a couple of regs to the vm_event that are used by
>> the introspection. The base, limit and ar
>> bits are compressed into a uint64_t union so as not to enlarge the
>> vm_event.
>>
>> Signed-off-by: Alexandru Isaila <aisaila@bitdefender.com>
> 
> Acked-by: Tamas K Lengyel <tamas@tklengyel.com>

To the best of my ability to figure out the necessary acks, I believe
that this one is ready to go in. :)


Thanks,
Razvan


_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xenproject.org
https://lists.xenproject.org/mailman/listinfo/xen-devel

^ permalink raw reply	[flat|nested] 16+ messages in thread

* Re: [PATCH v8] arch/x86: Add registers to vm_event
  2018-11-08 15:19   ` Razvan Cojocaru
@ 2018-11-08 15:53     ` Wei Liu
  2018-11-08 15:56       ` Razvan Cojocaru
  0 siblings, 1 reply; 16+ messages in thread
From: Wei Liu @ 2018-11-08 15:53 UTC (permalink / raw)
  To: Razvan Cojocaru
  Cc: Tamas K Lengyel, Wei Liu, Andrew Cooper, Jan Beulich,
	Alexandru Isaila, Xen-devel

On Thu, Nov 08, 2018 at 05:19:48PM +0200, Razvan Cojocaru wrote:
> On 11/6/18 7:16 PM, Tamas K Lengyel wrote:
> > On Mon, Nov 5, 2018 at 2:54 AM Alexandru Stefan ISAILA
> > <aisaila@bitdefender.com> wrote:
> >>
> >> This patch adds a couple of regs to the vm_event that are used by
> >> the introspection. The base, limit and ar
> >> bits are compressed into a uint64_t union so as not to enlarge the
> >> vm_event.
> >>
> >> Signed-off-by: Alexandru Isaila <aisaila@bitdefender.com>
> > 
> > Acked-by: Tamas K Lengyel <tamas@tklengyel.com>
> 
> To the best of my ability to figure out the necessary acks, I believe
> that this one is ready to go in. :)

Alright. I will pick this up in my next sweep.

Wei.

> 
> 
> Thanks,
> Razvan
> 

_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xenproject.org
https://lists.xenproject.org/mailman/listinfo/xen-devel

^ permalink raw reply	[flat|nested] 16+ messages in thread

* Re: [PATCH v8] arch/x86: Add registers to vm_event
  2018-11-08 15:53     ` Wei Liu
@ 2018-11-08 15:56       ` Razvan Cojocaru
  2018-11-08 17:22         ` Wei Liu
  0 siblings, 1 reply; 16+ messages in thread
From: Razvan Cojocaru @ 2018-11-08 15:56 UTC (permalink / raw)
  To: Wei Liu
  Cc: Alexandru Isaila, Xen-devel, Tamas K Lengyel, Jan Beulich, Andrew Cooper

On 11/8/18 5:53 PM, Wei Liu wrote:
> On Thu, Nov 08, 2018 at 05:19:48PM +0200, Razvan Cojocaru wrote:
>> On 11/6/18 7:16 PM, Tamas K Lengyel wrote:
>>> On Mon, Nov 5, 2018 at 2:54 AM Alexandru Stefan ISAILA
>>> <aisaila@bitdefender.com> wrote:
>>>>
>>>> This patch adds a couple of regs to the vm_event that are used by
>>>> the introspection. The base, limit and ar
>>>> bits are compressed into a uint64_t union so as not to enlarge the
>>>> vm_event.
>>>>
>>>> Signed-off-by: Alexandru Isaila <aisaila@bitdefender.com>
>>>
>>> Acked-by: Tamas K Lengyel <tamas@tklengyel.com>
>>
>> To the best of my ability to figure out the necessary acks, I believe
>> that this one is ready to go in. :)
> 
> Alright. I will pick this up in my next sweep.

Thanks!

Razvan

_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xenproject.org
https://lists.xenproject.org/mailman/listinfo/xen-devel

^ permalink raw reply	[flat|nested] 16+ messages in thread

* Re: [PATCH v8] arch/x86: Add registers to vm_event
  2018-11-08 15:56       ` Razvan Cojocaru
@ 2018-11-08 17:22         ` Wei Liu
  2018-11-08 17:56           ` Razvan Cojocaru
  0 siblings, 1 reply; 16+ messages in thread
From: Wei Liu @ 2018-11-08 17:22 UTC (permalink / raw)
  To: Razvan Cojocaru
  Cc: Tamas K Lengyel, Wei Liu, Andrew Cooper, Jan Beulich,
	Alexandru Isaila, Xen-devel

On Thu, Nov 08, 2018 at 05:56:07PM +0200, Razvan Cojocaru wrote:
> On 11/8/18 5:53 PM, Wei Liu wrote:
> > On Thu, Nov 08, 2018 at 05:19:48PM +0200, Razvan Cojocaru wrote:
> >> On 11/6/18 7:16 PM, Tamas K Lengyel wrote:
> >>> On Mon, Nov 5, 2018 at 2:54 AM Alexandru Stefan ISAILA
> >>> <aisaila@bitdefender.com> wrote:
> >>>>
> >>>> This patch adds a couple of regs to the vm_event that are used by
> >>>> the introspection. The base, limit and ar
> >>>> bits are compressed into a uint64_t union so as not to enlarge the
> >>>> vm_event.
> >>>>
> >>>> Signed-off-by: Alexandru Isaila <aisaila@bitdefender.com>
> >>>
> >>> Acked-by: Tamas K Lengyel <tamas@tklengyel.com>
> >>
> >> To the best of my ability to figure out the necessary acks, I believe
> >> that this one is ready to go in. :)
> > 
> > Alright. I will pick this up in my next sweep.
> 
> Thanks!


Unfortunately this will break shim build when HVM is disabled. Please
submit a new version. I think you will need to put
vm_event_pack_segment_register under CONFIG_HVM.

Wei.

> 
> Razvan

_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xenproject.org
https://lists.xenproject.org/mailman/listinfo/xen-devel

^ permalink raw reply	[flat|nested] 16+ messages in thread

* Re: [PATCH v8] arch/x86: Add registers to vm_event
  2018-11-08 17:22         ` Wei Liu
@ 2018-11-08 17:56           ` Razvan Cojocaru
  2018-11-08 18:02             ` Wei Liu
  0 siblings, 1 reply; 16+ messages in thread
From: Razvan Cojocaru @ 2018-11-08 17:56 UTC (permalink / raw)
  To: Wei Liu
  Cc: Alexandru Isaila, Xen-devel, Tamas K Lengyel, Jan Beulich, Andrew Cooper

On 11/8/18 7:22 PM, Wei Liu wrote:
> On Thu, Nov 08, 2018 at 05:56:07PM +0200, Razvan Cojocaru wrote:
>> On 11/8/18 5:53 PM, Wei Liu wrote:
>>> On Thu, Nov 08, 2018 at 05:19:48PM +0200, Razvan Cojocaru wrote:
>>>> On 11/6/18 7:16 PM, Tamas K Lengyel wrote:
>>>>> On Mon, Nov 5, 2018 at 2:54 AM Alexandru Stefan ISAILA
>>>>> <aisaila@bitdefender.com> wrote:
>>>>>>
>>>>>> This patch adds a couple of regs to the vm_event that are used by
>>>>>> the introspection. The base, limit and ar
>>>>>> bits are compressed into a uint64_t union so as not to enlarge the
>>>>>> vm_event.
>>>>>>
>>>>>> Signed-off-by: Alexandru Isaila <aisaila@bitdefender.com>
>>>>>
>>>>> Acked-by: Tamas K Lengyel <tamas@tklengyel.com>
>>>>
>>>> To the best of my ability to figure out the necessary acks, I believe
>>>> that this one is ready to go in. :)
>>>
>>> Alright. I will pick this up in my next sweep.
>>
>> Thanks!
> 
> 
> Unfortunately this will break shim build when HVM is disabled. Please
> submit a new version. I think you will need to put
> vm_event_pack_segment_register under CONFIG_HVM.

Very sorry about that. We'll resubmit.


Thanks,
Razvan

_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xenproject.org
https://lists.xenproject.org/mailman/listinfo/xen-devel

^ permalink raw reply	[flat|nested] 16+ messages in thread

* Re: [PATCH v8] arch/x86: Add registers to vm_event
  2018-11-08 17:56           ` Razvan Cojocaru
@ 2018-11-08 18:02             ` Wei Liu
  2018-11-08 18:22               ` Razvan Cojocaru
  2018-11-09 11:05               ` Alexandru Stefan ISAILA
  0 siblings, 2 replies; 16+ messages in thread
From: Wei Liu @ 2018-11-08 18:02 UTC (permalink / raw)
  To: Razvan Cojocaru
  Cc: Tamas K Lengyel, Wei Liu, Andrew Cooper, Jan Beulich,
	Alexandru Isaila, Xen-devel

On Thu, Nov 08, 2018 at 07:56:29PM +0200, Razvan Cojocaru wrote:
> On 11/8/18 7:22 PM, Wei Liu wrote:
> > On Thu, Nov 08, 2018 at 05:56:07PM +0200, Razvan Cojocaru wrote:
> >> On 11/8/18 5:53 PM, Wei Liu wrote:
> >>> On Thu, Nov 08, 2018 at 05:19:48PM +0200, Razvan Cojocaru wrote:
> >>>> On 11/6/18 7:16 PM, Tamas K Lengyel wrote:
> >>>>> On Mon, Nov 5, 2018 at 2:54 AM Alexandru Stefan ISAILA
> >>>>> <aisaila@bitdefender.com> wrote:
> >>>>>>
> >>>>>> This patch adds a couple of regs to the vm_event that are used by
> >>>>>> the introspection. The base, limit and ar
> >>>>>> bits are compressed into a uint64_t union so as not to enlarge the
> >>>>>> vm_event.
> >>>>>>
> >>>>>> Signed-off-by: Alexandru Isaila <aisaila@bitdefender.com>
> >>>>>
> >>>>> Acked-by: Tamas K Lengyel <tamas@tklengyel.com>
> >>>>
> >>>> To the best of my ability to figure out the necessary acks, I believe
> >>>> that this one is ready to go in. :)
> >>>
> >>> Alright. I will pick this up in my next sweep.
> >>
> >> Thanks!
> > 
> > 
> > Unfortunately this will break shim build when HVM is disabled. Please
> > submit a new version. I think you will need to put
> > vm_event_pack_segment_register under CONFIG_HVM.
> 
> Very sorry about that. We'll resubmit.

Speaking of build breakage: would you guys consider signing up to gitlab
so that you can use all the build test infrastructure there before
submission? It would probably say you from building local for different
distros and configs.

See https://gitlab.com/xen-project/xen/pipelines/35918510

Wei.

> 
> 
> Thanks,
> Razvan
> 
> _______________________________________________
> Xen-devel mailing list
> Xen-devel@lists.xenproject.org
> https://lists.xenproject.org/mailman/listinfo/xen-devel

_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xenproject.org
https://lists.xenproject.org/mailman/listinfo/xen-devel

^ permalink raw reply	[flat|nested] 16+ messages in thread

* Re: [PATCH v8] arch/x86: Add registers to vm_event
  2018-11-08 18:02             ` Wei Liu
@ 2018-11-08 18:22               ` Razvan Cojocaru
  2018-11-08 18:27                 ` Wei Liu
  2018-11-09 11:05               ` Alexandru Stefan ISAILA
  1 sibling, 1 reply; 16+ messages in thread
From: Razvan Cojocaru @ 2018-11-08 18:22 UTC (permalink / raw)
  To: Wei Liu
  Cc: Alexandru Isaila, Xen-devel, Tamas K Lengyel, Jan Beulich, Andrew Cooper

On 11/8/18 8:02 PM, Wei Liu wrote:
> Speaking of build breakage: would you guys consider signing up to gitlab
> so that you can use all the build test infrastructure there before
> submission? It would probably say you from building local for different
> distros and configs.
> 
> See https://gitlab.com/xen-project/xen/pipelines/35918510

Yes, that does sound very interesting. I'm not sure what that entails /
what the procedure is though. Could you please tell us more?


Thanks,
Razvan

_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xenproject.org
https://lists.xenproject.org/mailman/listinfo/xen-devel

^ permalink raw reply	[flat|nested] 16+ messages in thread

* Re: [PATCH v8] arch/x86: Add registers to vm_event
  2018-11-08 18:22               ` Razvan Cojocaru
@ 2018-11-08 18:27                 ` Wei Liu
  2018-11-08 18:46                   ` Razvan Cojocaru
  0 siblings, 1 reply; 16+ messages in thread
From: Wei Liu @ 2018-11-08 18:27 UTC (permalink / raw)
  To: Razvan Cojocaru
  Cc: Tamas K Lengyel, Wei Liu, Andrew Cooper, Jan Beulich,
	Alexandru Isaila, Xen-devel

On Thu, Nov 08, 2018 at 08:22:06PM +0200, Razvan Cojocaru wrote:
> On 11/8/18 8:02 PM, Wei Liu wrote:
> > Speaking of build breakage: would you guys consider signing up to gitlab
> > so that you can use all the build test infrastructure there before
> > submission? It would probably say you from building local for different
> > distros and configs.
> > 
> > See https://gitlab.com/xen-project/xen/pipelines/35918510
> 
> Yes, that does sound very interesting. I'm not sure what that entails /
> what the procedure is though. Could you please tell us more?

The one I showed you is the top-level pipeline. There are per-account
pipelines as well.

To use that:

1. Register a Gitlab.com account
2. Tell me your handle(s), I will make you member of the xen-project org
3. Create your own subgroup under people/
4. Fork xen.git from xen-project top-level repository into your subgroup
5. Push your branch to your repository
6. Found the result of pipeline run under URL like:
   https://gitlab.com/xen-project/people/liuw/xen/pipelines
   (your probably can't access it because it is private)

Wei.

> 
> 
> Thanks,
> Razvan

_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xenproject.org
https://lists.xenproject.org/mailman/listinfo/xen-devel

^ permalink raw reply	[flat|nested] 16+ messages in thread

* Re: [PATCH v8] arch/x86: Add registers to vm_event
  2018-11-08 18:27                 ` Wei Liu
@ 2018-11-08 18:46                   ` Razvan Cojocaru
  2018-11-08 20:45                     ` Wei Liu
  0 siblings, 1 reply; 16+ messages in thread
From: Razvan Cojocaru @ 2018-11-08 18:46 UTC (permalink / raw)
  To: Wei Liu
  Cc: Alexandru Isaila, Xen-devel, Tamas K Lengyel, Jan Beulich, Andrew Cooper

On 11/8/18 8:27 PM, Wei Liu wrote:
> On Thu, Nov 08, 2018 at 08:22:06PM +0200, Razvan Cojocaru wrote:
>> On 11/8/18 8:02 PM, Wei Liu wrote:
>>> Speaking of build breakage: would you guys consider signing up to gitlab
>>> so that you can use all the build test infrastructure there before
>>> submission? It would probably say you from building local for different
>>> distros and configs.
>>>
>>> See https://gitlab.com/xen-project/xen/pipelines/35918510
>>
>> Yes, that does sound very interesting. I'm not sure what that entails /
>> what the procedure is though. Could you please tell us more?
> 
> The one I showed you is the top-level pipeline. There are per-account
> pipelines as well.
> 
> To use that:
> 
> 1. Register a Gitlab.com account
> 2. Tell me your handle(s), I will make you member of the xen-project org
> 3. Create your own subgroup under people/
> 4. Fork xen.git from xen-project top-level repository into your subgroup
> 5. Push your branch to your repository
> 6. Found the result of pipeline run under URL like:
>    https://gitlab.com/xen-project/people/liuw/xen/pipelines
>    (your probably can't access it because it is private)

We'll do that, thanks for the suggestion! Some of our team members are
out of office at the moment, so we'll get back to you with their
handles. Until then, mine's razvan-cojocaru.


Thanks,
Razvan

_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xenproject.org
https://lists.xenproject.org/mailman/listinfo/xen-devel

^ permalink raw reply	[flat|nested] 16+ messages in thread

* Re: [PATCH v8] arch/x86: Add registers to vm_event
  2018-11-08 18:46                   ` Razvan Cojocaru
@ 2018-11-08 20:45                     ` Wei Liu
  0 siblings, 0 replies; 16+ messages in thread
From: Wei Liu @ 2018-11-08 20:45 UTC (permalink / raw)
  To: Razvan Cojocaru
  Cc: Tamas K Lengyel, Wei Liu, Andrew Cooper, Jan Beulich,
	Alexandru Isaila, Xen-devel

On Thu, Nov 08, 2018 at 08:46:12PM +0200, Razvan Cojocaru wrote:
> On 11/8/18 8:27 PM, Wei Liu wrote:
> > On Thu, Nov 08, 2018 at 08:22:06PM +0200, Razvan Cojocaru wrote:
> >> On 11/8/18 8:02 PM, Wei Liu wrote:
> >>> Speaking of build breakage: would you guys consider signing up to gitlab
> >>> so that you can use all the build test infrastructure there before
> >>> submission? It would probably say you from building local for different
> >>> distros and configs.
> >>>
> >>> See https://gitlab.com/xen-project/xen/pipelines/35918510
> >>
> >> Yes, that does sound very interesting. I'm not sure what that entails /
> >> what the procedure is though. Could you please tell us more?
> > 
> > The one I showed you is the top-level pipeline. There are per-account
> > pipelines as well.
> > 
> > To use that:
> > 
> > 1. Register a Gitlab.com account
> > 2. Tell me your handle(s), I will make you member of the xen-project org
> > 3. Create your own subgroup under people/
> > 4. Fork xen.git from xen-project top-level repository into your subgroup
> > 5. Push your branch to your repository
> > 6. Found the result of pipeline run under URL like:
> >    https://gitlab.com/xen-project/people/liuw/xen/pipelines
> >    (your probably can't access it because it is private)
> 
> We'll do that, thanks for the suggestion! Some of our team members are
> out of office at the moment, so we'll get back to you with their
> handles. Until then, mine's razvan-cojocaru.

OK. Before you ask everyone else to sign up, let me figure out how to
handle permissions correctly first.

Wei.

> 
> 
> Thanks,
> Razvan

_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xenproject.org
https://lists.xenproject.org/mailman/listinfo/xen-devel

^ permalink raw reply	[flat|nested] 16+ messages in thread

* Re: [PATCH v8] arch/x86: Add registers to vm_event
  2018-11-08 18:02             ` Wei Liu
  2018-11-08 18:22               ` Razvan Cojocaru
@ 2018-11-09 11:05               ` Alexandru Stefan ISAILA
  2018-11-09 11:09                 ` Wei Liu
  2018-11-09 11:10                 ` Alexandru Stefan ISAILA
  1 sibling, 2 replies; 16+ messages in thread
From: Alexandru Stefan ISAILA @ 2018-11-09 11:05 UTC (permalink / raw)
  To: Wei Liu, Razvan Cojocaru
  Cc: Xen-devel, Tamas K Lengyel, Jan Beulich, Andrew Cooper



On 08.11.2018 20:02, Wei Liu wrote:
> On Thu, Nov 08, 2018 at 07:56:29PM +0200, Razvan Cojocaru wrote:
>> On 11/8/18 7:22 PM, Wei Liu wrote:
>>> On Thu, Nov 08, 2018 at 05:56:07PM +0200, Razvan Cojocaru wrote:
>>>> On 11/8/18 5:53 PM, Wei Liu wrote:
>>>>> On Thu, Nov 08, 2018 at 05:19:48PM +0200, Razvan Cojocaru wrote:
>>>>>> On 11/6/18 7:16 PM, Tamas K Lengyel wrote:
>>>>>>> On Mon, Nov 5, 2018 at 2:54 AM Alexandru Stefan ISAILA
>>>>>>> <aisaila@bitdefender.com> wrote:
>>>>>>>>
>>>>>>>> This patch adds a couple of regs to the vm_event that are used by
>>>>>>>> the introspection. The base, limit and ar
>>>>>>>> bits are compressed into a uint64_t union so as not to enlarge the
>>>>>>>> vm_event.
>>>>>>>>
>>>>>>>> Signed-off-by: Alexandru Isaila <aisaila@bitdefender.com>
>>>>>>>
>>>>>>> Acked-by: Tamas K Lengyel <tamas@tklengyel.com>
>>>>>>
>>>>>> To the best of my ability to figure out the necessary acks, I believe
>>>>>> that this one is ready to go in. :)
>>>>>
>>>>> Alright. I will pick this up in my next sweep.
>>>>
>>>> Thanks!
>>>
>>>
>>> Unfortunately this will break shim build when HVM is disabled. Please
>>> submit a new version. I think you will need to put
>>> vm_event_pack_segment_register under CONFIG_HVM.
>>
>> Very sorry about that. We'll resubmit.
> 
> Speaking of build breakage: would you guys consider signing up to gitlab
> so that you can use all the build test infrastructure there before
> submission? It would probably say you from building local for different
> distros and configs.
> 
> See https://gitlab.com/xen-project/xen/pipelines/35918510
> 

Hi Wei,

I've guarded the vm_event_pack_segment_register with CONFIG_HVM for the 
next version. I've run the tests on gitlab and they where all passed. I 
want to suggest if you can add some AMD tests so we can be sure that all 
the cross compile things are in place before sending any patch.

Thanks,
Alex
_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xenproject.org
https://lists.xenproject.org/mailman/listinfo/xen-devel

^ permalink raw reply	[flat|nested] 16+ messages in thread

* Re: [PATCH v8] arch/x86: Add registers to vm_event
  2018-11-09 11:05               ` Alexandru Stefan ISAILA
@ 2018-11-09 11:09                 ` Wei Liu
  2018-11-09 11:10                 ` Alexandru Stefan ISAILA
  1 sibling, 0 replies; 16+ messages in thread
From: Wei Liu @ 2018-11-09 11:09 UTC (permalink / raw)
  To: Alexandru Stefan ISAILA
  Cc: Tamas K Lengyel, Wei Liu, Razvan Cojocaru, Andrew Cooper,
	Jan Beulich, Xen-devel

On Fri, Nov 09, 2018 at 11:05:23AM +0000, Alexandru Stefan ISAILA wrote:
> 
> 
> On 08.11.2018 20:02, Wei Liu wrote:
> > On Thu, Nov 08, 2018 at 07:56:29PM +0200, Razvan Cojocaru wrote:
> >> On 11/8/18 7:22 PM, Wei Liu wrote:
> >>> On Thu, Nov 08, 2018 at 05:56:07PM +0200, Razvan Cojocaru wrote:
> >>>> On 11/8/18 5:53 PM, Wei Liu wrote:
> >>>>> On Thu, Nov 08, 2018 at 05:19:48PM +0200, Razvan Cojocaru wrote:
> >>>>>> On 11/6/18 7:16 PM, Tamas K Lengyel wrote:
> >>>>>>> On Mon, Nov 5, 2018 at 2:54 AM Alexandru Stefan ISAILA
> >>>>>>> <aisaila@bitdefender.com> wrote:
> >>>>>>>>
> >>>>>>>> This patch adds a couple of regs to the vm_event that are used by
> >>>>>>>> the introspection. The base, limit and ar
> >>>>>>>> bits are compressed into a uint64_t union so as not to enlarge the
> >>>>>>>> vm_event.
> >>>>>>>>
> >>>>>>>> Signed-off-by: Alexandru Isaila <aisaila@bitdefender.com>
> >>>>>>>
> >>>>>>> Acked-by: Tamas K Lengyel <tamas@tklengyel.com>
> >>>>>>
> >>>>>> To the best of my ability to figure out the necessary acks, I believe
> >>>>>> that this one is ready to go in. :)
> >>>>>
> >>>>> Alright. I will pick this up in my next sweep.
> >>>>
> >>>> Thanks!
> >>>
> >>>
> >>> Unfortunately this will break shim build when HVM is disabled. Please
> >>> submit a new version. I think you will need to put
> >>> vm_event_pack_segment_register under CONFIG_HVM.
> >>
> >> Very sorry about that. We'll resubmit.
> > 
> > Speaking of build breakage: would you guys consider signing up to gitlab
> > so that you can use all the build test infrastructure there before
> > submission? It would probably say you from building local for different
> > distros and configs.
> > 
> > See https://gitlab.com/xen-project/xen/pipelines/35918510
> > 
> 
> Hi Wei,
> 
> I've guarded the vm_event_pack_segment_register with CONFIG_HVM for the 
> next version. I've run the tests on gitlab and they where all passed. I 
> want to suggest if you can add some AMD tests so we can be sure that all 
> the cross compile things are in place before sending any patch.

AMD? I think you mean ARM?

Yes there is a series for that. It is not yet reviewed or committed
though. That series needs an ARM box to build natively.

We tried to add cross-compile toolchain support, but wasn't successful.

If you're interested, have a look at .gitlab-ci.yml and Gitlab CI's
document. You should be able to add tests yourself.

Wei.

> 
> Thanks,
> Alex

_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xenproject.org
https://lists.xenproject.org/mailman/listinfo/xen-devel

^ permalink raw reply	[flat|nested] 16+ messages in thread

* Re: [PATCH v8] arch/x86: Add registers to vm_event
  2018-11-09 11:05               ` Alexandru Stefan ISAILA
  2018-11-09 11:09                 ` Wei Liu
@ 2018-11-09 11:10                 ` Alexandru Stefan ISAILA
  1 sibling, 0 replies; 16+ messages in thread
From: Alexandru Stefan ISAILA @ 2018-11-09 11:10 UTC (permalink / raw)
  To: Wei Liu, Razvan Cojocaru
  Cc: Xen-devel, Tamas K Lengyel, Jan Beulich, Andrew Cooper



On 09.11.2018 13:05, Alexandru Stefan ISAILA wrote:
> 
> 
> On 08.11.2018 20:02, Wei Liu wrote:
>> On Thu, Nov 08, 2018 at 07:56:29PM +0200, Razvan Cojocaru wrote:
>>> On 11/8/18 7:22 PM, Wei Liu wrote:
>>>> On Thu, Nov 08, 2018 at 05:56:07PM +0200, Razvan Cojocaru wrote:
>>>>> On 11/8/18 5:53 PM, Wei Liu wrote:
>>>>>> On Thu, Nov 08, 2018 at 05:19:48PM +0200, Razvan Cojocaru wrote:
>>>>>>> On 11/6/18 7:16 PM, Tamas K Lengyel wrote:
>>>>>>>> On Mon, Nov 5, 2018 at 2:54 AM Alexandru Stefan ISAILA
>>>>>>>> <aisaila@bitdefender.com> wrote:
>>>>>>>>>
>>>>>>>>> This patch adds a couple of regs to the vm_event that are used by
>>>>>>>>> the introspection. The base, limit and ar
>>>>>>>>> bits are compressed into a uint64_t union so as not to enlarge the
>>>>>>>>> vm_event.
>>>>>>>>>
>>>>>>>>> Signed-off-by: Alexandru Isaila <aisaila@bitdefender.com>
>>>>>>>>
>>>>>>>> Acked-by: Tamas K Lengyel <tamas@tklengyel.com>
>>>>>>>
>>>>>>> To the best of my ability to figure out the necessary acks, I believe
>>>>>>> that this one is ready to go in. :)
>>>>>>
>>>>>> Alright. I will pick this up in my next sweep.
>>>>>
>>>>> Thanks!
>>>>
>>>>
>>>> Unfortunately this will break shim build when HVM is disabled. Please
>>>> submit a new version. I think you will need to put
>>>> vm_event_pack_segment_register under CONFIG_HVM.
>>>
>>> Very sorry about that. We'll resubmit.
>>
>> Speaking of build breakage: would you guys consider signing up to gitlab
>> so that you can use all the build test infrastructure there before
>> submission? It would probably say you from building local for different
>> distros and configs.
>>
>> See https://gitlab.com/xen-project/xen/pipelines/35918510
>>
> 
> Hi Wei,
> 
> I've guarded the vm_event_pack_segment_register with CONFIG_HVM for the
> next version. I've run the tests on gitlab and they where all passed. I
> want to suggest if you can add some AMD tests so we can be sure that all

I wanted to say ARM not AMD, sorry

~Alex
_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xenproject.org
https://lists.xenproject.org/mailman/listinfo/xen-devel

^ permalink raw reply	[flat|nested] 16+ messages in thread

end of thread, other threads:[~2018-11-09 11:10 UTC | newest]

Thread overview: 16+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-11-05  9:54 [PATCH v8] arch/x86: Add registers to vm_event Alexandru Stefan ISAILA
2018-11-05 10:00 ` Jan Beulich
2018-11-06 17:16 ` Tamas K Lengyel
2018-11-08 15:19   ` Razvan Cojocaru
2018-11-08 15:53     ` Wei Liu
2018-11-08 15:56       ` Razvan Cojocaru
2018-11-08 17:22         ` Wei Liu
2018-11-08 17:56           ` Razvan Cojocaru
2018-11-08 18:02             ` Wei Liu
2018-11-08 18:22               ` Razvan Cojocaru
2018-11-08 18:27                 ` Wei Liu
2018-11-08 18:46                   ` Razvan Cojocaru
2018-11-08 20:45                     ` Wei Liu
2018-11-09 11:05               ` Alexandru Stefan ISAILA
2018-11-09 11:09                 ` Wei Liu
2018-11-09 11:10                 ` Alexandru Stefan ISAILA

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.