vcpu: Expose more parameters for register intercept result hypercall
This especially concerns subleaf_specific
and ecx
. In cases like
topology configuration that are passed through the leafs 0xb or 0x1f,
multiple subleafs are involved and thus the hypercall arguments need
to be prepared accordingly.
In addition to the exposed configuration parameters, some more inline documentation is added to improve the understanding on the hypercall configuration and arguments.
Signed-off-by: Anatol Belski anbelski@linux.microsoft.com
vcpu: Expose more parameters for register intercept result hypercall
This especially concerns subleaf_specific
and ecx
. In cases like
topology configuration that are passed through the leafs 0xb or 0x1f,
multiple subleafs are involved and thus the hypercall arguments need
to be prepared accordingly.
In addition to the exposed configuration parameters, some more inline documentation is added to improve the understanding on the hypercall configuration and arguments.
Signed-off-by: Anatol Belski anbelski@linux.microsoft.com
vcpu: Implement set_cpuid2 call
This is complled by the absent topology handling in MSHV. Passing the CPUID leafs with the topology is integrated into the common mechanism of setting and patching CPUID in Cloud Hypervisor. As a side effect - now all the other CPUID values will be passed to the hypervisor through the register intercept call.
Signed-off-by: Anatol Belski anbelski@linux.microsoft.com
mshv: Pass topology explicitly while constructing cpuid
Unlike KVM, there's no internal handling for topoolgy under MSHV. Thus, if no topology has been passed during the CH launch, use the boot CPUs count to construct the topology struct.
Signed-off-by: Anatol Belski anbelski@linux.microsoft.com
seccomp: Add filter entry for MSHV_VP_REGISTER_INTERCEPT_RESULT
Signed-off-by: Anatol Belski anbelski@linux.microsoft.com
tests: Enable topology integration tests under mshv
Signed-off-by: Anatol Belski anbelski@linux.microsoft.com
vcpu: Expose more parameters for register intercept result hypercall
This especially concerns subleaf_specific
and ecx
. In cases like
topology configuration that are passed through the leafs 0xb or 0x1f,
multiple subleafs are involved and thus the hypercall arguments need
to be prepared accordingly.
In addition to the exposed configuration parameters, some more inline documentation is added to improve the understanding on the hypercall configuration and arguments.
Signed-off-by: Anatol Belski anbelski@linux.microsoft.com
vcpu: Expose more parameters for register intercept result hypercall
This especially concerns subleaf_specific
and ecx
. In cases like
topology configuration that are passed through the leafs 0xb or 0x1f,
multiple subleafs are involved and thus the hypercall arguments need
to be prepared accordingly.
In addition to the exposed configuration parameters, some more inline documentation is added to improve the understanding on the hypercall configuration and arguments.
Signed-off-by: Anatol Belski anbelski@linux.microsoft.com
vcpu: Expose more parameters for register intercept result hypercall
This especially concerns subleaf_specific
and ecx
. In cases like
topology configuration that are passed through the leafs 0xb or 0x1f,
multiple subleafs are involved and thus the hypercall arguments need
to be prepared accordingly.
In addition to the exposed configuration parameters, some more inline documentation is added to improve the understanding on the hypercall configuration and arguments.
Signed-off-by: Anatol Belski anbelski@linux.microsoft.com
tests: Replace use of "curl" with direct HTTP API calls
Fixes: #5128
Signed-off-by: Ravi kumar Veeramally ravikumar.veeramally@intel.com
build: Bump proc-macro2 from 1.0.53 to 1.0.54 in /fuzz
Bumps proc-macro2 from 1.0.53 to 1.0.54.
updated-dependencies:
Signed-off-by: dependabot[bot] support@github.com
build: Bump semver from 1.0.16 to 1.0.17
Bumps semver from 1.0.16 to 1.0.17.
updated-dependencies:
Signed-off-by: dependabot[bot] support@github.com
docs: document that vmcoredump
is conditionally compiled
Fixes #5311.
Signed-off-by: Omer Faruk Bayram omer.faruk@sartura.hr
scripts: dev_cli: mention the --local
flag in the help string
Signed-off-by: Omer Faruk Bayram omer.faruk@sartura.hr
vcpu: Implement set_cpuid2 call
This is complled by the absent topology handling in MSHV. Passing the CPUID leafs with the topology is integrated into the common mechanism of setting and patching CPUID in Cloud Hypervisor. As a side effect - now all the other CPUID values will be passed to the hypervisor through the register intercept call.
Signed-off-by: Anatol Belski anbelski@linux.microsoft.com
mshv: Pass topology explicitly while constructing cpuid
Unlike KVM, there's no internal handling for topoolgy under MSHV. Thus, if no topology has been passed during the CH launch, use the boot CPUs count to construct the topology struct.
Signed-off-by: Anatol Belski anbelski@linux.microsoft.com
seccomp: Add filter entry for MSHV_VP_REGISTER_INTERCEPT_RESULT
Signed-off-by: Anatol Belski anbelski@linux.microsoft.com
tests: Enable topology integration tests under mshv
Signed-off-by: Anatol Belski anbelski@linux.microsoft.com
cxx: more example
Signed-off-by: Anatol Belski ab@php.net
vals: Inherit from both type and ref
Signed-off-by: Anatol Belski ab@php.net
vcpu: Expose more parameters for register intercept result hypercall
This especially concerns subleaf_specific
and ecx
. In cases like
topology configuration that are passed through the leafs 0xb or 0x1f,
multiple subleafs are involved and thus the hypercall arguments need
to be prepared accordingly.
In addition to the exposed configuration parameters, some more inline documentation is added to improve the understanding on the hypercall configuration and arguments.
Signed-off-by: Anatol Belski anbelski@linux.microsoft.com
The console arg parsing functionality is pulled through a dedicated class. The license is MIT which seems compatible with the IR license.
The ir-test
program code is moved under misc-utils
subdirectory, where the arg parsing library is added as well. The current options have been migrated to the new class, some more options have been added for a better flexibility.
Especially there are two new options to pass BUILD_DIR
and SRC_DIR
, that would override the corresponding environment variables if supplied. Otherwise, the env variables will be used, thus maintaining the backward compatible behavior.
The help output is automatically generated by the arg parsing library:
$ ./ir-test --help
Usage: ir-test [options]
Execute IR tests
--show-diff Print failed test diff to stdout
--no-color Disable output colorization
--build-dir arg (=.) Bulid dir path. When passed, overrides the BUILD_DIR environment variable
--src-dir arg (=.) Source dir path. When passed, overrides the SRC_DIR environment variable
--test-dir arg (=./tests) Test dir path.
--ir-exe arg Path to the `ir` test app.
-h, --help Display help text and exit
Unknown options would make the program bail out:
$ ./ir-test --no-such-opt
ERROR: unknown option '--no-such-opt'
Try 'ir-test --help' for more information.
While on this change, several exception handling arguments have been constified to comply better with the other parts of the code.
Fixes: #10
Abandoning this one for now. The change is too extensive and leads the focus away from the main dev subject. The present functionality is good enough to serve the project. Any further functionality is to be supplied in a minimalistic manner, as the need arises.
Thanks