From mboxrd@z Thu Jan 1 00:00:00 1970 From: Laurent Vivier Date: Mon, 16 Oct 2017 17:08:03 +0000 Subject: Re: [RFC kvm-unit-tests PATCH] powerpc: add tests for XICS Message-Id: <5c29e3a9-0ceb-79b3-3bdb-e6e0d20ea4d9@redhat.com> List-Id: References: <20171012080704.31037-1-lvivier@redhat.com> In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: Thomas Huth , kvm-ppc@vger.kernel.org Cc: kvm@vger.kernel.org, Paolo Bonzini On 13/10/2017 11:45, Thomas Huth wrote: > On 12.10.2017 10:07, Laurent Vivier wrote: >> Check if we can set the xive server and priority, and >> check we get values that have been set. >> Check we disable/enable interrupts. >> >> This patch also increases NR_CPUS from 8 to 16 >> (maximum for KVM on POWER9, POWER8 allows 96) >> >> Signed-off-by: Laurent Vivier >> --- >> Note: I send this as an RFC, because even if this test works well with >> TCG and POWER8 KVM hosts, it detects some problems with POWER9 KVM hosts > > What kind of errors does it detect? Are they expected due to the > different interrupt controllers? > >> main(int argc, char **argv) >> >> check_set_time_of_day(); >> >> + } else if (strcmp(argv[1], "xics") = 0) { >> + > > Superfluous empty line? > >> + check_xics(); >> + This is a standard pattern in kvm-unit-tests: ... } else if (strcmp(argv[1], "XXXX") = 0) { function(...); } else if (strcmp(argv[1], "YYY") = 0) { ... Laurent