xl: Add subcommand mem-max and fix mem-set
Get series with b4
b4 am [email protected]Versions newest first
- v1 Latest2 patches 5 repliesIn review
Patches in v1 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/2 | xl: Add command 'xl mem-max'tools/ tools/ tools/ +2 more | +93 | 0 replies | |
| 2/2 | xl: Add check for command 'xl mem-set'tools/ | +23 | 0 replies |
Reviews trailers per patch
None of the 2 patches has a Reviewed-by or Acked-by of their own; the series has one for all of them.
| Patch | Jonathan Knowles |
|---|---|
| Series | A-b |
| 1/2 | |
| 2/2 |
Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.
Cover letter [PATCH 0/2] xl: Add subcommand mem-max and fix mem-set
Quoted 12 lines · Yu Zhiguo
I'm trying to add subcommand 'mem-max', I think
xc_domain_setmaxmemshould be used in it but not here.I'll move this code to 'mem-max', and in 'mem-set', a check should be added because setting memory larger than max memory is invalid.
1. Add 'mem-max'
Addlibxl_domain_setmaxmem, it callsxc_domain_setmaxmem. /local/domain/$domid/memory/static-max should be updated when set max memory,
it is missing now.
Quoted 5 lines
2. fix 'mem-set'
Deletexc_domain_setmaxmem.
Get max memory from /local/domain/$domid/memory/static-max, and then do value check.
It seems that we cannot get max memory use libxc routines.
I fixed it, please check.
[PATCH 1/2] xl: Add command 'xl mem-max' [PATCH 2/2] xl: Add check for command 'xl mem-set'
Regards
Yu Zhiguo