xl mem-max error
Hi,
I get this error:
# xl mem-max 3 700
libxl: error: libxl.c:4549:libxl_domain_setmaxmem: memory_static_max must be greater than or or equal to memory_dynamic_max
: Success
cannot set domid 3 static max memory to : 700 # xenstore-ls -f
...
/local/domain/3/memory = ""
/local/domain/3/memory/static-max = "716800"
/local/domain/3/memory/target = "716801"
/local/domain/3/memory/videoram = "-1" # xl list -l 3
[
{
"domid": 3,
"config": {
"c_info": {
"type": "pv",
"name": "0004fb0000060000834f0ecf044b2219",
"uuid": "0004fb00-0006-0000-834f-0ecf044b2219",
"run_hotplug_scripts": "True"
},
"b_info": {
"max_vcpus": 32,
"avail_vcpus": [
0,
1
],
"max_memkb": 716800,
"target_memkb": 716800,
"shadow_memkb": 38368,
"sched_params": {
"weight": 55000
},
"claim_mode": "True",
"type.pv": {
"bootloader": "/usr/bin/pygrub"
}
},
"disks": [
{
"pdev_path": "/OVS/Repositories/0004fb0000030000abbd129258377a77/VirtualDisks/OVM_OL6U4_X86_64_PVM_2GB_UEK3_System.img",
"vdev": "xvda",
"format": "raw",
"readwrite": 1
}
],
"nics": [
{
"devid": 0,
"mac": "00:21:f6:00:08:aa",
"bridge": "10f36ca5ec"
}
],
"vfbs": [
{
"devid": 0,
"vnc": {
"listen": "127.0.0.1",
"findunused": "True"
},
"sdl": { },
"keymap": "en-us"
}
],
"vkbs": [
{
"devid": 0
}
],
"on_reboot": "restart",
"on_crash": "restart"
}
}
]Another HVM guest::
# xenstore-ls -f
...
/local/domain/2/memory/static-max = "716800"
/local/domain/2/memory/target = "708608"
/local/domain/2/memory/videoram = "8192"Testing on:
commit 816f5bb1f0740be8355e1be6cc24edf09547d984
Author: Ian Campbell <[email protected]>
Date: Fri Oct 24 10:58:33 2014 +0100It seems target_mem always bigger than max_mem. Looks wrong.
Thanks,
Zhigang
Quoted 9 lines · Zhigang Wang
Hi,
I get this error:
# xl mem-max 3 700 libxl: error: libxl.c:4549:libxl_domain_setmaxmem: memory_static_max must be greater than or or equal to memory_dynamic_max : Success cannot set domid 3 static max memory to : 700
What's your expected behaviour? What's your end goal?
Can the behavior you expected be achieved by manipulating target memory instead of maxmem?
ISTR Oracle has different view on how memory targets are managed. But with no other information provided it's hard for me to figure out your intent and start a conversation.
Wei.
Quoted 5 lines · Wei Liu
Quoted 4 lines · Zhigang Wang
Hi,
I get this error:
Quoted 7 lines
Quoted 5 lines
# xl mem-max 3 700 libxl: error: libxl.c:4549:libxl_domain_setmaxmem: memory_static_max must be greater than or or equal to memory_dynamic_max : Success cannot set domid 3 static max memory to : 700What's your expected behaviour? What's your end goal?
I expect: after start a VM with memory = 700, then I can do:
# xl mem-max <domain> 700
In our code, we always check (libxl.c):
if (max_memkb < memorykb) {
LIBXL__LOG_ERRNO(ctx, LIBXL__LOG_ERROR, "memory_static_max must be greater than or or equal to memory_dynamic_max\n");
goto out;
}As target memory is always bigger than static-max in xenstore (from my test, for both pv and hvm):
/local/domain/3/memory/static-max = "716800"
/local/domain/3/memory/target = "716801So it will not success.
Also I think target memory bigger than static-max seems not right.
Thanks,
Zhigang
Quoted 9 lines
Can the behavior you expected be achieved by manipulating target memory instead of maxmem?
ISTR Oracle has different view on how memory targets are managed. But with no other information provided it's hard for me to figure out your intent and start a conversation.
Wei.
Quoted 26 lines · Zhigang Wang
Quoted 5 lines · Wei Liu
Quoted 4 lines · Zhigang Wang
Hi,
I get this error:
Quoted 7 lines
Quoted 5 lines
# xl mem-max 3 700 libxl: error: libxl.c:4549:libxl_domain_setmaxmem: memory_static_max must be greater than or or equal to memory_dynamic_max : Success cannot set domid 3 static max memory to : 700What's your expected behaviour? What's your end goal?
I expect: after start a VM with memory = 700, then I can do:
# xl mem-max <domain> 700In our code, we always check (
libxl.c):if (max_memkb < memorykb) { LIBXL__LOG_ERRNO(ctx, LIBXL__LOG_ERROR, "memory_static_max must be greater than or or equal to memory_dynamic_max\n"); goto out; }
Quoted 9 lines
As target memory is always bigger than static-max in xenstore (from my test, for both pv and hvm):
/local/domain/3/memory/static-max = "716800" /local/domain/3/memory/target = "716801So it will not success.
Also I think target memory bigger than static-max seems not right.
This does look bogus, which may cause the guest to try to balloon up over limit. At the very least, we should fix make target as big as statix-max?
Ian and Ian, any thought how this bug came into being? I think we should fix this for 4.5, but I don't think I know enough of how memory target is expected to behave.
Wei.
Quoted 4 lines · Wei Liu
Ian and Ian, any thought how this bug came into being? I think we should fix this for 4.5, but I don't think I know enough of how memory target is expected to behave.
I'm confused by the description of what's going on, in particular the mixing of mem-max commands and target xenstore nodes (since the former doesn't really affect the latter).
How was the domain started (memory= and maxmem=).
What were static-max and target at the point?
What did they change to when xl mem-max was issued?
What did you expect them to change to instead?
Ian.
Quoted 11 lines · Ian Campbell
Quoted 4 lines · Wei Liu
Ian and Ian, any thought how this bug came into being? I think we should fix this for 4.5, but I don't think I know enough of how memory target is expected to behave.
I'm confused by the description of what's going on, in particular the mixing of mem-max commands and target xenstore nodes (since the former doesn't really affect the latter).
Quoted 7 lines
How was the domain started (memory= and maxmem=).
What were static-max and target at the point?
What did they change to when xl mem-max was issued?
What did you expect them to change to instead?
Sorry for the confusion I made. Here is the problem I encountered:
1. Start a VM with 'memory = 700'.
2. Doing 'xl mem-max <domid> 700' will cause a error.
My expectation: after I start a VM with 'memory = 700', I can do 'xl mem-max <domid> 700'.
A little analysis of the problem:
1. Error: "libxl: error: libxl.c:4549:libxl_domain_setmaxmem: memory_static_max must be greater than or or equal to memory_dynamic_max"
2. I find static-max always less then target memory in xenstore:
/local/domain/3/memory/static-max = "716800" (memory_static_max)
/local/domain/3/memory/target = "716801" (memory_dynamic_max)which looks bogus.
Thanks,
Zhigang
Quoted 14 lines · Zhigang Wang
Quoted 13 lines · Ian Campbell
Quoted 4 lines · Wei Liu
Ian and Ian, any thought how this bug came into being? I think we should fix this for 4.5, but I don't think I know enough of how memory target is expected to behave.
I'm confused by the description of what's going on, in particular the mixing of mem-max commands and target xenstore nodes (since the former doesn't really affect the latter).
How was the domain started (memory= and maxmem=).
Quoted 7 lines
Quoted 5 lines
What were static-max and target at the point?
What did they change to when xl mem-max was issued?
What did you expect them to change to instead?
Sorry for the confusion I made. Here is the problem I encountered:
This is just restating what was upthread, which, as I say, is confusing to me.
Please can you just answer the 4 questions I asked and we can take it from there.
Quoted 20 lines
1. Start a VM with 'memory = 700'.
2. Doing 'xl mem-max <domid> 700' will cause a error.My expectation: after I start a VM with 'memory = 700', I can do 'xl mem-max <domid> 700'.
A little analysis of the problem:
1. Error: "libxl: error: libxl.c:4549:libxl_domain_setmaxmem:
memory_static_maxmust be greater than or or equal tomemory_dynamic_max"2. I find static-max always less then target memory in xenstore:
/local/domain/3/memory/static-max = "716800" (memory_static_max) /local/domain/3/memory/target = "716801" (memory_dynamic_max)which looks bogus.
Thanks,
Zhigang
OK. Let me try my best:
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
I'm confused by the description of what's going on, in particular the mixing of mem-max commands and target xenstore nodes (since the former doesn't really affect the latter).
How was the domain started (memory= and maxmem=).
xl create with 'memory = 700', no maxmem been set. I think it means maxmem = memory for this case.
Quoted 1 line
Quoted 1 line
Quoted 1 line
What were static-max and target at the point?
/local/domain/3/memory/static-max = "716800"
/local/domain/3/memory/target = "716801"Quoted 1 line
Quoted 1 line
Quoted 1 line
What did they change to when xl mem-max was issued?
When I issue 'xl mem-max <domid> 700', static-max and target in xenstore will not change, but it will cause the command to fail.
Because: "libxl: error: libxl.c:4549:libxl_domain_setmaxmem: memory_static_max must be greater than or or equal to memory_dynamic_max"
Quoted 1 line
Quoted 1 line
Quoted 1 line
What did you expect them to change to instead?
I expect I can set the maxmem to the same value I initially set (700).
Thanks,
Zhigang
Quoted 31 lines
Quoted 2 lines
Sorry for the confusion I made. Here is the problem I encountered:
This is just restating what was upthread, which, as I say, is confusing to me.
Please can you just answer the 4 questions I asked and we can take it from there.
Quoted 20 lines
1. Start a VM with 'memory = 700'.
2. Doing 'xl mem-max <domid> 700' will cause a error.My expectation: after I start a VM with 'memory = 700', I can do 'xl mem-max <domid> 700'.
A little analysis of the problem:
1. Error: "libxl: error: libxl.c:4549:libxl_domain_setmaxmem:
memory_static_maxmust be greater than or or equal tomemory_dynamic_max"2. I find static-max always less then target memory in xenstore:
/local/domain/3/memory/static-max = "716800" (memory_static_max) /local/domain/3/memory/target = "716801" (memory_dynamic_max)which looks bogus.
Thanks,
Zhigang
Quoted 17 lines · Zhigang Wang
OK. Let me try my best:
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
I'm confused by the description of what's going on, in particular the mixing of mem-max commands and target xenstore nodes (since the former doesn't really affect the latter).
How was the domain started (memory= and maxmem=).
xl create with 'memory = 700', no maxmem been set. I think it means maxmem = memory for this case.
Quoted 1 line
Quoted 1 line
Quoted 1 line
What were static-max and target at the point?
/local/domain/3/memory/static-max = "716800" /local/domain/3/memory/target = "716801"Quoted 1 line
Quoted 1 line
Quoted 1 line
What did they change to when xl mem-max was issued?
Quoted 7 lines
When I issue 'xl mem-max <domid> 700', static-max and target in xenstore will not change, but it will cause the command to fail.
Because: "libxl: error: libxl.c:4549:libxl_domain_setmaxmem:
memory_static_maxmust be greater than or or equal tomemory_dynamic_max"Quoted 1 line
Quoted 1 line
Quoted 1 line
What did you expect them to change to instead?
I expect I can set the maxmem to the same value I initially set (700).
OK, thanks, got it. I think the use of xl mem-max is a bit of a red-herring, the issue here is that static-max < target at start of day.
I suspect there is either a rounding error somewhere or because of LIBXL_MAXMEM_CONSTANT being inconsistently applied to the two values somewhere along the line.
We had been planning[0] to remove this early in the 4.5 cycle, but as ever it never floated to the top of anyone's list. For 4.5 we should probably look at applying this fudge more consistently.
Ian.
Quoted 33 lines · Ian Campbell
Quoted 17 lines · Zhigang Wang
OK. Let me try my best:
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
I'm confused by the description of what's going on, in particular the mixing of mem-max commands and target xenstore nodes (since the former doesn't really affect the latter).
How was the domain started (memory= and maxmem=).
xl create with 'memory = 700', no maxmem been set. I think it means maxmem = memory for this case.
Quoted 1 line
Quoted 1 line
Quoted 1 line
What were static-max and target at the point?
/local/domain/3/memory/static-max = "716800" /local/domain/3/memory/target = "716801"Quoted 1 line
Quoted 1 line
Quoted 1 line
What did they change to when xl mem-max was issued?
Quoted 7 lines
When I issue 'xl mem-max <domid> 700', static-max and target in xenstore will not change, but it will cause the command to fail.
Because: "libxl: error: libxl.c:4549:libxl_domain_setmaxmem:
memory_static_maxmust be greater than or or equal tomemory_dynamic_max"Quoted 1 line
Quoted 1 line
Quoted 1 line
What did you expect them to change to instead?
I expect I can set the maxmem to the same value I initially set (700).
OK, thanks, got it. I think the use of xl mem-max is a bit of a red-herring, the issue here is that static-max < target at start of day.
I suspect there is either a rounding error somewhere or because of
LIBXL_MAXMEM_CONSTANTbeing inconsistently applied to the two values somewhere along the line.
Quoted 7 lines
We had been planning[0] to remove this early in the 4.5 cycle, but as ever it never floated to the top of anyone's list. For 4.5 we should probably look at applying this fudge more consistently.
Ian.
Here is more info (correct me if something wrong):
1. libxl_types.idl:
("video_memkb", MemKB)
MemKB = UInt(64, init_val = "LIBXL_MEMKB_DEFAULT", json_gen_fn = "libxl__uint64_gen_json") libxl.h: #define LIBXL_MEMKB_DEFAULT ~0ULL
So video_memkb = -1 by default.
2. For hvm, we will set it into: 0, 16M, 8M according to hvm.vga.kind (libxl_create.c)
3. For pv guest, we will use default (-1).
4. When we calculate static-max and target memory:
ents[0] = "memory/static-max";
ents[1] = GCSPRINTF("%"PRId64, info->max_memkb);
ents[2] = "memory/target";
ents[3] = GCSPRINTF("%"PRId64, info->target_memkb - info->video_memkb);So target = static-max - (-1):
/local/domain/3/memory/static-max = "716800"
/local/domain/3/memory/target = "716801" Maybe this is the root cause why we include LIBXL_MAXMEM_CONSTANT.
Potential solutions:
1. Set b_info->video_memkb = 0; for pv guest.
2. Set LIBXL_MEMKB_DEFAULT = 0 (instead of -1): this will affect a lot things.
3. Also add LIBXL_MAXMEM_CONSTANT before doing comparison. (we should avoid this as we want to remove LIBXL_MAXMEM_CONSTANT)
Thanks,
Zhigang
Quoted 58 lines · Zhigang Wang
Quoted 33 lines · Ian Campbell
Quoted 17 lines · Zhigang Wang
OK. Let me try my best:
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
I'm confused by the description of what's going on, in particular the mixing of mem-max commands and target xenstore nodes (since the former doesn't really affect the latter).
How was the domain started (memory= and maxmem=).
xl create with 'memory = 700', no maxmem been set. I think it means maxmem = memory for this case.
Quoted 1 line
Quoted 1 line
Quoted 1 line
What were static-max and target at the point?
/local/domain/3/memory/static-max = "716800" /local/domain/3/memory/target = "716801"Quoted 1 line
Quoted 1 line
Quoted 1 line
What did they change to when xl mem-max was issued?
Quoted 7 lines
When I issue 'xl mem-max <domid> 700', static-max and target in xenstore will not change, but it will cause the command to fail.
Because: "libxl: error: libxl.c:4549:libxl_domain_setmaxmem:
memory_static_maxmust be greater than or or equal tomemory_dynamic_max"Quoted 1 line
Quoted 1 line
Quoted 1 line
What did you expect them to change to instead?
I expect I can set the maxmem to the same value I initially set (700).
OK, thanks, got it. I think the use of xl mem-max is a bit of a red-herring, the issue here is that static-max < target at start of day.
I suspect there is either a rounding error somewhere or because of
LIBXL_MAXMEM_CONSTANTbeing inconsistently applied to the two values somewhere along the line.Quoted 7 lines
We had been planning[0] to remove this early in the 4.5 cycle, but as ever it never floated to the top of anyone's list. For 4.5 we should probably look at applying this fudge more consistently.
Ian.
Here is more info (correct me if something wrong):
1. libxl_types.idl:
("video_memkb", MemKB) MemKB = UInt(64, init_val = "LIBXL_MEMKB_DEFAULT", json_gen_fn = "libxl__uint64_gen_json")
libxl.h: #defineLIBXL_MEMKB_DEFAULT~0ULLSo
video_memkb= -1 by default.2. For hvm, we will set it into: 0, 16M, 8M according to hvm.vga.kind (
libxl_create.c)3. For pv guest, we will use default (-1).
Quoted 8 lines
4. When we calculate static-max and target memory:
ents[0] = "memory/static-max"; ents[1] = GCSPRINTF("%"PRId64, info->max_memkb); ents[2] = "memory/target"; ents[3] = GCSPRINTF("%"PRId64, info->target_memkb - info->video_memkb);So target = static-max - (-1):
Aha, well spotted!
Quoted 4 lines
/local/domain/3/memory/static-max = "716800" /local/domain/3/memory/target = "716801"Maybe this is the root cause why we include
LIBXL_MAXMEM_CONSTANT.
I don't think so, LIBXL_MAXMEM_CONSTANT is the result of some not-well-understood folklore which predates libxl entirely.
Quoted 4 lines
Potential solutions:
1. Set
b_info->video_memkb= 0; for pv guest.
We should do this one, in the libxl_domain_build_info_setdefault function.
Quoted 1 line
2. Set
LIBXL_MEMKB_DEFAULT= 0 (instead of -1): this will affect a lot things.
Yeah, we can't do that since it would disallow setting certain kinds of memory to 0, which can make sense.
Quoted 1 line
3. Also add
LIBXL_MAXMEM_CONSTANTbefore doing comparison. (we should avoid this as we want to removeLIBXL_MAXMEM_CONSTANT)
Agreed, lets not to this.
Ian.
PATCH 1/1 set pv guest default video_memkb to 0
Before this patch, pv guest video_memkb is -1, which is an invalid value. And it will cause the xenstore 'memory/targe' calculation wrong:
memory/target = info->target_memkb - info->video_memkb
--- tools/libxl/libxl_create.c | 2 ++ 1 file changed, 2 insertions(+)
tools/libxl/libxl_create.c +2 -0
@@ -357,6 +357,8 @@ int libxl__domain_build_info_setdefault(libxl__gc *gc,break ;case LIBXL_DOMAIN_TYPE_PV :libxl_defbool_setdefault (&b_info->u.pv.e820_host, false); +if (b_info->video_memkb ==LIBXL_MEMKB_DEFAULT ) + b_info->video_memkb =0 ;if (b_info->shadow_memkb ==LIBXL_MEMKB_DEFAULT ) b_info->shadow_memkb =0 ;if (b_info->u.pv.slack_memkb ==LIBXL_MEMKB_DEFAULT )
Signature · 1 line
1.8.3.1
Re: [PATCH] set pv guest default video_memkb to 0
Quoted 4 lines · Zhigang Wang
Before this patch, pv guest
video_memkbis -1, which is an invalid value. And it will cause the xenstore 'memory/targe' calculation wrong:memory/target = info->target_memkb - info->video_memkb
CC-ing the maintainers.
Is this an regression as compared to Xen 4.4 or is this also in Xen 4.4?
Thanks.
Quoted 27 lines
Signed-off-by Zhigang Wang <[email protected]>--- tools/libxl/libxl_create.c | 2 ++ 1 file changed, 2 insertions(+)tools/libxl/libxl_create.c +2
-0@@ -357,6 +357,8 @@ int libxl__domain_build_info_setdefault(libxl__gc *gc,break ;case LIBXL_DOMAIN_TYPE_PV :libxl_defbool_setdefault (&b_info->u.pv.e820_host, false); +if (b_info->video_memkb ==LIBXL_MEMKB_DEFAULT ) + b_info->video_memkb =0 ;if (b_info->shadow_memkb ==LIBXL_MEMKB_DEFAULT ) b_info->shadow_memkb =0 ;if (b_info->u.pv.slack_memkb ==LIBXL_MEMKB_DEFAULT )Signature · 7 lines
1.8.3.1 _______________________________________________ Xen-devel mailing list [email protected] http://lists.xen.org/xen-devel
Re: [PATCH] set pv guest default video_memkb to 0
Quoted 10 lines · Konrad Rzeszutek Wilk
Quoted 4 lines · Zhigang Wang
Before this patch, pv guest
video_memkbis -1, which is an invalid value. And it will cause the xenstore 'memory/targe' calculation wrong:memory/target = info->target_memkb - info->video_memkbCC-ing the maintainers.
Is this an regression as compared to Xen 4.4 or is this also in Xen 4.4?
I don't think this is a regression, it has been broken for quite a while.
Wei.
Re: [PATCH] set pv guest default video_memkb to 0
Quoted 7 lines · Wei Liu
Quoted 6 lines · Konrad Rzeszutek Wilk
Quoted 4 lines · Zhigang Wang
Before this patch, pv guest
video_memkbis -1, which is an invalid value. And it will cause the xenstore 'memory/targe' calculation wrong:memory/target = info->target_memkb - info->video_memkb
Quoted 7 lines
Quoted 4 lines
CC-ing the maintainers.
Is this an regression as compared to Xen 4.4 or is this also in Xen 4.4?
I don't think this is a regression, it has been broken for quite a while.
I think so to.
On the other hand its a pretty clear bug to use video_memkb == -1 and we've seen that it causes real issues. The fix is also fairly obvious. I'm inclined towards suggesting we fix this in 4.5.
Ian.
Re: [PATCH] set pv guest default video_memkb to 0
Quoted 13 lines · Ian Campbell
Quoted 12 lines · Wei Liu
Quoted 10 lines · Konrad Rzeszutek Wilk
Quoted 4 lines · Zhigang Wang
Before this patch, pv guest
video_memkbis -1, which is an invalid value. And it will cause the xenstore 'memory/targe' calculation wrong:memory/target = info->target_memkb - info->video_memkbCC-ing the maintainers.
Is this an regression as compared to Xen 4.4 or is this also in Xen 4.4?
Quoted 9 lines
Quoted 2 lines
I don't think this is a regression, it has been broken for quite a while.
I think so to.
On the other hand its a pretty clear bug to use
video_memkb== -1 and we've seen that it causes real issues. The fix is also fairly obvious. I'm inclined towards suggesting we fix this in 4.5.
I concur.
Wei.
Quoted 1 line
Ian.
Re: [PATCH] set pv guest default video_memkb to 0
Quoted 17 lines · Wei Liu
Quoted 16 lines · Ian Campbell
Quoted 14 lines · Wei Liu
Quoted 10 lines · Konrad Rzeszutek Wilk
Quoted 4 lines · Zhigang Wang
Before this patch, pv guest
video_memkbis -1, which is an invalid value. And it will cause the xenstore 'memory/targe' calculation wrong:memory/target = info->target_memkb - info->video_memkbCC-ing the maintainers.
Is this an regression as compared to Xen 4.4 or is this also in Xen 4.4?
I don't think this is a regression, it has been broken for quite a while.
Quoted 8 lines
Quoted 6 lines
I think so to.
On the other hand its a pretty clear bug to use
video_memkb== -1 and we've seen that it causes real issues. The fix is also fairly obvious. I'm inclined towards suggesting we fix this in 4.5.I concur.
Lets do it then. RElease-Acked-by: Konrad Rzeszutek Wilk <[email protected]>
Quoted 4 lines
Wei.
Quoted 1 line
Ian.
Ian Campbell
AppliedRe: [PATCH] set pv guest default video_memkb to 0
Quoted 20 lines · Konrad Rzeszutek Wilk
Quoted 19 lines · Wei Liu
Quoted 18 lines · Ian Campbell
Quoted 7 lines · Wei Liu
Quoted 6 lines · Konrad Rzeszutek Wilk
Quoted 4 lines · Zhigang Wang
Before this patch, pv guest
video_memkbis -1, which is an invalid value. And it will cause the xenstore 'memory/targe' calculation wrong:memory/target = info->target_memkb - info->video_memkbQuoted 7 lines
Quoted 4 lines
CC-ing the maintainers.
Is this an regression as compared to Xen 4.4 or is this also in Xen 4.4?
I don't think this is a regression, it has been broken for quite a while.
I think so to.
Quoted 8 lines
Quoted 6 lines
Quoted 4 lines
On the other hand its a pretty clear bug to use
video_memkb== -1 and we've seen that it causes real issues. The fix is also fairly obvious. I'm inclined towards suggesting we fix this in 4.5.I concur.
Lets do it then. RElease-Acked-by: Konrad Rzeszutek Wilk <[email protected]>
APplied, thanks.
Re: [PATCH] set pv guest default video_memkb to 0
In reply to Zhigang WangQuoted 6 lines · Zhigang Wang
Before this patch, pv guest
video_memkbis -1, which is an invalid value. And it will cause the xenstore 'memory/targe' calculation wrong:memory/target = info->target_memkb - info->video_memkbSigned-off-by Zhigang Wang <[email protected]>