Re: [PATCH v3 13/22] target/i386/sev: Remove stubs by using code elision

2021-10-08 Thread Brijesh Singh
On 10/6/21 11:55 AM, Philippe Mathieu-Daudé wrote: > On 10/4/21 10:19, Paolo Bonzini wrote: >> On 02/10/21 14:53, Philippe Mathieu-Daudé wrote: >>> Only declare sev_enabled() and sev_es_enabled() when CONFIG_SEV is >>> set, to allow the compiler to elide unused code. Remove unnecessary >>>

Re: [PATCH v3 13/22] target/i386/sev: Remove stubs by using code elision

2021-10-06 Thread Philippe Mathieu-Daudé
On 10/4/21 10:19, Paolo Bonzini wrote: > On 02/10/21 14:53, Philippe Mathieu-Daudé wrote: >> Only declare sev_enabled() and sev_es_enabled() when CONFIG_SEV is >> set, to allow the compiler to elide unused code. Remove unnecessary >> stubs. >> >> Signed-off-by: Philippe Mathieu-Daudé >> --- >>  

Re: [PATCH v3 13/22] target/i386/sev: Remove stubs by using code elision

2021-10-04 Thread Paolo Bonzini
On 02/10/21 14:53, Philippe Mathieu-Daudé wrote: Only declare sev_enabled() and sev_es_enabled() when CONFIG_SEV is set, to allow the compiler to elide unused code. Remove unnecessary stubs. Signed-off-by: Philippe Mathieu-Daudé --- include/sysemu/sev.h| 14 +-

[PATCH v3 13/22] target/i386/sev: Remove stubs by using code elision

2021-10-02 Thread Philippe Mathieu-Daudé
Only declare sev_enabled() and sev_es_enabled() when CONFIG_SEV is set, to allow the compiler to elide unused code. Remove unnecessary stubs. Signed-off-by: Philippe Mathieu-Daudé --- include/sysemu/sev.h| 14 +- target/i386/sev_i386.h | 3 --- target/i386/cpu.c | 16