On Mon, 8 Jan 2024, Alex Williamson wrote:
On Mon, 8 Jan 2024 23:32:04 +0530 (IST)
Vivek Kashyap wrote:
On Mon, 8 Jan 2024, Alex Williamson wrote:
On Mon, 8 Jan 2024 18:42:19 +0530 (IST)
Vivek Kashyap wrote:
...
As I've stated above, for libvirt we should consider only passing i
On Mon, 8 Jan 2024, Alex Williamson wrote:
On Mon, 8 Jan 2024 18:42:19 +0530 (IST)
Vivek Kashyap wrote:
...
As I've stated above, for libvirt we should consider only passing it via
the 'secret' object.
Sounds good. Will follow this up.
Alex - will you be working on
...
As I've stated above, for libvirt we should consider only passing it via
the 'secret' object.
Sounds good. Will follow this up.
Alex - will you be working on the qemu update?
Forgot to add:
If you need a way to test it with a libvirt-started VM in the interim
until the qemu commandline
If there is even a slight expectation of confidentiality (IMO just
calling it a 'secret' in documentation is enough to justify that
expectation) it should be treated as such.
Thus qemu needs to add the possibility to pass it via the 'secret'
object, so that libvirt can pass it encrypted. On the
On Tue, 2 Jan 2024, Alex Williamson wrote:
On Tue, 2 Jan 2024 18:55:10 +0530
Vivek Kashyap wrote:
The VFIO PCI ABI has been extended to require userspace PF driver to set
a VF token to a known value. The VF drivers are then required to provide
this token to access the VF device. The vf
Update news about vf-token
Signed-off-by: Vivek Kashyap
---
NEWS.rst | 8
1 file changed, 8 insertions(+)
diff --git a/NEWS.rst b/NEWS.rst
index dc40602c72..5e6a7c3147 100644
--- a/NEWS.rst
+++ b/NEWS.rst
@@ -17,6 +17,14 @@ v10.0.0 (unreleased)
* **New features**
+ * qemu
Add tests for the vf-token flag to the qemuxml2argv and qemuxml2xml
test suites
Signed-off-by: Vivek Kashyap
Signed-off-by: Ciara Loftus
---
.../hostdev-vfio-vf-token.x86_64-latest.args | 34
.../hostdev-vfio-vf-token.xml | 22 ++
tests
Provide information about the vf-token flag
Signed-off-by: Vivek Kashyap
---
docs/formatdomain.rst | 3 +++
src/conf/schemas/basictypes.rng | 7 +++
2 files changed, 10 insertions(+)
diff --git a/docs/formatdomain.rst b/docs/formatdomain.rst
index 310d2bc427..29a7b3145e 100644
This patch introduces new XML parser/formatter functions for
parsing the vf-token
Signed-off-by: Vivek Kashyap
Signed-off-by: Ciara Loftus
---
src/conf/device_conf.c | 49 ++--
src/conf/domain_conf.c | 8 +++
src/libvirt_private.syms | 1 +
src
Introduce a validation function for vf-token support in qemu and
generate vf-token device attribute in qemu command line
Signed-off-by: Vivek Kashyap
---
src/qemu/qemu_command.c | 8
src/qemu/qemu_validate.c | 20
2 files changed, 28 insertions(+)
diff --git a
This patch introduces the PCI address extension flag for vf-token
Signed-off-by: Vivek Kashyap
---
src/conf/domain_addr.h | 1 +
src/qemu/qemu_domain_address.c | 3 +++
2 files changed, 4 insertions(+)
diff --git a/src/conf/domain_addr.h b/src/conf/domain_addr.h
index e72fb48847
Introduce the vf-token qemu capability
Signed-off-by: Vivek Kashyap
---
src/qemu/qemu_capabilities.c | 3 +++
src/qemu/qemu_capabilities.h | 1 +
tests/qemucapabilitiesdata/caps_8.1.0_s390x.xml | 1 +
tests/qemucapabilitiesdata/caps_8.1.0_x86_64.xml | 1
ddr":"0x1"}
Changes since initial RFC based on review comments received:
1. Added documentation
2. Added test cases and ran successful test suite after each patch commit
3. fixed spaces, coding sytle, and uuid string format
4. Used S:vftoken in virJSONValueObjectAdd instead of a condit
Define the vf-token extension for PCI device
Signed-off-by: Vivek Kashyap
---
src/util/virpci.h | 8
1 file changed, 8 insertions(+)
diff --git a/src/util/virpci.h b/src/util/virpci.h
index bc7cb2329f..da32c2f4d2 100644
--- a/src/util/virpci.h
+++ b/src/util/virpci.h
@@ -50,6 +50,13
Add tests for the vf-token flag to the qemuxml2argv and qemuxml2xml
test suites
Signed-off-by: Vivek Kashyap
Signed-off-by: Ciara Loftus
---
.../hostdev-vfio-vf-token.x86_64-latest.args | 34
.../hostdev-vfio-vf-token.xml | 22 ++
tests
Update news about vf-token
Signed-off-by: Vivek Kashyap
---
NEWS.rst | 8
1 file changed, 8 insertions(+)
diff --git a/NEWS.rst b/NEWS.rst
index dc40602c72..5e6a7c3147 100644
--- a/NEWS.rst
+++ b/NEWS.rst
@@ -17,6 +17,14 @@ v10.0.0 (unreleased)
* **New features**
+ * qemu
Provide information about the vf-token flag
Signed-off-by: Vivek Kashyap
---
docs/formatdomain.rst | 3 +++
src/conf/schemas/basictypes.rng | 7 +++
2 files changed, 10 insertions(+)
diff --git a/docs/formatdomain.rst b/docs/formatdomain.rst
index 310d2bc427..29a7b3145e 100644
Introduce a validation function for vf-token support in qemu and
generate vf-token device attribute in qemu command line
Signed-off-by: Vivek Kashyap
---
src/qemu/qemu_command.c | 8
src/qemu/qemu_validate.c | 20
2 files changed, 28 insertions(+)
diff --git a
This patch introduces new XML parser/formatter functions for
parsing the vf-token
Signed-off-by: Vivek Kashyap
Signed-off-by: Ciara Loftus
---
src/conf/device_conf.c | 49 ++--
src/conf/domain_conf.c | 8 +++
src/libvirt_private.syms | 1 +
src
This patch introduces the PCI address extension flag for vf-token
Signed-off-by: Vivek Kashyap
---
src/conf/domain_addr.h | 1 +
src/qemu/qemu_domain_address.c | 3 +++
2 files changed, 4 insertions(+)
diff --git a/src/conf/domain_addr.h b/src/conf/domain_addr.h
index e72fb48847
Introduce the vf-token qemu capability
Signed-off-by: Vivek Kashyap
---
src/qemu/qemu_capabilities.c | 3 +++
src/qemu/qemu_capabilities.h | 1 +
tests/qemucapabilitiesdata/caps_8.1.0_s390x.xml | 1 +
tests/qemucapabilitiesdata/caps_8.1.0_x86_64.xml | 1
dr":"0x1"}
Changes since initial RFC:
1. Added documentation
2. Added test cases and ran successful test suite after each patch commit
3. fixed spaces, coding sytle, and uuid string format
4. Used S:vftoken in virJSONValueObjectAdd instead of a conditional
Vivek Kashyap (8):
Defin
Define the vf-token extension for PCI device
Signed-off-by: Vivek Kashyap
---
src/util/virpci.h | 8
1 file changed, 8 insertions(+)
diff --git a/src/util/virpci.h b/src/util/virpci.h
index bc7cb2329f..da32c2f4d2 100644
--- a/src/util/virpci.h
+++ b/src/util/virpci.h
@@ -50,6 +50,13
Add related test cases
Signed-off-by: Vivek Kashyap
Signed-off-by: Ciara Loftus
---
.../qemucapabilitiesdata/caps_8.1.0_s390x.xml | 1 +
.../caps_8.1.0_x86_64.xml | 1 +
.../caps_8.2.0_x86_64.xml | 1 +
.../hostdev-vfio-vf-token.x86_64-latest.args
Update documentation and information about vf-token
Signed-off-by: Vivek Kashyap
---
NEWS.rst | 8
docs/formatdomain.rst | 4
2 files changed, 12 insertions(+)
diff --git a/NEWS.rst b/NEWS.rst
index f12734c2a1..3fb0230e71 100644
--- a/NEWS.rst
+++ b/NEWS.rst
@@ -22,6
Introduce a validation function for vf-token support in qemu
and generate vf-token device attribute in qemu command line
Signed-off-by: Vivek Kashyap
---
src/qemu/qemu_command.c | 13 +
src/qemu/qemu_validate.c | 20
2 files changed, 33 insertions(+)
diff
XML parsing and formatting of vf-token attribute
Signed-off-by: Vivek Kashyap
---
src/conf/device_conf.c | 32 ++--
src/conf/device_conf.h | 3 +++
src/conf/domain_conf.c | 8
src/conf/schemas/basictypes.rng | 7 +++
src
Introduce qemu capability for vf-token
Signed-off-by: Vivek Kashyap
---
src/qemu/qemu_capabilities.c | 3 +++
src/qemu/qemu_capabilities.h | 1 +
2 files changed, 4 insertions(+)
diff --git a/src/qemu/qemu_capabilities.c b/src/qemu/qemu_capabilities.c
index 83119e871a..f4cacd48d0 100644
--- a
Define PCI address extension flag for vf-token
Signed-off-by: Vivek Kashyap
---
src/conf/domain_addr.h | 1 +
src/qemu/qemu_domain_address.c | 3 +++
2 files changed, 4 insertions(+)
diff --git a/src/conf/domain_addr.h b/src/conf/domain_addr.h
index e72fb48847..29e7257177 100644
--- a
d test cases and ran test suite
- virtsocketest fails when run with 'ninja test'
3. fixed spaces and uuid string format
4. Used S:vftoken in virJSONValueObjectAdd instead of introducing a conditional
Vivek Kashyap (7):
virpci: Define vf-token
qemu: vf-token capability
conf
Define the vf-token extension for PCI device
Signed-off-by: Vivek Kashyap
---
src/util/virpci.h | 9 +
1 file changed, 9 insertions(+)
diff --git a/src/util/virpci.h b/src/util/virpci.h
index faca6cf6f9..f080fceb97 100644
--- a/src/util/virpci.h
+++ b/src/util/virpci.h
@@ -50,7 +50,15
31 matches
Mail list logo