From: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>
To: Wei Liu <wei.liu2@citrix.com>
Cc: Ian Campbell <ian.campbell@citrix.com>,
Stefano Stabellini <stefano.stabellini@eu.citrix.com>,
George Dunlap <george.dunlap@eu.citrix.com>,
Andrew Cooper <andrew.cooper3@citrix.com>,
Ian Jackson <Ian.Jackson@eu.citrix.com>,
Xen-devel <xen-devel@lists.xenproject.org>
Subject: Re: [PATCH 1/2] Revert "libxl: fix "xl mem-set" regression from 0c029c4da2"
Date: Tue, 23 Jun 2015 10:24:19 -0400 [thread overview]
Message-ID: <20150623142419.GD17306@l.oracle.com> (raw)
In-Reply-To: <1435068984-9163-2-git-send-email-wei.liu2@citrix.com>
On Tue, Jun 23, 2015 at 03:16:23PM +0100, Wei Liu wrote:
> This reverts commit f5b43e95facdc17f925cb56a8963cd4531074034.
Could you include some detail of why the revert is needed?
Thanks.
>
> Signed-off-by: Wei Liu <wei.liu2@citrix.com>
> ---
> tools/libxc/include/xenctrl.h | 2 +-
> tools/libxc/xc_domain.c | 2 +-
> tools/libxl/libxl.c | 5 ++---
> 3 files changed, 4 insertions(+), 5 deletions(-)
>
> diff --git a/tools/libxc/include/xenctrl.h b/tools/libxc/include/xenctrl.h
> index d1d2ab3..db5d028 100644
> --- a/tools/libxc/include/xenctrl.h
> +++ b/tools/libxc/include/xenctrl.h
> @@ -1285,7 +1285,7 @@ int xc_getcpuinfo(xc_interface *xch, int max_cpus,
>
> int xc_domain_setmaxmem(xc_interface *xch,
> uint32_t domid,
> - uint64_t max_memkb);
> + unsigned int max_memkb);
>
> int xc_domain_set_memmap_limit(xc_interface *xch,
> uint32_t domid,
> diff --git a/tools/libxc/xc_domain.c b/tools/libxc/xc_domain.c
> index ce51e69..5b1a52d 100644
> --- a/tools/libxc/xc_domain.c
> +++ b/tools/libxc/xc_domain.c
> @@ -635,7 +635,7 @@ int xc_shadow_control(xc_interface *xch,
>
> int xc_domain_setmaxmem(xc_interface *xch,
> uint32_t domid,
> - uint64_t max_memkb)
> + unsigned int max_memkb)
> {
> DECLARE_DOMCTL;
> domctl.cmd = XEN_DOMCTL_max_mem;
> diff --git a/tools/libxl/libxl.c b/tools/libxl/libxl.c
> index d86ea62..35caf42 100644
> --- a/tools/libxl/libxl.c
> +++ b/tools/libxl/libxl.c
> @@ -4736,8 +4736,7 @@ int libxl_set_memory_target(libxl_ctx *ctx, uint32_t domid,
> {
> GC_INIT(ctx);
> int rc = 1, abort_transaction = 0;
> - uint64_t memorykb;
> - uint32_t videoram = 0;
> + uint32_t memorykb = 0, videoram = 0;
> uint32_t current_target_memkb = 0, new_target_memkb = 0;
> uint32_t current_max_memkb = 0;
> char *memmax, *endptr, *videoram_s = NULL, *target = NULL;
> @@ -4831,7 +4830,7 @@ retry_transaction:
> rc = xc_domain_setmaxmem(ctx->xch, domid, memorykb);
> if (rc != 0) {
> LIBXL__LOG_ERRNO(ctx, LIBXL__LOG_ERROR,
> - "xc_domain_setmaxmem domid=%u memkb=%"PRIu64" failed "
> + "xc_domain_setmaxmem domid=%d memkb=%d failed "
> "rc=%d\n", domid, memorykb, rc);
> abort_transaction = 1;
> goto out;
> --
> 1.9.1
>
>
> _______________________________________________
> Xen-devel mailing list
> Xen-devel@lists.xen.org
> http://lists.xen.org/xen-devel
next prev parent reply other threads:[~2015-06-23 14:24 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-06-23 14:16 [PATCH 0/2] Revert changes to libxl_set_memory_target, unblock 4.6 Wei Liu
2015-06-23 14:16 ` [PATCH 1/2] Revert "libxl: fix "xl mem-set" regression from 0c029c4da2" Wei Liu
2015-06-23 14:24 ` Konrad Rzeszutek Wilk [this message]
2015-06-23 14:45 ` Jan Beulich
2015-06-23 14:52 ` Wei Liu
2015-06-23 15:00 ` Ian Campbell
2015-06-23 14:16 ` [PATCH 2/2] Revert "libxl_set_memory_target: retain the same maxmem offset on top of the current target" Wei Liu
2015-06-23 14:19 ` [PATCH 0/2] Revert changes to libxl_set_memory_target, unblock 4.6 Wei Liu
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20150623142419.GD17306@l.oracle.com \
--to=konrad.wilk@oracle.com \
--cc=Ian.Jackson@eu.citrix.com \
--cc=andrew.cooper3@citrix.com \
--cc=george.dunlap@eu.citrix.com \
--cc=ian.campbell@citrix.com \
--cc=stefano.stabellini@eu.citrix.com \
--cc=wei.liu2@citrix.com \
--cc=xen-devel@lists.xenproject.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.