All of lore.kernel.org
 help / color / mirror / Atom feed
* 32E (64bit) VMX keyboard is out of control, if given an addition 'hde'
@ 2006-09-12  7:53 You, Yongkang
  2006-09-12  9:05 ` Jan Beulich
                   ` (2 more replies)
  0 siblings, 3 replies; 6+ messages in thread
From: You, Yongkang @ 2006-09-12  7:53 UTC (permalink / raw)
  To: xen-devel

Hi,

This issue only happens on my IA32E VMX domain. IA32 VMX domain is okay.

I am trying VBD disk in IA32E VMX domain. I used following disk configuration to create an IA32E VMX domain. 
	disk = [ 'file:/mnt/disk1.img,hda,w', 'file:/mnt/disk2.img,hde,w' ]

After creating VMX, its keyboard can not be used properly. For example, if pressing 'Backspace', it shows 'm'; if pressing 'Enter', it just said Unknown key pressed.

If I didn't set 'hde', or just change 'hde' to 'hdd', everything is okay. Could anyone help to reproduce and explain this strange issue?

Best Regards,
Yongkang (Kangkang) 永康

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: 32E (64bit) VMX keyboard is out of control, if given an addition 'hde'
  2006-09-12  7:53 32E (64bit) VMX keyboard is out of control, if given an addition 'hde' You, Yongkang
@ 2006-09-12  9:05 ` Jan Beulich
  2006-09-12 14:01 ` Anthony Liguori
  2006-09-13  5:42 ` Hiromichi Itou
  2 siblings, 0 replies; 6+ messages in thread
From: Jan Beulich @ 2006-09-12  9:05 UTC (permalink / raw)
  To: Yongkang You; +Cc: xen-devel

>>> "You, Yongkang" <yongkang.you@intel.com> 12.09.06 09:53 >>>
>Hi,
>
>This issue only happens on my IA32E VMX domain. IA32 VMX domain is okay.
>
>I am trying VBD disk in IA32E VMX domain. I used following disk configuration to create an IA32E VMX domain. 
>	disk = [ 'file:/mnt/disk1.img,hda,w', 'file:/mnt/disk2.img,hde,w' ]
>
>After creating VMX, its keyboard can not be used properly. For example, if pressing 'Backspace', it shows 'm'; if
pressing 'Enter', it just said
>Unknown key pressed.

What OS are you running as the particular HVM guest?

Jan

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: 32E (64bit) VMX keyboard is out of control, if given an addition 'hde'
  2006-09-12  7:53 32E (64bit) VMX keyboard is out of control, if given an addition 'hde' You, Yongkang
  2006-09-12  9:05 ` Jan Beulich
@ 2006-09-12 14:01 ` Anthony Liguori
  2006-09-12 14:06   ` Anthony Liguori
  2006-09-13  5:42 ` Hiromichi Itou
  2 siblings, 1 reply; 6+ messages in thread
From: Anthony Liguori @ 2006-09-12 14:01 UTC (permalink / raw)
  To: xen-devel

On Tue, 12 Sep 2006 15:53:34 +0800, You, Yongkang wrote:

> Hi,
> 
> This issue only happens on my IA32E VMX domain. IA32 VMX domain is okay.
> 
> I am trying VBD disk in IA32E VMX domain. I used following disk
> configuration to create an IA32E VMX domain.
> 	disk = [ 'file:/mnt/disk1.img,hda,w', 'file:/mnt/disk2.img,hde,w' ]
>

I don't think hde is a valid disk drive for HVM.  QEMU only emulates a
standard IDE controller which would only allow 4 disks (hda, hdb, hdc,
hdd).  AFAIK, Xen has not added an additional IDE controller.

Sounds like we're not doing appropriate error checking somewhere...

Regards,

Anthony Liguori

> After creating VMX, its keyboard can not be used properly. For example, if
> pressing 'Backspace', it shows 'm'; if pressing 'Enter', it just said
> Unknown key pressed.
> 
> If I didn't set 'hde', or just change 'hde' to 'hdd', everything is okay.
> Could anyone help to reproduce and explain this strange issue?
> 
> Best Regards,
> Yongkang (Kangkang)

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: 32E (64bit) VMX keyboard is out of control, if given an addition 'hde'
  2006-09-12 14:01 ` Anthony Liguori
@ 2006-09-12 14:06   ` Anthony Liguori
  0 siblings, 0 replies; 6+ messages in thread
From: Anthony Liguori @ 2006-09-12 14:06 UTC (permalink / raw)
  To: xen-devel

On Tue, 12 Sep 2006 09:01:16 -0500, Anthony Liguori wrote:

> On Tue, 12 Sep 2006 15:53:34 +0800, You, Yongkang wrote:
> 
> I don't think hde is a valid disk drive for HVM.  QEMU only emulates a
> standard IDE controller which would only allow 4 disks (hda, hdb, hdc,
> hdd).  AFAIK, Xen has not added an additional IDE controller.

Sorry 'bout the noise.  Still catching up.  Didn't realize hde could be
used for paravirt devices.

Regards,

Anthony Liguori

> Sounds like we're not doing appropriate error checking somewhere...
> 
> Regards,
> 
> Anthony Liguori
> 
>> [quoted text muted]

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: 32E (64bit) VMX keyboard is out of control, if given an addition 'hde'
  2006-09-12  7:53 32E (64bit) VMX keyboard is out of control, if given an addition 'hde' You, Yongkang
  2006-09-12  9:05 ` Jan Beulich
  2006-09-12 14:01 ` Anthony Liguori
@ 2006-09-13  5:42 ` Hiromichi Itou
  2 siblings, 0 replies; 6+ messages in thread
From: Hiromichi Itou @ 2006-09-13  5:42 UTC (permalink / raw)
  To: xen-devel; +Cc: You, Yongkang

Hi,

I can reproduce this problem and fixed it.
The following patches probably fixed this problem.

Hiromichi Ito

Signed-off-by: Hiromichi Ito <ito@begi.net>

diff -r 7d4def53936c tools/ioemu/xenstore.c
--- a/tools/ioemu/xenstore.c    Tue Sep 12 16:33:33 2006 +0100
+++ b/tools/ioemu/xenstore.c    Wed Sep 13 14:34:32 2006 +0900
@@ -100,7 +100,7 @@ void xenstore_parse_domain_config(int do
         if (strncmp(dev, "hd", 2) || strlen(dev) != 3)
             continue;
         hd_index = dev[2] - 'a';
-       if (hd_index > MAX_DISKS)
+       if (hd_index > MAX_DISKS - 1)
             continue;
         /* read the type of the device */
         if (pasprintf(&buf, "%s/device/vbd/%s/device-type", path, e 
[i]) == -1)


On 2006/09/12, at 16:53, You, Yongkang wrote:

> Hi,
>
> This issue only happens on my IA32E VMX domain. IA32 VMX domain is  
> okay.
>
> I am trying VBD disk in IA32E VMX domain. I used following disk  
> configuration to create an IA32E VMX domain.
> 	disk = [ 'file:/mnt/disk1.img,hda,w', 'file:/mnt/disk2.img,hde,w' ]
>
> After creating VMX, its keyboard can not be used properly. For  
> example, if pressing 'Backspace', it shows 'm'; if pressing  
> 'Enter', it just said Unknown key pressed.
>
> If I didn't set 'hde', or just change 'hde' to 'hdd', everything is  
> okay. Could anyone help to reproduce and explain this strange issue?
>
> Best Regards,
> Yongkang (Kangkang) 永康
>
> _______________________________________________
> Xen-devel mailing list
> Xen-devel@lists.xensource.com
> http://lists.xensource.com/xen-devel

^ permalink raw reply	[flat|nested] 6+ messages in thread

* RE: 32E (64bit) VMX keyboard is out of control, if given an addition 'hde'
@ 2006-09-13 12:17 You, Yongkang
  0 siblings, 0 replies; 6+ messages in thread
From: You, Yongkang @ 2006-09-13 12:17 UTC (permalink / raw)
  To: Hiromichi Itou, xen-devel

Hi,

I have tried that patch. It fixes the issue in 32E VMX. With it, keyboard is normal when I use "hde+" disk configuration for VMX. And after insmod VBD modules, that hde disk can work. Will that patch go into xen-unstable? :)

A little puzzled why it only influent 32E VMX. 

Also thanks to Anthony, the 'xvda' more likes a clear way to use VBD in VMX. :)

Best Regards,
Yongkang (Kangkang) 永康
>-----Original Message-----
>From: Hiromichi Itou [mailto:ito@begi.net]
>Sent: 2006年9月13日 13:42
>To: xen-devel
>Cc: You, Yongkang
>Subject: Re: [Xen-devel] 32E (64bit) VMX keyboard is out of control, if given
>an addition 'hde'
>
>Hi,
>
>I can reproduce this problem and fixed it.
>The following patches probably fixed this problem.
>
>Hiromichi Ito
>
>Signed-off-by: Hiromichi Ito <ito@begi.net>
>
>diff -r 7d4def53936c tools/ioemu/xenstore.c
>--- a/tools/ioemu/xenstore.c    Tue Sep 12 16:33:33 2006 +0100
>+++ b/tools/ioemu/xenstore.c    Wed Sep 13 14:34:32 2006 +0900
>@@ -100,7 +100,7 @@ void xenstore_parse_domain_config(int do
>         if (strncmp(dev, "hd", 2) || strlen(dev) != 3)
>             continue;
>         hd_index = dev[2] - 'a';
>-       if (hd_index > MAX_DISKS)
>+       if (hd_index > MAX_DISKS - 1)
>             continue;
>         /* read the type of the device */
>         if (pasprintf(&buf, "%s/device/vbd/%s/device-type", path, e
>[i]) == -1)
>
>
>On 2006/09/12, at 16:53, You, Yongkang wrote:
>
>> Hi,
>>
>> This issue only happens on my IA32E VMX domain. IA32 VMX domain is
>> okay.
>>
>> I am trying VBD disk in IA32E VMX domain. I used following disk
>> configuration to create an IA32E VMX domain.
>> 	disk = [ 'file:/mnt/disk1.img,hda,w', 'file:/mnt/disk2.img,hde,w' ]
>>
>> After creating VMX, its keyboard can not be used properly. For
>> example, if pressing 'Backspace', it shows 'm'; if pressing
>> 'Enter', it just said Unknown key pressed.
>>
>> If I didn't set 'hde', or just change 'hde' to 'hdd', everything is
>> okay. Could anyone help to reproduce and explain this strange issue?
>>
>> Best Regards,
>> Yongkang (Kangkang) 永康
>>
>> _______________________________________________
>> Xen-devel mailing list
>> Xen-devel@lists.xensource.com
>> http://lists.xensource.com/xen-devel

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2006-09-13 12:17 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-09-12  7:53 32E (64bit) VMX keyboard is out of control, if given an addition 'hde' You, Yongkang
2006-09-12  9:05 ` Jan Beulich
2006-09-12 14:01 ` Anthony Liguori
2006-09-12 14:06   ` Anthony Liguori
2006-09-13  5:42 ` Hiromichi Itou
  -- strict thread matches above, loose matches on Subject: below --
2006-09-13 12:17 You, Yongkang

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.