Message ID | 20220513095017.16301-7-frankja@linux.ibm.com (mailing list archive) |
---|---|
State | New, archived |
Headers | show |
Series | s390x: uv-host: Access check extensions and improvements | expand |
On Fri, 13 May 2022 09:50:17 +0000 Janosch Frank <frankja@linux.ibm.com> wrote: > One + is definitely enough here. > > Signed-off-by: Janosch Frank <frankja@linux.ibm.com> Reviewed-by: Claudio Imbrenda <imbrenda@linux.ibm.com> > --- > s390x/uv-host.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/s390x/uv-host.c b/s390x/uv-host.c > index 20d805b8..ed16f850 100644 > --- a/s390x/uv-host.c > +++ b/s390x/uv-host.c > @@ -433,7 +433,7 @@ static void test_config_create(void) > uvcb_cgc.guest_sca = tmp; > > tmp = uvcb_cgc.guest_sca; > - uvcb_cgc.guest_sca = get_max_ram_size() + + PAGE_SIZE * 4; > + uvcb_cgc.guest_sca = get_max_ram_size() + PAGE_SIZE * 4; > rc = uv_call(0, (uint64_t)&uvcb_cgc); > report(uvcb_cgc.header.rc == 0x10d && rc == 1, > "sca inaccessible");
Hey Janosch, On 5/13/22 11:50, Janosch Frank wrote: > One + is definitely enough here. > > Signed-off-by: Janosch Frank <frankja@linux.ibm.com> Reviewed-by: Steffen Eiden <seiden@linux.ibm.com> > --- > s390x/uv-host.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/s390x/uv-host.c b/s390x/uv-host.c > index 20d805b8..ed16f850 100644 > --- a/s390x/uv-host.c > +++ b/s390x/uv-host.c > @@ -433,7 +433,7 @@ static void test_config_create(void) > uvcb_cgc.guest_sca = tmp; > > tmp = uvcb_cgc.guest_sca; > - uvcb_cgc.guest_sca = get_max_ram_size() + + PAGE_SIZE * 4; > + uvcb_cgc.guest_sca = get_max_ram_size() + PAGE_SIZE * 4; > rc = uv_call(0, (uint64_t)&uvcb_cgc); > report(uvcb_cgc.header.rc == 0x10d && rc == 1, > "sca inaccessible"); Steffen
diff --git a/s390x/uv-host.c b/s390x/uv-host.c index 20d805b8..ed16f850 100644 --- a/s390x/uv-host.c +++ b/s390x/uv-host.c @@ -433,7 +433,7 @@ static void test_config_create(void) uvcb_cgc.guest_sca = tmp; tmp = uvcb_cgc.guest_sca; - uvcb_cgc.guest_sca = get_max_ram_size() + + PAGE_SIZE * 4; + uvcb_cgc.guest_sca = get_max_ram_size() + PAGE_SIZE * 4; rc = uv_call(0, (uint64_t)&uvcb_cgc); report(uvcb_cgc.header.rc == 0x10d && rc == 1, "sca inaccessible");
One + is definitely enough here. Signed-off-by: Janosch Frank <frankja@linux.ibm.com> --- s390x/uv-host.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)