summaryrefslogtreecommitdiff
path: root/nova/exception.py
diff options
context:
space:
mode:
authorZuul <zuul@review.opendev.org>2022-09-01 19:56:09 +0000
committerGerrit Code Review <review@openstack.org>2022-09-01 19:56:09 +0000
commit457806e2064dbf0d8d2c75f8ed2a9deb0176b6b2 (patch)
tree43012c120e490bf455b52dafbd5b32fdb6329ca7 /nova/exception.py
parent8b55b44cc605533f2a12189a2b5899c0f58c91a7 (diff)
parent14e3b352c24b2a1fe54ba13a733cf6e7989215cc (diff)
downloadnova-457806e2064dbf0d8d2c75f8ed2a9deb0176b6b2.tar.gz
Merge "libvirt: Add vIOMMU device to guest"
Diffstat (limited to 'nova/exception.py')
-rw-r--r--nova/exception.py10
1 files changed, 10 insertions, 0 deletions
diff --git a/nova/exception.py b/nova/exception.py
index 27a0676404..3d8e596312 100644
--- a/nova/exception.py
+++ b/nova/exception.py
@@ -207,6 +207,16 @@ class Invalid(NovaException):
code = 400
+class InvalidVIOMMUMachineType(Invalid):
+ msg_fmt = _("vIOMMU is not supported by Current machine type %(mtype)s "
+ "(Architecture: %(arch)s).")
+
+
+class InvalidVIOMMUArchitecture(Invalid):
+ msg_fmt = _("vIOMMU required either x86 or AArch64 architecture, "
+ "but given architecture %(arch)s.")
+
+
class InvalidConfiguration(Invalid):
msg_fmt = _("Configuration is Invalid.")