From patchwork Wed Jan 22 01:58:49 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bobby Eshleman X-Patchwork-Id: 11345017 Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 49BA717EA for ; Wed, 22 Jan 2020 05:15:15 +0000 (UTC) Received: from lists.xenproject.org (lists.xenproject.org [192.237.175.120]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 24F202465A for ; Wed, 22 Jan 2020 05:15:15 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=fail reason="signature verification failed" (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="emC00jKc" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 24F202465A Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=gmail.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=xen-devel-bounces@lists.xenproject.org Received: from localhost ([127.0.0.1] helo=lists.xenproject.org) by lists.xenproject.org with esmtp (Exim 4.89) (envelope-from ) id 1iu8L8-00057s-Q5; Wed, 22 Jan 2020 05:14:06 +0000 Received: from us1-rack-iad1.inumbo.com ([172.99.69.81]) by lists.xenproject.org with esmtp (Exim 4.89) (envelope-from ) id 1iu5KY-00068H-5J for xen-devel@lists.xenproject.org; Wed, 22 Jan 2020 02:01:18 +0000 X-Inumbo-ID: 00880570-3cbb-11ea-8e9a-bc764e2007e4 Received: from mail-yw1-xc43.google.com (unknown [2607:f8b0:4864:20::c43]) by us1-rack-iad1.inumbo.com (Halon) with ESMTPS id 00880570-3cbb-11ea-8e9a-bc764e2007e4; Wed, 22 Jan 2020 02:00:45 +0000 (UTC) Received: by mail-yw1-xc43.google.com with SMTP id 10so2496052ywv.5 for ; Tue, 21 Jan 2020 18:00:45 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=bCAEHgmNOOtTuwUhIt9PF8FGTWKA+YilE4KRvaoUNK8=; b=emC00jKcXEC+lCouE7NcmJ3lJluUJkp1VfUxI4HBRBHzXhAc88U/72l5sOMrJF0UFm nNVcfpPJ+M2jO8m7SocLOot2UR3e/gnTGTECl+la8StZXXdX7AUL5wKZv3drDHAG6CHM Ta55i5q43HTwXUrDQqLZknV7T8uZq+L3y1xFVkLuxhXAKxgZYwvLk7S2lLjIBeGEKZA+ e7nClNUbIX/yghDwsVvBa5S4/0WCH6rOpKbFGwnD1a65qTX3VO9zD/BdtEs1CgH/rys4 VI7GoC7GS6AfIyADqfjq3o8eboCkJpLitUM/hnOF1M//MsUd1g4Dd9gcrcYKmeKfwlgw 2eyA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=bCAEHgmNOOtTuwUhIt9PF8FGTWKA+YilE4KRvaoUNK8=; b=RZCCx9iMy4JZjzxO6/p/835bOugCqOG/sIwav91lyVVvjoctJExdPmutAKiLmn9yHj QK8TEk3JZwi3WC0IFoar8R8PVUEoxZv+Qzu/s0TUrSXkco9pWDh73xtVDc4+DXPmYEd9 1qVYjKazejvhN0lqd29GezW23o3ws5mxc9kOABIju/xzKcJQThpRFRvSTpR5UekQgGm2 SsV8PLf+HZuMlnDzXk95dF/xwVmuTdFE9mWAbYhcK7RkPYeRNTlyR9M+I/R3NeNUUqva jDrYtUbioNmeW6HaqsrH9J06YIdLA6DsqlRVBw4O8rBcUQA4dq3TjRXq7RHUPG7ZR9pm xV3Q== X-Gm-Message-State: APjAAAXEdpnTaVRskENFx2/cZx4rNPfuj0xxjvtw8nvp06lhj/89ytPG +j9MXF9lR+Rej+tMRFVUTQjJiR64da02Jw== X-Google-Smtp-Source: APXvYqwn8djD4kwWrpsXysHVF56nPLxbCs75z9Vpmct+sTQOFKyKsWgIZHqBSjnmLONfCmSIbZ6IQg== X-Received: by 2002:a81:5305:: with SMTP id h5mr5708001ywb.31.1579658444808; Tue, 21 Jan 2020 18:00:44 -0800 (PST) Received: from bobbye-pc.knology.net ([216.186.244.35]) by smtp.gmail.com with ESMTPSA id q185sm17504248ywh.61.2020.01.21.18.00.41 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 21 Jan 2020 18:00:44 -0800 (PST) From: Bobby Eshleman To: xen-devel@lists.xenproject.org Date: Tue, 21 Jan 2020 19:58:49 -0600 Message-Id: X-Mailer: git-send-email 2.25.0 In-Reply-To: References: MIME-Version: 1.0 X-Mailman-Approved-At: Wed, 22 Jan 2020 05:14:01 +0000 Subject: [Xen-devel] [RFC XEN PATCH 10/23] riscv: Add domctl.c X-BeenThere: xen-devel@lists.xenproject.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Xen developer discussion List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Cc: Bobby Eshleman , Stefano Stabellini , Julien Grall , Wei Liu , Konrad Rzeszutek Wilk , George Dunlap , Andrew Cooper , Ian Jackson , Bobby Eshleman , Dan Robertson , Alistair Francis Errors-To: xen-devel-bounces@lists.xenproject.org Sender: "Xen-devel" From: Alistair Francis Signed-off-by: Alistair Francis --- xen/arch/riscv/domctl.c | 53 +++++++++++++++++++++++++++++++++++++++++ 1 file changed, 53 insertions(+) create mode 100644 xen/arch/riscv/domctl.c diff --git a/xen/arch/riscv/domctl.c b/xen/arch/riscv/domctl.c new file mode 100644 index 0000000000..4bbd4e740d --- /dev/null +++ b/xen/arch/riscv/domctl.c @@ -0,0 +1,53 @@ +/****************************************************************************** + * Arch-specific domctl.c + * + * Copyright (c) 2012, Citrix Systems + */ + +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include + +void arch_get_domain_info(const struct domain *d, + struct xen_domctl_getdomaininfo *info) +{ + info->flags |= XEN_DOMINF_hap; +} + +long arch_do_domctl(struct xen_domctl *domctl, struct domain *d, + XEN_GUEST_HANDLE_PARAM(xen_domctl_t) u_domctl) +{ + /* TODO */ + + switch ( domctl->cmd ) { + case XEN_DOMCTL_cacheflush: + case XEN_DOMCTL_bind_pt_irq: + case XEN_DOMCTL_unbind_pt_irq: + case XEN_DOMCTL_disable_migrate: + case XEN_DOMCTL_vuart_op: + default: + return 0; + } +} + +void arch_get_info_guest(struct vcpu *v, vcpu_guest_context_u c) +{ + /* TODO */ +} + +/* + * Local variables: + * mode: C + * c-file-style: "BSD" + * c-basic-offset: 4 + * tab-width: 4 + * indent-tabs-mode: nil + * End: + */