Re: [kvm-unit-tests PATCH v7 09/13] arm/arm64: ITS: Commands

2020-03-30 Thread Auger Eric
Hi Zenghui, On 3/30/20 11:22 AM, Zenghui Yu wrote: > Hi Eric, > > On 2020/3/20 17:24, Eric Auger wrote: >> Implement main ITS commands. The code is largely inherited from >> the ITS driver. >> >> Signed-off-by: Eric Auger > > [...] > >> +/* ITS COMMANDS */ >> + >> +static void

Re: [kvm-unit-tests PATCH v7 09/13] arm/arm64: ITS: Commands

2020-03-30 Thread Zenghui Yu
Hi Eric, On 2020/3/20 17:24, Eric Auger wrote: Implement main ITS commands. The code is largely inherited from the ITS driver. Signed-off-by: Eric Auger [...] +/* ITS COMMANDS */ + +static void its_encode_cmd(struct its_cmd_block *cmd, u8 cmd_nr) +{ + cmd->raw_cmd[0] &= ~0xffUL; +

[kvm-unit-tests PATCH v7 09/13] arm/arm64: ITS: Commands

2020-03-20 Thread Eric Auger
Implement main ITS commands. The code is largely inherited from the ITS driver. Signed-off-by: Eric Auger --- v6 -> v7: - remove #include v5 -> v6: - fix 2 printfs - removed GITS_CMD_MAPVI v3 -> v4: - device's itt now is a VGA - pass verbose to choose whether we shall print the cmd - use