diff mbox

[2/2] ppc440_bamboo: Disable new virtio-serial features for 0.12 machine type

Message ID 1267106172-28011-2-git-send-email-amit.shah@redhat.com
State New
Headers show

Commit Message

Amit Shah Feb. 25, 2010, 1:56 p.m. UTC
Disable the MULTIPORT feature and MSI vectors for the 0.12 machine
types; those features are added only for 0.13 onwards.

Signed-off-by: Amit Shah <amit.shah@redhat.com>
---
 hw/ppc440_bamboo.c |   12 ++++++++++++
 1 files changed, 12 insertions(+), 0 deletions(-)

Comments

Aurelien Jarno March 6, 2010, 9:58 p.m. UTC | #1
On Thu, Feb 25, 2010 at 07:26:12PM +0530, Amit Shah wrote:
> Disable the MULTIPORT feature and MSI vectors for the 0.12 machine
> types; those features are added only for 0.13 onwards.
> 
> Signed-off-by: Amit Shah <amit.shah@redhat.com>

Thanks, applied.

> ---
>  hw/ppc440_bamboo.c |   12 ++++++++++++
>  1 files changed, 12 insertions(+), 0 deletions(-)
> 
> diff --git a/hw/ppc440_bamboo.c b/hw/ppc440_bamboo.c
> index aa9f594..db96f14 100644
> --- a/hw/ppc440_bamboo.c
> +++ b/hw/ppc440_bamboo.c
> @@ -183,6 +183,18 @@ static QEMUMachine bamboo_machine_v0_12 = {
>      .name = "bamboo-0.12",
>      .desc = "bamboo",
>      .init = bamboo_init,
> +    .compat_props = (GlobalProperty[]) {
> +        {
> +            .driver   = "virtio-serial-pci",
> +            .property = "max_nr_ports",
> +            .value    = stringify(1),
> +        },{
> +            .driver   = "virtio-serial-pci",
> +            .property = "vectors",
> +            .value    = stringify(0),
> +        },
> +        { /* end of list */ }
> +    },
>  };
>  
>  static void bamboo_machine_init(void)
> -- 
> 1.6.2.5
> 
> 
> 
>
diff mbox

Patch

diff --git a/hw/ppc440_bamboo.c b/hw/ppc440_bamboo.c
index aa9f594..db96f14 100644
--- a/hw/ppc440_bamboo.c
+++ b/hw/ppc440_bamboo.c
@@ -183,6 +183,18 @@  static QEMUMachine bamboo_machine_v0_12 = {
     .name = "bamboo-0.12",
     .desc = "bamboo",
     .init = bamboo_init,
+    .compat_props = (GlobalProperty[]) {
+        {
+            .driver   = "virtio-serial-pci",
+            .property = "max_nr_ports",
+            .value    = stringify(1),
+        },{
+            .driver   = "virtio-serial-pci",
+            .property = "vectors",
+            .value    = stringify(0),
+        },
+        { /* end of list */ }
+    },
 };
 
 static void bamboo_machine_init(void)