All of lore.kernel.org
 help / color / mirror / Atom feed
From: Zhenyu Wang <zhenyuw@linux.intel.com>
To: intel-gfx@lists.freedesktop.org
Cc: intel-gvt-dev@lists.freedesktop.org
Subject: [PATCH v3 1/3] drm/i915/gvt: mandatory require hypervisor's host_init
Date: Mon,  3 Dec 2018 12:05:48 +0800	[thread overview]
Message-ID: <20181203040550.5171-2-zhenyuw@linux.intel.com> (raw)
In-Reply-To: <20181203040550.5171-1-zhenyuw@linux.intel.com>

Don't mark hypervisor module's host_init as optional,
but mandatory required.

Signed-off-by: Zhenyu Wang <zhenyuw@linux.intel.com>
---
 drivers/gpu/drm/i915/gvt/mpt.h | 5 ++---
 1 file changed, 2 insertions(+), 3 deletions(-)

diff --git a/drivers/gpu/drm/i915/gvt/mpt.h b/drivers/gpu/drm/i915/gvt/mpt.h
index 67f19992b226..ce721099a020 100644
--- a/drivers/gpu/drm/i915/gvt/mpt.h
+++ b/drivers/gpu/drm/i915/gvt/mpt.h
@@ -50,11 +50,10 @@
  * Zero on success, negative error code if failed
  */
 static inline int intel_gvt_hypervisor_host_init(struct device *dev,
-			void *gvt, const void *ops)
+						 void *gvt, const void *ops)
 {
-	/* optional to provide */
 	if (!intel_gvt_host.mpt->host_init)
-		return 0;
+		return -ENODEV;
 
 	return intel_gvt_host.mpt->host_init(dev, gvt, ops);
 }
-- 
2.19.1

_______________________________________________
Intel-gfx mailing list
Intel-gfx@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/intel-gfx

  reply	other threads:[~2018-12-03  4:05 UTC|newest]

Thread overview: 18+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-12-03  4:05 [PATCH v3 0/3] Change KVMGT into self loadable module Zhenyu Wang
2018-12-03  4:05 ` Zhenyu Wang [this message]
2018-12-03  4:05 ` [PATCH v3 2/3] drm/i915/gvt: remove unused parameter for hypervisor's host_exit call Zhenyu Wang
2018-12-03  4:05 ` [PATCH v3 3/3] drm/i915/gvt: Change KVMGT as self load module Zhenyu Wang
2018-12-04  2:40   ` [PATCH v4] " Zhenyu Wang
2018-12-06  4:27     ` Zhenyu Wang
2018-12-07  7:47       ` He, Min
2018-12-07  7:50         ` Zhenyu Wang
2018-12-06  7:17     ` Yuan, Hang
2018-12-06  8:02     ` [PATCH v5] " Zhenyu Wang
2018-12-06  9:31       ` Yuan, Hang
2018-12-03  4:14 ` ✗ Fi.CI.CHECKPATCH: warning for Change KVMGT into self loadable module Patchwork
2018-12-03  4:32 ` ✓ Fi.CI.BAT: success " Patchwork
2018-12-03  5:34 ` ✓ Fi.CI.IGT: " Patchwork
2018-12-04  3:15 ` ✓ Fi.CI.BAT: success for Change KVMGT into self loadable module (rev2) Patchwork
2018-12-04  4:47 ` ✓ Fi.CI.IGT: " Patchwork
2018-12-06  8:55 ` ✓ Fi.CI.BAT: success for Change KVMGT into self loadable module (rev3) Patchwork
2018-12-06 23:33 ` ✓ Fi.CI.IGT: " Patchwork

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20181203040550.5171-2-zhenyuw@linux.intel.com \
    --to=zhenyuw@linux.intel.com \
    --cc=intel-gfx@lists.freedesktop.org \
    --cc=intel-gvt-dev@lists.freedesktop.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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.