From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from NAM10-DM6-obe.outbound.protection.outlook.com (NAM10-DM6-obe.outbound.protection.outlook.com [40.107.93.49]) by mx.groups.io with SMTP id smtpd.web10.4225.1681984334791465604 for ; Thu, 20 Apr 2023 02:52:15 -0700 Authentication-Results: mx.groups.io; dkim=pass header.i=@amd.com header.s=selector1 header.b=HI3JU9x7; spf=permerror, err=parse error for token &{10 18 %{i}._ip.%{h}._ehlo.%{d}._spf.vali.email}: invalid domain name (domain: amd.com, ip: 40.107.93.49, mailfrom: pankaj.gupta@amd.com) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=e+a2DdJ4089SyDmokAuTHU33FmCiu6r7OIPK+UYHUBRU019yWGxyeobfHlm0RZ6Fb5qiD0DSPVyjupBMFlb3P0LTQ6AFSXjcd69oadnx6wj7ifM/GmtpFbmhVeDB2YGYbEH5S5nYa0X+XZCSahDMUN1ts1t2DNZGsDQeNyRPcmXnLTVdG7La/3M3nvg6PtqJwy9lS+z2bI9bYABu5jJvH72j5AQ09iHtTyhDV4lJFp2gd1TTXx7+KgW4bzwA0V3QAdq8Su+qL+ndyxU8p1jIvsvxuszvmVCcrJQ4wD9TSSumpn3denbRGbkMFr3pB0oGf5/YG+1ukL6tQs7np1KY7A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=TEn0OdUtFeooRQr4BBYiUcYV9G/n6wAVumQkjr36cDU=; b=QGeh8Qg7R3+HySzVdJ6qoEut31TdS4gVBzDujD+QNlAXqM73KdowvVY1ibFZZfsxM4TQm8jsmYmf46f2cU24cj0oaoGAch+4InMU5dQGQnph7EWsL3kZ8mUHGLiRE9yLqBRPrbWCMA1cVCuSj1G47NvDVEABJmHpsz4YIoEHgyioD5o0uKKdsF5M2I1dPY4A7XKYU1vWzrt23jDiKMSUqfN9hbkIw085QDxbm8wfStydSKAMH5o0fiZIC3QqMIVG/waNq/zkIAWaNx63CNTDs5kcHdWUqexL6FKyJ2SV3W2X+25CPHrBm4yhBH+jmt3ZNmSvVp3wH7jS2tOHMDHDbA== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=amd.com; dmarc=pass action=none header.from=amd.com; dkim=pass header.d=amd.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amd.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=TEn0OdUtFeooRQr4BBYiUcYV9G/n6wAVumQkjr36cDU=; b=HI3JU9x7THyH/IVD3uFmAGEBGbGf2eLzXRebgxiKVchaaTYH0qqsKsC3Uc7XIaeadKgbM8PNaEYzO8AL+0QiKwZWmNqa03080Ve451F+6LoRpevzlB4sN9bv92B3t6hm3GKFhdywL0KZgDPt8S8ORERgH/KlvCnYeKy2SlbNpNo= Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=amd.com; Received: from DM6PR12MB2810.namprd12.prod.outlook.com (2603:10b6:5:41::21) by PH7PR12MB6393.namprd12.prod.outlook.com (2603:10b6:510:1ff::15) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6298.45; Thu, 20 Apr 2023 09:52:11 +0000 Received: from DM6PR12MB2810.namprd12.prod.outlook.com ([fe80::756a:e835:b8a5:16d5]) by DM6PR12MB2810.namprd12.prod.outlook.com ([fe80::756a:e835:b8a5:16d5%6]) with mapi id 15.20.6319.020; Thu, 20 Apr 2023 09:52:11 +0000 Message-ID: <75755155-c93a-bc72-5ef7-58ad1a9c9a73@amd.com> Date: Thu, 20 Apr 2023 11:52:02 +0200 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:102.0) Gecko/20100101 Thunderbird/102.6.0 Subject: Re: [edk2-devel] [PATCH 0/4] OvmfPkg: add virtio serial driver To: devel@edk2.groups.io, kraxel@redhat.com, Ard Biesheuvel Cc: Stefan Berger , Julien Grall , Anthony Perard , Ard Biesheuvel , Jordan Justen , Pawel Polawski , Oliver Steffen , =?UTF-8?Q?Marc-Andr=c3=a9_Lureau?= , Jiewen Yao References: <20230417090320.225046-1-kraxel@redhat.com> From: "Gupta, Pankaj" In-Reply-To: X-ClientProxiedBy: FR0P281CA0219.DEUP281.PROD.OUTLOOK.COM (2603:10a6:d10:ac::12) To DM6PR12MB2810.namprd12.prod.outlook.com (2603:10b6:5:41::21) Return-Path: Pankaj.Gupta@amd.com MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: DM6PR12MB2810:EE_|PH7PR12MB6393:EE_ X-MS-Office365-Filtering-Correlation-Id: c4747720-eb4e-433c-6a6c-08db4184e948 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: YblPrXf62Ie7OGn2KFgS5T0fYFOPSAMpfeMoQs1B3s3SYV7slP7V8+4nQvxPNZpTMwB1RfqiEDEpE0k7GfQdSXRmZi8rTnulYAML6d1wJx3Pd1G2jaYGEHE+Lq/dPeTWNDzoh04dNG3HIVhyxHar9Wv4jROMNRE0Tey7S2PGKokyBp0r24s+cfR3qVMSdgF6s0Vvg/uOjk0mbgyx7v8B9RqEXnembHKlw/HsAnhCrYMnPu4Rp0f+/jvDZVPMA7BBJdx7Y6wIB8QLW8n5Pr5HATyV4ouNw2XW1hv/upYjAXEFuXf9pEmfkl1BinT72/XKfKx8qaMRTkpcO44y6zKNETtMomuiwCAdQ3VO6Zj0opmZm2aubaEYj3E9vAwnO9XAItUgYZZHOGn/y3rf06vnWWmScrAXqUzqIakSD+LYLGf8Yl7nZvtvYDdpD/MwkeWFe+pQ3xrtnYT0bl2GfepRYpBoW6/C4l2xfWoA/vmZhYXpvUdlGIw0sFB/afelU0zEy5ODmKagY9slhPsJKMg4dVrLpwBAY3gfc8qfEdPD/eAeIyv7f+5vG0fMz7GQUvP5GwJENcxS/+A1QisQTwS6yubVe8+YgRXifIjcyOJ8hbD0gdH6wEbzjnYaNBDlqBUQUSnDFYWyzRE1hDOdT1tLVw== X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:DM6PR12MB2810.namprd12.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230028)(4636009)(39860400002)(136003)(376002)(366004)(346002)(396003)(451199021)(8936002)(6916009)(4326008)(316002)(19627235002)(54906003)(66946007)(66556008)(66476007)(6666004)(41300700001)(478600001)(6486002)(5660300002)(8676002)(7416002)(4744005)(86362001)(31696002)(2906002)(36756003)(2616005)(6506007)(38100700002)(186003)(6512007)(31686004)(45980500001)(43740500002);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?B?ZGFSdG9MVXAyaXFUTnNxcy9heFRKOWpja1JhUXNwL1NTSldZaGw5TTNnd0c5?= =?utf-8?B?QUYzVW5rNFhBdzZsMWhvL2dwSkdCZFFnVnBzWEFvWWptV290T1BqL0NFaGJ3?= =?utf-8?B?bUd2NWIxVEdqeW9MQUoxTnlPVVl0cDVNVTBmdGF3SEw2MmN3OCs2MCtES2My?= =?utf-8?B?VHdkZ2NCUUp5aTVBa01PUDZTWFdwVytjTmVrN296cklVVWFKQkZxUDBHUmJ0?= =?utf-8?B?bm1JRGw4TVpKMEFFRTdjUjZUMGhkOFJsV3ZhU1M1ZDVrSTVuOXUwSVRsd1R1?= =?utf-8?B?cmlDK3liQ2VxMXNLZ3lvcTJ3dWVZU3laVWJscVFFeHFWTlI3QUp0bjloa0V3?= =?utf-8?B?UzZ6UW5XczU2S3N6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?= =?utf-8?Q?N6YJub63lVlovMpo+UFmUIdMSQYaSWPvf6un6UBX1jvC?= X-OriginatorOrg: amd.com X-MS-Exchange-CrossTenant-Network-Message-Id: c4747720-eb4e-433c-6a6c-08db4184e948 X-MS-Exchange-CrossTenant-AuthSource: DM6PR12MB2810.namprd12.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 20 Apr 2023 09:52:11.1079 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 3dd8961f-e488-4e60-8e11-a82d994e183d X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: hznLXJF3++i6sixg2V814H+3DO9HMawQN0rkujjhIRqsyHda8eOd1gY6VzSPHV8nIfQe7iDpuQEEzm45uugQmA== X-MS-Exchange-Transport-CrossTenantHeadersStamped: PH7PR12MB6393 Content-Language: en-US Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Hi Gerd, >> This seems useful - how do I use it? > > bare qemu (with guest console on stdin/stdout): > > qemu-system-x86_64 \ > -enable-kvm -nodefaults -display none \ > -bios Build/OvmfX64/DEBUG_GCC5/FV/OVMF.fd \ > -chardev stdio,id=hvc0 \ > -device virtio-serial-pci \ > -device virtconsole,chardev=hvc0 > > libvirt snippet (add to ): > > > > Was thinking about the motivation to add the virtio serial device. AFAIU this can provide a console in bios/early boot based on "virtio". Currently we can only get it with emulated PTY device which is slow because of frequent VMEXITS because of ioport write? Or is there any other reason (e.g across the ARCH support) to add this support in UEFI ? Thanks, Pankaj