Re: [PATCH v2 28/29] domain_conf.c: add pnv-phb4 to ControllerIsPowerNVPHB()

2022-02-21 Thread Ján Tomko

On a Tuesday in 2022, Daniel Henrique Barboza wrote:

Update the virDomainControllerIsPowerNVPHB() helper to make the pnv-phb4
device receive the same handling as the existing pnv-phb3.

Signed-off-by: Daniel Henrique Barboza 
---
src/conf/domain_conf.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)



Reviewed-by: Ján Tomko 

Jano


signature.asc
Description: PGP signature


[PATCH v2 28/29] domain_conf.c: add pnv-phb4 to ControllerIsPowerNVPHB()

2022-01-25 Thread Daniel Henrique Barboza
Update the virDomainControllerIsPowerNVPHB() helper to make the pnv-phb4
device receive the same handling as the existing pnv-phb3.

Signed-off-by: Daniel Henrique Barboza 
---
 src/conf/domain_conf.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/src/conf/domain_conf.c b/src/conf/domain_conf.c
index 585e7d9dae..42c0bd29da 100644
--- a/src/conf/domain_conf.c
+++ b/src/conf/domain_conf.c
@@ -2457,7 +2457,8 @@ virDomainControllerIsPowerNVPHB(const 
virDomainControllerDef *cont)
 
 name = cont->opts.pciopts.modelName;
 
-if (name != VIR_DOMAIN_CONTROLLER_PCI_MODEL_NAME_PNV_PHB3)
+if ((name != VIR_DOMAIN_CONTROLLER_PCI_MODEL_NAME_PNV_PHB3) &&
+(name != VIR_DOMAIN_CONTROLLER_PCI_MODEL_NAME_PNV_PHB4))
 return false;
 
 return true;
-- 
2.34.1