Skip to contentSkip to conversation

Add flag to start info regarding virtual mapped p2m list

PATCH Superseded Juergen Gross 6 participants 23 messages Mar 3, 2015 – Mar 18, 2015 2 messages not in the archive

v2 of 4 Superseded Latest is v4 →

lore
Share & tools
lore
#0 lore raw

PATCH v2 1/1 Add flag to start info regarding virtual mapped p2m list

In order to indicate the Xen tools capability to support the virtual mapped linear p2m list instead the 3 level mfn tree add a flag to the start_info page.

---
 xen/include/public/xen.h | 2 ++
 1 file changed, 2 insertions(+)
xen/include/public/xen.h +2 -0
index 3703c39..36c6d62 100644
@@ -777,6 +777,8 @@ typedef struct start_info start_info_t;
 #define SIF_INITDOMAIN    (1<<1)  /* Is this the initial control domain? */
 #define SIF_MULTIBOOT_MOD (1<<2)  /* Is mod_start a multiboot module? */
 #define SIF_MOD_START_PFN (1<<3)  /* Is mod_start a PFN? */
+#define SIF_VIRT_P2M      (1<<4)  /* Does Xen understand a virt. mapped P->M */
+                                  /* making the 3 level tree obsolete?       */
 #define SIF_PM_MASK       (0xFF<<8) /* reserve 1 byte for xen-pm options */
 
 /*
Signature · 1 line
2.1.4
Reviewed-by on v2 1/1
#1 lore raw
Quoted 5 lines · Juergen Gross

In order to indicate the Xen tools capability to support the virtual mapped linear p2m list instead the 3 level mfn tree add a flag to the start_info page.

Much more simple!

Quoted 17 lines
---
 xen/include/public/xen.h | 2 ++
 1 file changed, 2 insertions(+)
xen/include/public/xen.h +2 -0
index 3703c39..36c6d62 100644
@@ -777,6 +777,8 @@ typedef struct start_info start_info_t;
 #define SIF_INITDOMAIN    (1<<1)  /* Is this the initial control domain? */
 #define SIF_MULTIBOOT_MOD (1<<2)  /* Is mod_start a multiboot module? */
 #define SIF_MOD_START_PFN (1<<3)  /* Is mod_start a PFN? */
+#define SIF_VIRT_P2M      (1<<4)  /* Does Xen understand a virt. mapped P->M */
+                                  /* making the 3 level tree obsolete?       */
 #define SIF_PM_MASK       (0xFF<<8) /* reserve 1 byte for xen-pm options */
 
 /*
#2 lore raw
In reply to Juergen Gross
Quoted 15 lines
Quoted 1 line
Quoted 1 line · On 03.03.15 at 10:29, <"[email protected]".non-mime.internet> wrote:

In order to indicate the Xen tools capability to support the virtual mapped linear p2m list instead the 3 level mfn tree add a flag to the start_info page.

---
 xen/include/public/xen.h | 2 ++
 1 file changed, 2 insertions(+)
xen/include/public/xen.h +0 -0
index 3703c39..36c6d62 100644

xen/include/public/xen.h typedef struct start_info start_info_t; · line 784

Quoted 8 lines
xen/include/public/xen.h +2 -0
@@ -777,6 +777,8 @@ typedef struct start_info start_info_t;
 #define SIF_INITDOMAIN    (1<<1)  /* Is this the initial control domain? */
 #define SIF_MULTIBOOT_MOD (1<<2)  /* Is mod_start a multiboot module? */
 #define SIF_MOD_START_PFN (1<<3)  /* Is mod_start a PFN? */
+#define SIF_VIRT_P2M      (1<<4)  /* Does Xen understand a virt. mapped P->M */
+                                  /* making the 3 level tree obsolete?       */
 #define SIF_PM_MASK       (0xFF<<8) /* reserve 1 byte for xen-pm options */
 
 /*

Is there any reason why this can't be part of the tools patch (series) actually going to make use of it?

Also I'm not particularly happy with the name, as it suggests to be a statement about the initial P2M the guest gets handed - yet that is always virtually mapped. SIF_PERMANENT_VIRT_P2M is getting a little long I'm afraid, so I'm looking for better suggestions.

Jan

A message that is not in the archive (sent off-list or not yet received): [email protected]

#4 lore raw
Quoted 22 lines · Jan Beulich
Quoted 22 lines
Quoted 1 line
Quoted 1 line · On 03.03.15 at 10:29, <"[email protected]".non-mime.internet> wrote:

In order to indicate the Xen tools capability to support the virtual mapped linear p2m list instead the 3 level mfn tree add a flag to the start_info page.

---
  xen/include/public/xen.h | 2 ++
  1 file changed, 2 insertions(+)
xen/include/public/xen.h +2 -0
index 3703c39..36c6d62 100644
@@ -777,6 +777,8 @@ typedef struct start_info start_info_t;
  #define SIF_INITDOMAIN    (1<<1)  /* Is this the initial control domain? */
  #define SIF_MULTIBOOT_MOD (1<<2)  /* Is mod_start a multiboot module? */
  #define SIF_MOD_START_PFN (1<<3)  /* Is mod_start a PFN? */
+#define SIF_VIRT_P2M      (1<<4)  /* Does Xen understand a virt. mapped P->M */
+                                  /* making the 3 level tree obsolete?       */
  #define SIF_PM_MASK       (0xFF<<8) /* reserve 1 byte for xen-pm options */
 
Quoted 4 lines

xen/include/public/xen.h typedef struct start_info start_info_t; · line 784

Quoted 1 line
xen/include/public/xen.h +0 -0
  /*

Is there any reason why this can't be part of the tools patch (series) actually going to make use of it?

The main reason is I want to make use of it in the related kernel series first. And this requires the Xen header implementation.

Quoted 4 lines

Also I'm not particularly happy with the name, as it suggests to be a statement about the initial P2M the guest gets handed - yet that is always virtually mapped. SIF_PERMANENT_VIRT_P2M is getting a little long I'm afraid, so I'm looking for better suggestions.

SIF_VIRT_KERNEL_P2M?
SIF_FLAT_P2M?

Juergen

#5 lore raw
Quoted 9 lines
Quoted 1 line
Quoted 1 line · On 03.03.15 at 11:32, <[email protected]> wrote:
Quoted 4 lines · Jan Beulich

Also I'm not particularly happy with the name, as it suggests to be a statement about the initial P2M the guest gets handed - yet that is always virtually mapped. SIF_PERMANENT_VIRT_P2M is getting a little long I'm afraid, so I'm looking for better suggestions.

SIF_VIRT_KERNEL_P2M?
SIF_FLAT_P2M?

Neither reflects that this is not a statement about the initial P2M.

Jan

A message that is not in the archive (sent off-list or not yet received): [email protected]

#7 lore raw
Quoted 11 lines · Jan Beulich
Quoted 9 lines
Quoted 1 line
Quoted 1 line · On 03.03.15 at 11:32, <[email protected]> wrote:
Quoted 4 lines · Jan Beulich

Also I'm not particularly happy with the name, as it suggests to be a statement about the initial P2M the guest gets handed - yet that is always virtually mapped. SIF_PERMANENT_VIRT_P2M is getting a little long I'm afraid, so I'm looking for better suggestions.

SIF_VIRT_KERNEL_P2M?
SIF_FLAT_P2M?

Neither reflects that this is not a statement about the initial P2M.

What about SIF_VIRT_P2M_4TOOLS?

At least this variant would give a hint regarding the consumer of the p2m. Anybody wanting to know more should probably read the comment. :-)

Juergen

#8 lore raw
Quoted 9 lines
Quoted 1 line
Quoted 1 line · On 03.03.15 at 12:00, <[email protected]> wrote:
Quoted 7 lines · Jan Beulich
Quoted 7 lines
Quoted 1 line
Quoted 1 line · On 03.03.15 at 11:32, <[email protected]> wrote:
Quoted 4 lines · Jan Beulich

Also I'm not particularly happy with the name, as it suggests to be a statement about the initial P2M the guest gets handed - yet that is always virtually mapped. SIF_PERMANENT_VIRT_P2M is getting a little long I'm afraid, so I'm looking for better suggestions.

Quoted 6 lines
Quoted 4 lines
Quoted 2 lines

SIF_VIRT_KERNEL_P2M?
SIF_FLAT_P2M?

Neither reflects that this is not a statement about the initial P2M.

What about SIF_VIRT_P2M_4TOOLS?

Yes, why not?

Jan

#9 lore raw
In reply to Juergen Gross
Quoted 26 lines
Quoted 1 line
Quoted 1 line · On 03.03.15 at 11:32, <[email protected]> wrote:
Quoted 10 lines · Jan Beulich
Quoted 10 lines
Quoted 1 line
Quoted 1 line · On 03.03.15 at 10:29, <"[email protected]".non-mime.internet> wrote:

In order to indicate the Xen tools capability to support the virtual mapped linear p2m list instead the 3 level mfn tree add a flag to the start_info page.

---
  xen/include/public/xen.h | 2 ++
  1 file changed, 2 insertions(+)
Quoted 9 lines

xen/include/public/xen.h typedef struct start_info start_info_t; · line 780

Quoted 9 lines
xen/include/public/xen.h +1 -0
index 3703c39..36c6d62 100644
@@ -777,6 +777,8 @@ typedef struct start_info start_info_t;
  #define SIF_INITDOMAIN    (1<<1)  /* Is this the initial control domain? */
  #define SIF_MULTIBOOT_MOD (1<<2)  /* Is mod_start a multiboot module? */
  #define SIF_MOD_START_PFN (1<<3)  /* Is mod_start a PFN? */
+#define SIF_VIRT_P2M      (1<<4)  /* Does Xen understand a virt. mapped P->M 

*/

Quoted 1 line

xen/include/public/xen.h typedef struct start_info start_info_t; · line 781

Quoted 1 line
xen/include/public/xen.h +1 -0
+                                  /* making the 3 level tree obsolete?      

*/

Quoted 2 lines
Quoted 2 lines
xen/include/public/xen.h +0 -0
  #define SIF_PM_MASK       (0xFF<<8) /* reserve 1 byte for xen-pm options */
 
Quoted 7 lines
Quoted 4 lines

xen/include/public/xen.h typedef struct start_info start_info_t; · line 784

Quoted 1 line
xen/include/public/xen.h +0 -0
  /*

Is there any reason why this can't be part of the tools patch (series) actually going to make use of it?

The main reason is I want to make use of it in the related kernel series first. And this requires the Xen header implementation.

I was about to apply v3, but I'm still unconvinced: How would you test those kernel side changes without having anything to set the flag?

Jan

#10 lore raw
Quoted 31 lines · Jan Beulich
Quoted 31 lines
Quoted 1 line
Quoted 1 line · On 03.03.15 at 11:32, <[email protected]> wrote:
Quoted 10 lines · Jan Beulich
Quoted 10 lines
Quoted 1 line
Quoted 1 line · On 03.03.15 at 10:29, <"[email protected]".non-mime.internet> wrote:

In order to indicate the Xen tools capability to support the virtual mapped linear p2m list instead the 3 level mfn tree add a flag to the start_info page.

---
  xen/include/public/xen.h | 2 ++
  1 file changed, 2 insertions(+)
Quoted 9 lines

xen/include/public/xen.h typedef struct start_info start_info_t; · line 780

Quoted 9 lines
xen/include/public/xen.h +1 -0
index 3703c39..36c6d62 100644
@@ -777,6 +777,8 @@ typedef struct start_info start_info_t;
  #define SIF_INITDOMAIN    (1<<1)  /* Is this the initial control domain? */
  #define SIF_MULTIBOOT_MOD (1<<2)  /* Is mod_start a multiboot module? */
  #define SIF_MOD_START_PFN (1<<3)  /* Is mod_start a PFN? */
+#define SIF_VIRT_P2M      (1<<4)  /* Does Xen understand a virt. mapped P->M 

*/

Quoted 1 line

xen/include/public/xen.h typedef struct start_info start_info_t; · line 781

Quoted 1 line
xen/include/public/xen.h +1 -0
+                                  /* making the 3 level tree obsolete?      

*/

Quoted 6 lines

xen/include/public/xen.h typedef struct start_info start_info_t; · line 784

Quoted 3 lines
xen/include/public/xen.h +0 -0
  #define SIF_PM_MASK       (0xFF<<8) /* reserve 1 byte for xen-pm options */
 
  /*

Is there any reason why this can't be part of the tools patch (series) actually going to make use of it?

Quoted 6 lines
Quoted 2 lines

The main reason is I want to make use of it in the related kernel series first. And this requires the Xen header implementation.

I was about to apply v3, but I'm still unconvinced: How would you test those kernel side changes without having anything to set the flag?

It does seem odd to be committing to an ABI with no xen.git side implementation having been posted yet. Normally we ask that things go into xen.git first before any guests start using them.

Ian.

#11 lore raw
Quoted 37 lines
Quoted 1 line
Quoted 1 line · On 04.03.15 at 10:35, <[email protected]> wrote:
Quoted 35 lines · Jan Beulich
Quoted 34 lines
Quoted 1 line
Quoted 1 line · On 03.03.15 at 11:32, <[email protected]> wrote:
Quoted 10 lines · Jan Beulich
Quoted 10 lines
Quoted 1 line
Quoted 1 line · On 03.03.15 at 10:29, <"[email protected]".non-mime.internet> wrote:

In order to indicate the Xen tools capability to support the virtual mapped linear p2m list instead the 3 level mfn tree add a flag to the start_info page.

---
  xen/include/public/xen.h | 2 ++
  1 file changed, 2 insertions(+)
Quoted 9 lines

xen/include/public/xen.h typedef struct start_info start_info_t; · line 780

Quoted 9 lines
xen/include/public/xen.h +1 -0
index 3703c39..36c6d62 100644
@@ -777,6 +777,8 @@ typedef struct start_info start_info_t;
  #define SIF_INITDOMAIN    (1<<1)  /* Is this the initial control domain? */
  #define SIF_MULTIBOOT_MOD (1<<2)  /* Is mod_start a multiboot module? */
  #define SIF_MOD_START_PFN (1<<3)  /* Is mod_start a PFN? */
+#define SIF_VIRT_P2M      (1<<4)  /* Does Xen understand a virt. mapped P->M 

*/

Quoted 1 line

xen/include/public/xen.h typedef struct start_info start_info_t; · line 781

Quoted 1 line
xen/include/public/xen.h +1 -0
+                                  /* making the 3 level tree obsolete?     

*/

Quoted 6 lines

xen/include/public/xen.h typedef struct start_info start_info_t; · line 784

Quoted 3 lines
xen/include/public/xen.h +0 -0
  #define SIF_PM_MASK       (0xFF<<8) /* reserve 1 byte for xen-pm options */
 
  /*

Is there any reason why this can't be part of the tools patch (series) actually going to make use of it?

The main reason is I want to make use of it in the related kernel series first. And this requires the Xen header implementation.

Quoted 7 lines
Quoted 3 lines

I was about to apply v3, but I'm still unconvinced: How would you test those kernel side changes without having anything to set the flag?

It does seem odd to be committing to an ABI with no xen.git side implementation having been posted yet. Normally we ask that things go into xen.git first before any guests start using them.

Your reply seems ambiguous to me: If it was sent to Jürgen (with me Cc-ed) I'd read it as supporting my earlier statement. Since, however, it was sent to me (with Jürgen Cc-ed), I could also read it as supporting the public header change alone to go in (even if in slight collision with the word "implementation" in there). Could you clarify?

Jan

_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xen.org/xen-devel

#12 lore raw
Quoted 45 lines · Jan Beulich
Quoted 37 lines
Quoted 1 line
Quoted 1 line · On 04.03.15 at 10:35, <[email protected]> wrote:
Quoted 35 lines · Jan Beulich
Quoted 34 lines
Quoted 1 line
Quoted 1 line · On 03.03.15 at 11:32, <[email protected]> wrote:
Quoted 10 lines · Jan Beulich
Quoted 10 lines
Quoted 1 line
Quoted 1 line · On 03.03.15 at 10:29, <"[email protected]".non-mime.internet> wrote:

In order to indicate the Xen tools capability to support the virtual mapped linear p2m list instead the 3 level mfn tree add a flag to the start_info page.

---
  xen/include/public/xen.h | 2 ++
  1 file changed, 2 insertions(+)
Quoted 9 lines

xen/include/public/xen.h typedef struct start_info start_info_t; · line 780

Quoted 9 lines
xen/include/public/xen.h +1 -0
index 3703c39..36c6d62 100644
@@ -777,6 +777,8 @@ typedef struct start_info start_info_t;
  #define SIF_INITDOMAIN    (1<<1)  /* Is this the initial control domain? */
  #define SIF_MULTIBOOT_MOD (1<<2)  /* Is mod_start a multiboot module? */
  #define SIF_MOD_START_PFN (1<<3)  /* Is mod_start a PFN? */
+#define SIF_VIRT_P2M      (1<<4)  /* Does Xen understand a virt. mapped P->M 

*/

Quoted 1 line

xen/include/public/xen.h typedef struct start_info start_info_t; · line 781

Quoted 1 line
xen/include/public/xen.h +1 -0
+                                  /* making the 3 level tree obsolete?     

*/

Quoted 6 lines

xen/include/public/xen.h typedef struct start_info start_info_t; · line 784

Quoted 3 lines
xen/include/public/xen.h +0 -0
  #define SIF_PM_MASK       (0xFF<<8) /* reserve 1 byte for xen-pm options */
 
  /*

Is there any reason why this can't be part of the tools patch (series) actually going to make use of it?

The main reason is I want to make use of it in the related kernel series first. And this requires the Xen header implementation.

Quoted 7 lines
Quoted 3 lines

I was about to apply v3, but I'm still unconvinced: How would you test those kernel side changes without having anything to set the flag?

It does seem odd to be committing to an ABI with no xen.git side implementation having been posted yet. Normally we ask that things go into xen.git first before any guests start using them.

Quoted 6 lines

Your reply seems ambiguous to me: If it was sent to Jürgen (with me Cc-ed) I'd read it as supporting my earlier statement. Since, however, it was sent to me (with Jürgen Cc-ed), I could also read it as supporting the public header change alone to go in (even if in slight collision with the word "implementation" in there). Could you clarify?

Sorry, I was in support of you (Jan) here.

Sometime an ABI header change might be all which is needed before guests start using things (e.g. an io protocol change), but I think in this case we really need to at least have seen the complete solution (so any relevant Xen/tools changes) before we commit to an ABI.

It _might_ be sufficient if this patch included some documentation about what this flag actually means, but best would be to see the actual tools side (or even a design, sorry if I've missed this somewhere along the line).

What I don't want to happen is for me to request a change during tools review only to be told "kernels in the field already do it this way".

Ian.

_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xen.org/xen-devel

#13 lore raw
Quoted 60 lines · Ian Campbell
Quoted 45 lines · Jan Beulich
Quoted 37 lines
Quoted 1 line
Quoted 1 line · On 04.03.15 at 10:35, <[email protected]> wrote:
Quoted 35 lines · Jan Beulich
Quoted 34 lines
Quoted 1 line
Quoted 1 line · On 03.03.15 at 11:32, <[email protected]> wrote:
Quoted 10 lines · Jan Beulich
Quoted 10 lines
Quoted 1 line
Quoted 1 line · On 03.03.15 at 10:29, <"[email protected]".non-mime.internet> wrote:

In order to indicate the Xen tools capability to support the virtual mapped linear p2m list instead the 3 level mfn tree add a flag to the start_info page.

---
   xen/include/public/xen.h | 2 ++
   1 file changed, 2 insertions(+)
Quoted 9 lines

xen/include/public/xen.h typedef struct start_info start_info_t; · line 780

Quoted 9 lines
xen/include/public/xen.h +1 -0
index 3703c39..36c6d62 100644
@@ -777,6 +777,8 @@ typedef struct start_info start_info_t;
   #define SIF_INITDOMAIN    (1<<1)  /* Is this the initial control domain? */
   #define SIF_MULTIBOOT_MOD (1<<2)  /* Is mod_start a multiboot module? */
   #define SIF_MOD_START_PFN (1<<3)  /* Is mod_start a PFN? */
+#define SIF_VIRT_P2M      (1<<4)  /* Does Xen understand a virt. mapped P->M

*/

Quoted 1 line

xen/include/public/xen.h typedef struct start_info start_info_t; · line 781

Quoted 1 line
xen/include/public/xen.h +1 -0
+                                  /* making the 3 level tree obsolete?

*/

Quoted 6 lines

xen/include/public/xen.h typedef struct start_info start_info_t; · line 784

Quoted 3 lines
xen/include/public/xen.h +0 -0
   #define SIF_PM_MASK       (0xFF<<8) /* reserve 1 byte for xen-pm options */
 
   /*

Is there any reason why this can't be part of the tools patch (series) actually going to make use of it?

The main reason is I want to make use of it in the related kernel series first. And this requires the Xen header implementation.

Quoted 7 lines
Quoted 3 lines

I was about to apply v3, but I'm still unconvinced: How would you test those kernel side changes without having anything to set the flag?

It does seem odd to be committing to an ABI with no xen.git side implementation having been posted yet. Normally we ask that things go into xen.git first before any guests start using them.

Quoted 6 lines

Your reply seems ambiguous to me: If it was sent to Jürgen (with me Cc-ed) I'd read it as supporting my earlier statement. Since, however, it was sent to me (with Jürgen Cc-ed), I could also read it as supporting the public header change alone to go in (even if in slight collision with the word "implementation" in there). Could you clarify?

Sorry, I was in support of you (Jan) here.

Sometime an ABI header change might be all which is needed before guests start using things (e.g. an io protocol change), but I think in this case we really need to at least have seen the complete solution (so any relevant Xen/tools changes) before we commit to an ABI.

Quoted 7 lines

It _might_ be sufficient if this patch included some documentation about what this flag actually means, but best would be to see the actual tools side (or even a design, sorry if I've missed this somewhere along the line).

What I don't want to happen is for me to request a change during tools review only to be told "kernels in the field already do it this way".

I'd like to do an appropriate change in xl, but I've been told this would make sense only for migration protocol V2. OTOH I don't want to wait for an undefined amount of time until this will be posted, so I sent the ABI change first.

I could, of course, wait with the flag bit until xl is ready and post another kernel patch then. Unfortunately this would delay Linux support for automatically be able to run as a pv-domain >500GB further, so I strongly recommend accepting the interface change now.

Juergen

_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xen.org/xen-devel

#14 lore raw
Quoted 74 lines · Juergen Gross
Quoted 60 lines · Ian Campbell
Quoted 45 lines · Jan Beulich
Quoted 37 lines
Quoted 1 line
Quoted 1 line · On 04.03.15 at 10:35, <[email protected]> wrote:
Quoted 35 lines · Jan Beulich
Quoted 34 lines
Quoted 1 line
Quoted 1 line · On 03.03.15 at 11:32, <[email protected]> wrote:
Quoted 10 lines · Jan Beulich
Quoted 10 lines
Quoted 1 line
Quoted 1 line · On 03.03.15 at 10:29, <"[email protected]".non-mime.internet> wrote:

In order to indicate the Xen tools capability to support the virtual mapped linear p2m list instead the 3 level mfn tree add a flag to the start_info page.

---
   xen/include/public/xen.h | 2 ++
   1 file changed, 2 insertions(+)
Quoted 9 lines

xen/include/public/xen.h typedef struct start_info start_info_t; · line 780

Quoted 9 lines
xen/include/public/xen.h +1 -0
index 3703c39..36c6d62 100644
@@ -777,6 +777,8 @@ typedef struct start_info start_info_t;
   #define SIF_INITDOMAIN    (1<<1)  /* Is this the initial control domain? */
   #define SIF_MULTIBOOT_MOD (1<<2)  /* Is mod_start a multiboot module? */
   #define SIF_MOD_START_PFN (1<<3)  /* Is mod_start a PFN? */
+#define SIF_VIRT_P2M      (1<<4)  /* Does Xen understand a virt. mapped P->M

*/

Quoted 1 line

xen/include/public/xen.h typedef struct start_info start_info_t; · line 781

Quoted 1 line
xen/include/public/xen.h +1 -0
+                                  /* making the 3 level tree obsolete?

*/

Quoted 6 lines

xen/include/public/xen.h typedef struct start_info start_info_t; · line 784

Quoted 3 lines
xen/include/public/xen.h +0 -0
   #define SIF_PM_MASK       (0xFF<<8) /* reserve 1 byte for xen-pm options */
 
   /*

Is there any reason why this can't be part of the tools patch (series) actually going to make use of it?

The main reason is I want to make use of it in the related kernel series first. And this requires the Xen header implementation.

Quoted 7 lines
Quoted 3 lines

I was about to apply v3, but I'm still unconvinced: How would you test those kernel side changes without having anything to set the flag?

It does seem odd to be committing to an ABI with no xen.git side implementation having been posted yet. Normally we ask that things go into xen.git first before any guests start using them.

Quoted 6 lines

Your reply seems ambiguous to me: If it was sent to Jürgen (with me Cc-ed) I'd read it as supporting my earlier statement. Since, however, it was sent to me (with Jürgen Cc-ed), I could also read it as supporting the public header change alone to go in (even if in slight collision with the word "implementation" in there). Could you clarify?

Sorry, I was in support of you (Jan) here.

Sometime an ABI header change might be all which is needed before guests start using things (e.g. an io protocol change), but I think in this case we really need to at least have seen the complete solution (so any relevant Xen/tools changes) before we commit to an ABI.

Quoted 7 lines

It _might_ be sufficient if this patch included some documentation about what this flag actually means, but best would be to see the actual tools side (or even a design, sorry if I've missed this somewhere along the line).

What I don't want to happen is for me to request a change during tools review only to be told "kernels in the field already do it this way".

I'd like to do an appropriate change in xl, but I've been told this would make sense only for migration protocol V2. OTOH I don't want to wait for an undefined amount of time until this will be posted, so I sent the ABI change first.

Quoted 4 lines

I could, of course, wait with the flag bit until xl is ready and post another kernel patch then. Unfortunately this would delay Linux support for automatically be able to run as a pv-domain >500GB further, so I strongly recommend accepting the interface change now.

Please at least sketch out a design/description of what this flag means to the guest and/or tools and what eventual tools support you expect will be needed, and perhaps some ideas regarding what that support might look like.

Without this your proposed ABI change is just a random bit in a data structure with no context.

Ian.

_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xen.org/xen-devel

#15 lore raw
Quoted 11 lines · Ian Campbell
Quoted 9 lines · Juergen Gross

I'd like to do an appropriate change in xl, but I've been told this would make sense only for migration protocol V2. OTOH I don't want to wait for an undefined amount of time until this will be posted, so I sent the ABI change first.

I could, of course, wait with the flag bit until xl is ready and post another kernel patch then. Unfortunately this would delay Linux support for automatically be able to run as a pv-domain >500GB further, so I strongly recommend accepting the interface change now.

Quoted 7 lines

Please at least sketch out a design/description of what this flag means to the guest and/or tools and what eventual tools support you expect will be needed, and perhaps some ideas regarding what that support might look like.

Without this your proposed ABI change is just a random bit in a data structure with no context.

If this is just an ordering constraint between kernel and tools work, maybe we could just define the bit as reserved for now, while the dev work finishes, and give it a proper name when the toolstack bits go in.

Tim.

#16 lore raw
Quoted 17 lines · Tim Deegan
Quoted 16 lines · Ian Campbell
Quoted 9 lines · Juergen Gross

I'd like to do an appropriate change in xl, but I've been told this would make sense only for migration protocol V2. OTOH I don't want to wait for an undefined amount of time until this will be posted, so I sent the ABI change first.

I could, of course, wait with the flag bit until xl is ready and post another kernel patch then. Unfortunately this would delay Linux support for automatically be able to run as a pv-domain >500GB further, so I strongly recommend accepting the interface change now.

Please at least sketch out a design/description of what this flag means to the guest and/or tools and what eventual tools support you expect will be needed, and perhaps some ideas regarding what that support might look like.

Quoted 6 lines
Quoted 2 lines

Without this your proposed ABI change is just a random bit in a data structure with no context.

If this is just an ordering constraint between kernel and tools work, maybe we could just define the bit as reserved for now, while the dev work finishes, and give it a proper name when the toolstack bits go in.

I don't think this will be a proper solution. Using this bit in the kernel would either be okay in case the interface is added later to Xen, or it would be not okay making it impossible later to use that bit for other purposes. In both cases we could easily name the bit like I did. It would either be used like intended, or it would never be set thus doing no harm.

Juergen

#17 lore raw
Quoted 1 line · Juergen Gross

It would either be used like intended,

Which is how? That is what is really missing here.

So far this appears to be a bit which enables some as yet unspecified[0] behaviour in one particular OS kernel with some as yet undiscussed potential future impact on toolstack functionality.

Ian.

[0] Apart from an implementation in Linux, which is not a specification.

#18 lore raw
Quoted 8 lines · Ian Campbell
Quoted 1 line · Juergen Gross

It would either be used like intended,

Which is how? That is what is really missing here.

So far this appears to be a bit which enables some as yet unspecified[0] behaviour in one particular OS kernel with some as yet undiscussed potential future impact on toolstack functionality.

Sorry for the late answer, but I managed to move this mail to my archive before reacting on it. :-(

Xen pv domains are using a domain private p2m list to convert guest pfns to mfns. This p2m list has to be updated by the Xen tools during domain restore and migration, as the mfns will most likely change. In order to locate the p2m list the Xen tools need an interface provided by the guest. Up to now this interface has been the shared info page where the guest would store the mfn of the top level page of a 3-level p2m tree.

This p2m tree is fixed in it's layout and due to the limitation of entries it can hold at each level it is limiting the maximum size of the p2m list which can be reported to the Xen tools. The maximum memory the p2m tree can support for 64 bit domains is 512 GB (32 bit domains don't have a problem, as the p2m tree limit is much higher than the supported domain size of 64 GB).

In order to be able to support pv domains with more than 512 GB an additional way to specify the p2m list for the Xen tools has been added:
instead of a tree structure linked via mfns, the virtual address of a linear p2m list, the cr3 value of the related address space and the size of the p2m list can be specified by the guest.

Guests implementing this new interface need to know, of course, whether the Xen tools are capable to use the new interface instead of the old p2m tree interface. Otherwise a guest using only the new interface with the virtual mapped linear p2m list on a machine with old Xen tools not supporting this interface could not be restored or migrated.

The added flag in the start info indicates the Xen tool's capability to use the new interface enabling the guest to omit the p2m tree and thus to support more than 512 GB of RAM.

Juergen

#19 lore raw
Quoted 4 lines · Juergen Gross
Quoted 3 lines · Ian Campbell
Quoted 1 line · Juergen Gross

It would either be used like intended,

Quoted 8 lines
Quoted 5 lines

Which is how? That is what is really missing here.

So far this appears to be a bit which enables some as yet unspecified[0] behaviour in one particular OS kernel with some as yet undiscussed potential future impact on toolstack functionality.

Sorry for the late answer, but I managed to move this mail to my archive before reacting on it. :-(

No problem.

The description looks like the sort of thing which ought to go into the commit log.

Is there not an ABI change somewhere else relating to the exposure of the cr3+vaddr+size? If so why is it not in this patch?

Ideally whichever file which needs to change in xen/include/public to expose that change should also come along with documentation for this new ABI.

If that change has been deferred for some reason then I think it (and why) should be mentioned in the commit message, you'll also want to explain why adding the bit now but the ABI change later is safe, i.e. what the transition plan is.

AIUI this change has broken memory hotplug and has also made it difficult from an ABI PoV to reinstate that support. I think that needs to be addressed (i.e. at the ABI design level, not necessary implemented) before we add a bit exposing this feature.

Quoted 5 lines

Guests implementing this new interface need to know, of course, whether the Xen tools are capable to use the new interface instead of the old p2m tree interface. Otherwise a guest using only the new interface with the virtual mapped linear p2m list on a machine with old Xen tools not supporting this interface could not be restored or migrated.

What is the mechanism for the converse, i.e. for the tools to detect if a given guest is making use of this functionality?

Are tools going to be able to tell at migration time, or is it something which needs to be detectable at domain build time (and therefore exposed in the kernel ELF notes)?

Ian.

#20 lore raw
Quoted 11 lines · Ian Campbell
Quoted 10 lines · Juergen Gross
Quoted 8 lines · Ian Campbell
Quoted 1 line · Juergen Gross

It would either be used like intended,

Which is how? That is what is really missing here.

So far this appears to be a bit which enables some as yet unspecified[0] behaviour in one particular OS kernel with some as yet undiscussed potential future impact on toolstack functionality.

Quoted 7 lines
Quoted 2 lines

Sorry for the late answer, but I managed to move this mail to my archive before reacting on it. :-(

No problem.

The description looks like the sort of thing which ought to go into the commit log.

Okay, I can change it.

Quoted 2 lines

Is there not an ABI change somewhere else relating to the exposure of the cr3+vaddr+size? If so why is it not in this patch?

Commit 50bd1f0825339dfacde471df7664729216fc46e3

Quoted 3 lines

Ideally whichever file which needs to change in xen/include/public to expose that change should also come along with documentation for this new ABI.

Included in above commit in form of comments in the modified file.

Quoted 9 lines

If that change has been deferred for some reason then I think it (and why) should be mentioned in the commit message, you'll also want to explain why adding the bit now but the ABI change later is safe, i.e. what the transition plan is.

AIUI this change has broken memory hotplug and has also made it difficult from an ABI PoV to reinstate that support. I think that needs to be addressed (i.e. at the ABI design level, not necessary implemented) before we add a bit exposing this feature.

The interface change didn't brake anything. It was the implementation in the Linux kernel.

Quoted 8 lines
Quoted 5 lines

Guests implementing this new interface need to know, of course, whether the Xen tools are capable to use the new interface instead of the old p2m tree interface. Otherwise a guest using only the new interface with the virtual mapped linear p2m list on a machine with old Xen tools not supporting this interface could not be restored or migrated.

What is the mechanism for the converse, i.e. for the tools to detect if a given guest is making use of this functionality?

See above commit. It's all in the comments.

Quoted 3 lines

Are tools going to be able to tell at migration time, or is it something which needs to be detectable at domain build time (and therefore exposed in the kernel ELF notes)?

Migration time is fine.

Juergen

#21 lore raw
Quoted 10 lines · Juergen Gross
Quoted 2 lines

Is there not an ABI change somewhere else relating to the exposure of the cr3+vaddr+size? If so why is it not in this patch?

Commit 50bd1f0825339dfacde471df7664729216fc46e3

Quoted 3 lines

Ideally whichever file which needs to change in xen/include/public to expose that change should also come along with documentation for this new ABI.

Included in above commit in form of comments in the modified file.

Great, please mention in the commit log here that this is building on that work (would have saved me having to ask).

Quoted 5 lines
Quoted 5 lines

If that change has been deferred for some reason then I think it (and why) should be mentioned in the commit message, you'll also want to explain why adding the bit now but the ABI change later is safe, i.e. what the transition plan is.

Quoted 7 lines
Quoted 4 lines

AIUI this change has broken memory hotplug and has also made it difficult from an ABI PoV to reinstate that support. I think that needs to be addressed (i.e. at the ABI design level, not necessary implemented) before we add a bit exposing this feature.

The interface change didn't brake anything. It was the implementation in the Linux kernel.

AIUI the new interface has made it difficult to for OS kernels to arrange to be able to grow their P2M. Whether that is an "OS kernel issues" or an "interface issue" isn't really the point, the fact is that for whatever reason it is now difficult to arrange.

Is there a plan for how this might be dealt with?

Ian.

#22 lore raw
In reply to Juergen Gross
Quoted 5 lines · Juergen Gross

I could, of course, wait with the flag bit until xl is ready and post another kernel patch then. Unfortunately this would delay Linux support for automatically be able to run as a pv-domain >500GB further, so I strongly recommend accepting the interface change now.

I suggested before:

"If dom0, enable >512G.
If domU, enable >512G if requested by command line option /or/ toolstack indicates that it supports the linear p2m."

So this flag is only required to /automatically/ enable >512GB PV guests. You still need the manual (command line) override so this flag isn't needed until the toolstack actually supports the linear p2m, and the kernel support for this automatic enablement can be added later as well.

David

#23 lore raw
Quoted 9 lines · David Vrabel
Quoted 5 lines · Juergen Gross

I could, of course, wait with the flag bit until xl is ready and post another kernel patch then. Unfortunately this would delay Linux support for automatically be able to run as a pv-domain >500GB further, so I strongly recommend accepting the interface change now.

I suggested before:

Quoted 8 lines

"If dom0, enable >512G.
If domU, enable >512G if requested by command line option /or/ toolstack indicates that it supports the linear p2m."

So this flag is only required to /automatically/ enable >512GB PV guests. You still need the manual (command line) override so this flag isn't needed until the toolstack actually supports the linear p2m, and the kernel support for this automatic enablement can be added later as well.

Correct. The question is, whether we want some kernel versions capable of running as 1TB guest requiring an additional boot parameter to do so. Avoiding this is easy, but if you don't like it, I can wait with this patch.

Juergen

#24 lore raw
Quoted 20 lines · Juergen Gross
Quoted 13 lines · David Vrabel
Quoted 5 lines · Juergen Gross

I could, of course, wait with the flag bit until xl is ready and post another kernel patch then. Unfortunately this would delay Linux support for automatically be able to run as a pv-domain >500GB further, so I strongly recommend accepting the interface change now.

I suggested before:

"If dom0, enable >512G.
If domU, enable >512G if requested by command line option /or/ toolstack indicates that it supports the linear p2m."

Quoted 5 lines

So this flag is only required to /automatically/ enable >512GB PV guests. You still need the manual (command line) override so this flag isn't needed until the toolstack actually supports the linear p2m, and the kernel support for this automatic enablement can be added later as well.

Quoted 4 lines

Correct. The question is, whether we want some kernel versions capable of running as 1TB guest requiring an additional boot parameter to do so. Avoiding this is easy, but if you don't like it, I can wait with this patch.

I think running such large PV domUs is a sufficiently rare use case that this is fine.

David