* [PATCH] kvm: add a script to report hardware feature
@ 2008-06-19 10:44 Yang, Sheng
2008-06-19 10:48 ` Yang, Sheng
0 siblings, 1 reply; 2+ messages in thread
From: Yang, Sheng @ 2008-06-19 10:44 UTC (permalink / raw)
To: kvm
[-- Attachment #1: Type: text/plain, Size: 880 bytes --]
From 5409ef94b0b0b9fd109389fdccd4827e04f9590f Mon Sep 17 00:00:00 2001
From: Sheng Yang <sheng.yang@intel.com>
Date: Thu, 19 Jun 2008 18:38:20 +0800
Subject: [PATCH] kvm: add a script to report hardware feature
Signed-off-by: Sheng Yang <sheng.yang@intel.com>
---
scripts/kvm_report_features | 11 +++++++++++
1 files changed, 11 insertions(+), 0 deletions(-)
create mode 100755 scripts/kvm_report_features
diff --git a/scripts/kvm_report_features b/scripts/kvm_report_features
new file mode 100755
index 0000000..66e746d
--- /dev/null
+++ b/scripts/kvm_report_features
@@ -0,0 +1,11 @@
+#!/bin/bash
+
+report=/sys/devices/system/kvm/kvm0/kvm_hw_feature_report
+
+if [ -a $report ];
+then
+ cat $report
+else
+ echo Feature report interface didn\'t exist.
+ echo Maybe don\'t support in this version or modules are not loaded.
+fi
--
1.5.5
[-- Attachment #2: 0001-kvm-add-a-script-to-report-hardware-feature.patch --]
[-- Type: text/x-diff, Size: 881 bytes --]
From 5409ef94b0b0b9fd109389fdccd4827e04f9590f Mon Sep 17 00:00:00 2001
From: Sheng Yang <sheng.yang@intel.com>
Date: Thu, 19 Jun 2008 18:38:20 +0800
Subject: [PATCH] kvm: add a script to report hardware feature
Signed-off-by: Sheng Yang <sheng.yang@intel.com>
---
scripts/kvm_report_features | 11 +++++++++++
1 files changed, 11 insertions(+), 0 deletions(-)
create mode 100755 scripts/kvm_report_features
diff --git a/scripts/kvm_report_features b/scripts/kvm_report_features
new file mode 100755
index 0000000..66e746d
--- /dev/null
+++ b/scripts/kvm_report_features
@@ -0,0 +1,11 @@
+#!/bin/bash
+
+report=/sys/devices/system/kvm/kvm0/kvm_hw_feature_report
+
+if [ -a $report ];
+then
+ cat $report
+else
+ echo Feature report interface didn\'t exist.
+ echo Maybe don\'t support in this version or modules are not loaded.
+fi
--
1.5.5
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH] kvm: add a script to report hardware feature
2008-06-19 10:44 [PATCH] kvm: add a script to report hardware feature Yang, Sheng
@ 2008-06-19 10:48 ` Yang, Sheng
0 siblings, 0 replies; 2+ messages in thread
From: Yang, Sheng @ 2008-06-19 10:48 UTC (permalink / raw)
To: kvm
On Thursday 19 June 2008 18:44:37 Yang, Sheng wrote:
> From 5409ef94b0b0b9fd109389fdccd4827e04f9590f Mon Sep 17 00:00:00 2001
> From: Sheng Yang <sheng.yang@intel.com>
> Date: Thu, 19 Jun 2008 18:38:20 +0800
> Subject: [PATCH] kvm: add a script to report hardware feature
o... I forgot to add [PATCH 4/4]... :(
Just a simple script, may be not needed. But maybe a script is more easy to be
found? Or maybe we can set up a soft symbol link to the position in
userspace?
Deal with it as you want, Avi. :)
--
Thanks
Yang, Sheng
>
>
> Signed-off-by: Sheng Yang <sheng.yang@intel.com>
> ---
> scripts/kvm_report_features | 11 +++++++++++
> 1 files changed, 11 insertions(+), 0 deletions(-)
> create mode 100755 scripts/kvm_report_features
>
> diff --git a/scripts/kvm_report_features b/scripts/kvm_report_features
> new file mode 100755
> index 0000000..66e746d
> --- /dev/null
> +++ b/scripts/kvm_report_features
> @@ -0,0 +1,11 @@
> +#!/bin/bash
> +
> +report=/sys/devices/system/kvm/kvm0/kvm_hw_feature_report
> +
> +if [ -a $report ];
> +then
> + cat $report
> +else
> + echo Feature report interface didn\'t exist.
> + echo Maybe don\'t support in this version or modules are not loaded.
> +fi
> --
> 1.5.5
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2008-06-19 10:48 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-06-19 10:44 [PATCH] kvm: add a script to report hardware feature Yang, Sheng
2008-06-19 10:48 ` Yang, Sheng
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox